docs/html/group__input.html
| | Jetson Inference
DNN Vision Library |
Input Utilities Library (jetson-utils)
HID input devices including gamepad controllers, joysticks, and keyboard. More...
|
|
| class | InputDevices |
| | Input device manager. More...
|
| |
| class | JoystickDevice |
| | Joystick device. More...
|
| |
| class | KeyboardDevice |
| | Keyboard device. More...
|
| |
|
|
| typedef std::vector< std::pair< std::string, std::string > > | DeviceList |
| | Typedef of device <path, name> pairs. More...
|
| |
HID input devices including gamepad controllers, joysticks, and keyboard.
| class InputDevices |
Input device manager.
|
|
| | ~InputDevices () |
| | Destructor. More...
|
| |
| bool | Poll (uint32_t timeout=0) |
| | Poll the devices for updates. More...
|
| |
| KeyboardDevice * | GetKeyboard () const |
| | Retrieve the keyboard device. More...
|
| |
| JoystickDevice * | GetJoystick () const |
| | Retrieve the gamepad device. More...
|
| |
|
|
| static InputDevices * | Create () |
| | Create device. More...
|
| |
| static void | Enumerate (DeviceList &devices) |
| | Scan /dev/input for devices. More...
|
| |
| static std::string | FindPathByName (const char *name) |
| | Find /dev/input path by device name. More...
|
| |
|
| | | InputDevices () | | | |
| | KeyboardDevice * | mKeyboard | | | | JoystickDevice * | mJoystick | | |
| InputDevices::~InputDevices | ( | | ) | |
Destructor.
|
| InputDevices::InputDevices | ( | | ) | |
| protected |
|
| static InputDevices* InputDevices::Create | ( | | ) | |
| static |
Create device.
|
| static void InputDevices::Enumerate | ( | DeviceList & | devices | ) | |
| static |
Scan /dev/input for devices.
|
| static std::string InputDevices::FindPathByName | ( | const char * | name | ) | |
| static |
Find /dev/input path by device name.
|
| JoystickDevice* InputDevices::GetJoystick | ( | | ) | const |
| inline |
Retrieve the gamepad device.
|
| KeyboardDevice* InputDevices::GetKeyboard | ( | | ) | const |
| inline |
Retrieve the keyboard device.
| bool InputDevices::Poll | ( | uint32_t | timeout = 0 | ) | |
Poll the devices for updates.
|
| JoystickDevice* InputDevices::mJoystick |
| protected |
|
| KeyboardDevice* InputDevices::mKeyboard |
| protected |
| class JoystickDevice |
Joystick device.
|
|
| | ~JoystickDevice () |
| | Destructor. More...
|
| |
| bool | Poll (uint32_t timeout=0) |
| | Poll the device for updates. More...
|
| |
|
|
| static JoystickDevice * | Create (const char *device="Microntek USB Joystick ") |
| | Create device. More...
|
| |
|
| | | JoystickDevice () | | | |
| | float | mAxisNorm [MAX_AXIS] | | | | int | mAxisRaw [MAX_AXIS] | | | | int | mFD | | | | std::string | mPath | | | |
| | static const int | MAX_AXIS = 256 | | |
| JoystickDevice::~JoystickDevice | ( | | ) | |
Destructor.
|
| JoystickDevice::JoystickDevice | ( | | ) | |
| protected |
|
| static JoystickDevice* JoystickDevice::Create | ( | const char * | device = "Microntek USB Joystick " | ) | |
| static |
Create device.
| bool JoystickDevice::Poll | ( | uint32_t | timeout = 0 | ) | |
Poll the device for updates.
|
| const int JoystickDevice::MAX_AXIS = 256 |
| staticprotected |
|
| float JoystickDevice::mAxisNorm[MAX_AXIS] |
| protected |
|
| int JoystickDevice::mAxisRaw[MAX_AXIS] |
| protected |
|
| int JoystickDevice::mFD |
| protected |
|
| std::string JoystickDevice::mPath |
| protected |
| class KeyboardDevice |
Keyboard device.
|
|
| | ~KeyboardDevice () |
| | Destructor. More...
|
| |
| bool | Poll (uint32_t timeout=0) |
| | Poll the device for updates. More...
|
| |
| bool | KeyDown (uint32_t code) const |
| | Check if a particular key is pressed. More...
|
| |
|
|
| static KeyboardDevice * | Create (const char *path="/dev/input/by-path/platform-i8042-serio-0-event-kbd") |
| | Create device. More...
|
| |
|
| | | KeyboardDevice () | | | |
| | int | mKeyMap [MAX_KEYS] | | | | int | mFD | | | | std::string | mPath | | | |
| | static const int | MAX_KEYS = 256 | | |
| KeyboardDevice::~KeyboardDevice | ( | | ) | |
Destructor.
|
| KeyboardDevice::KeyboardDevice | ( | | ) | |
| protected |
|
| static KeyboardDevice* KeyboardDevice::Create | ( | const char * | path = "/dev/input/by-path/platform-i8042-serio-0-event-kbd" | ) | |
| static |
Create device.
| bool KeyboardDevice::KeyDown | ( | uint32_t | code | ) | const |
Check if a particular key is pressed.
| bool KeyboardDevice::Poll | ( | uint32_t | timeout = 0 | ) | |
Poll the device for updates.
|
| const int KeyboardDevice::MAX_KEYS = 256 |
| staticprotected |
|
| int KeyboardDevice::mFD |
| protected |
|
| int KeyboardDevice::mKeyMap[MAX_KEYS] |
| protected |
|
| std::string KeyboardDevice::mPath |
| protected |
| typedef std::vector< std::pair<std::string, std::string> > DeviceList |
Typedef of device <path, name> pairs.