Back to Jetson Inference

Jetson Inference: KeyboardDevice Class Reference

docs/html/classKeyboardDevice.html

latest3.8 KB
Original Source

| | Jetson Inference

DNN Vision Library |

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

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

Keyboard device. More...

#include <devKeyboard.h>

|

Public Member Functions

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

| | static KeyboardDevice * | Create (const char *path="/dev/input/by-path/platform-i8042-serio-0-event-kbd") | | | Create device. More...
| | |

|

Protected Member Functions

| | | KeyboardDevice () | | |

|

Protected Attributes

| | int | mKeyMap [MAX_KEYS] | | | | int | mFD | | | | std::string | mPath | | |

|

Static Protected Attributes

| | static const int | MAX_KEYS = 256 | | |

Detailed Description

Keyboard device.

Constructor & Destructor Documentation

~KeyboardDevice()

| KeyboardDevice::~KeyboardDevice | ( | | ) | |

Destructor.

KeyboardDevice()

|

| KeyboardDevice::KeyboardDevice | ( | | ) | |

| protected |

Member Function Documentation

Create()

|

| static KeyboardDevice* KeyboardDevice::Create | ( | const char * | path = "/dev/input/by-path/platform-i8042-serio-0-event-kbd" | ) | |

| static |

Create device.

KeyDown()

| bool KeyboardDevice::KeyDown | ( | uint32_t | code | ) | const |

Check if a particular key is pressed.

Poll()

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

Poll the device for updates.

Member Data Documentation

MAX_KEYS

|

| const int KeyboardDevice::MAX_KEYS = 256 |

| staticprotected |

mFD

|

| int KeyboardDevice::mFD |

| protected |

mKeyMap

|

| int KeyboardDevice::mKeyMap[MAX_KEYS] |

| protected |

mPath

|

| std::string KeyboardDevice::mPath |

| protected |


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