Back to Jetson Inference

Jetson Inference: InputDevices Class Reference

docs/html/classInputDevices.html

latest4.6 KB
Original Source

| | Jetson Inference

DNN Vision Library |

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members

InputDevices Class Reference Utilities Library (jetson-utils) » Input

Input device manager. More...

#include <devInput.h>

|

Public Member Functions

| | | ~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 Public Member Functions

| | 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...
| | |

|

Protected Member Functions

| | | InputDevices () | | |

|

Protected Attributes

| | KeyboardDevice * | mKeyboard | | | | JoystickDevice * | mJoystick | | |

Detailed Description

Input device manager.

Constructor & Destructor Documentation

~InputDevices()

| InputDevices::~InputDevices | ( | | ) | |

Destructor.

InputDevices()

|

| InputDevices::InputDevices | ( | | ) | |

| protected |

Member Function Documentation

Create()

|

| static InputDevices* InputDevices::Create | ( | | ) | |

| static |

Create device.

Enumerate()

|

| static void InputDevices::Enumerate | ( | DeviceList & | devices | ) | |

| static |

Scan /dev/input for devices.

FindPathByName()

|

| static std::string InputDevices::FindPathByName | ( | const char * | name | ) | |

| static |

Find /dev/input path by device name.

GetJoystick()

|

| JoystickDevice* InputDevices::GetJoystick | ( | | ) | const |

| inline |

Retrieve the gamepad device.

GetKeyboard()

|

| KeyboardDevice* InputDevices::GetKeyboard | ( | | ) | const |

| inline |

Retrieve the keyboard device.

Poll()

| bool InputDevices::Poll | ( | uint32_t | timeout = 0 | ) | |

Poll the devices for updates.

Member Data Documentation

mJoystick

|

| JoystickDevice* InputDevices::mJoystick |

| protected |

mKeyboard

|

| KeyboardDevice* InputDevices::mKeyboard |

| protected |


The documentation for this class was generated from the following file: