InputDeviceManager

from panda3d.core import InputDeviceManager
class InputDeviceManager

Bases: DTOOL_SUPER_BASE

This class keeps track of all the devices on a system, and sends out events when a device has been hot-plugged.

New in version 1.10.0.

Inheritance diagram

Inheritance diagram of InputDeviceManager

__init__(*args, **kwargs)
addDevice()

C++ Interface: add_device(const InputDeviceManager self, InputDevice device)

/**
  • Called when a new device has been discovered. This may also be used to

  • register virtual devices.

  • This causes a connect-device event to be thrown.

*/

add_device()

C++ Interface: add_device(const InputDeviceManager self, InputDevice device)

/**
  • Called when a new device has been discovered. This may also be used to

  • register virtual devices.

  • This causes a connect-device event to be thrown.

*/

getDevices()

C++ Interface: get_devices(InputDeviceManager self) get_devices(InputDeviceManager self, DeviceClass device_class)

/**
  • Description: Returns all currently connected devices.

*/

/**
  • Description: Returns all currently connected devices of the given device class.

*/

getGlobalPtr()

C++ Interface: get_global_ptr()

/**
  • Returns the singleton InputDeviceManager instance.

*/

get_devices()

C++ Interface: get_devices(InputDeviceManager self) get_devices(InputDeviceManager self, DeviceClass device_class)

/**
  • Description: Returns all currently connected devices.

*/

/**
  • Description: Returns all currently connected devices of the given device class.

*/

get_global_ptr()

C++ Interface: get_global_ptr()

/**
  • Returns the singleton InputDeviceManager instance.

*/

removeDevice()

C++ Interface: remove_device(const InputDeviceManager self, InputDevice device)

/**
  • Called when a device has been removed, or when a device should otherwise no

  • longer be tracked.

  • This causes a disconnect-device event to be thrown.

*/

remove_device()

C++ Interface: remove_device(const InputDeviceManager self, InputDevice device)

/**
  • Called when a device has been removed, or when a device should otherwise no

  • longer be tracked.

  • This causes a disconnect-device event to be thrown.

*/

update()

C++ Interface: update(const InputDeviceManager self)

/**
  • Polls the system to see if there are any new devices. In some

  • implementations this is a no-op.

*/