ratbag_emu.device module¶
-
class
ratbag_emu.device.
Device
(name, info, rdescs)¶ Bases:
object
Represents a real device
- Parameters
-
destroy
()¶ - Return type
None
-
device_list
: ClassVar[List[str]] = []¶
-
send_hid_action
(action)¶ Sends a HID action
We assume there’s only one endpoint for each type of action (mouse, keyboard, button, etc.) so we send the action to all endpoints. The endpoint will only act on the action if it supports it.
- Parameters
action (
object
) – HID action- Return type
None
-
simulate_action
(action)¶ Simulates action
Translates physical values according to the device properties and converts action into HID reports.