Jetson Inference
DNN Vision Library
InputDevices Class Reference

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...
 
KeyboardDeviceGetKeyboard () const
 Retrieve the keyboard device. More...
 
JoystickDeviceGetJoystick () const
 Retrieve the gamepad device. More...
 
void Debug (bool enabled=true)
 Enable/disable verbose logging. More...
 

Static Public Member Functions

static InputDevicesCreate ()
 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

KeyboardDevicemKeyboard
 
JoystickDevicemJoystick
 
bool mDebug
 

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.

◆ Debug()

void InputDevices::Debug ( bool  enabled = true)

Enable/disable verbose logging.

◆ 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

◆ mDebug

bool InputDevices::mDebug
protected

◆ mJoystick

JoystickDevice* InputDevices::mJoystick
protected

◆ mKeyboard

KeyboardDevice* InputDevices::mKeyboard
protected

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