InputDeviceManager¶
-
class InputDeviceManager¶
Bases:
MemoryBaseThis class keeps track of all the devices on a system, and sends out events when a device has been hot-plugged.
Added in version 1.10.0.
Inheritance diagram
digraph inheritance11bd9dcaaf { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "InputDeviceManager" [URL="acron.core.InputDeviceManager.html#acron.core.InputDeviceManager",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "InputDeviceManager" [arrowsize=0.75,style=""]; }- InputDeviceManager.add_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.
- InputDeviceManager.get_devices()¶
Description: Returns all currently connected devices.
Description: Returns all currently connected devices of the given device class.
- static InputDeviceManager.get_global_ptr()¶
Returns the singleton
InputDeviceManagerinstance.
- InputDeviceManager.remove_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.
- InputDeviceManager.update()¶
Polls the system to see if there are any new devices. In some implementations this is a no-op.