libevdevxx 0.4.0
A C++ wrapper for libevdev.
|
The namespace of libevdevxx. More...
Classes | |
struct | AbsInfo |
Maps to the input_absinfo struct from linux/input.h . More... | |
struct | Code |
Type-safe class for evdev codes (KEY_* , BTN_* , REL_* , etc). More... | |
class | Device |
Represents a device (real of not). More... | |
struct | Event |
class | Grabber |
RAII class to call Device::grab() and Device::ungrab() on a device. More... | |
class | Property |
struct | SyncError |
class | Type |
struct | TypeCode |
class | Uinput |
A class to send events to a virtual device. More... | |
Enumerations | |
enum class | LogPriority { none = -1 , error = LIBEVDEV_LOG_ERROR , info = LIBEVDEV_LOG_INFO , debug = LIBEVDEV_LOG_DEBUG } |
Helper enum to use the logging functions. More... | |
enum | ReadFlag : unsigned { normal = LIBEVDEV_READ_FLAG_NORMAL , resync = LIBEVDEV_READ_FLAG_SYNC , force_sync = LIBEVDEV_READ_FLAG_FORCE_SYNC , blocking = LIBEVDEV_READ_FLAG_BLOCKING } |
enum | ReadStatus : int { success = LIBEVDEV_READ_STATUS_SUCCESS , dropped = LIBEVDEV_READ_STATUS_SYNC , again = -EAGAIN } |
Functions | |
std::string | to_string (const AbsInfo &info) |
std::ostream & | operator<< (std::ostream &out, const AbsInfo &info) |
std::string | code_to_string (Type type, Code code) |
Converts the code to a string representation. | |
std::string | to_string (const Event &e) |
std::ostream & | operator<< (std::ostream &out, const Event &e) |
std::string | to_string (Property prop) |
std::ostream & | operator<< (std::ostream &out, Property prop) |
std::istream & | operator>> (std::istream &in, Property &prop) |
constexpr ReadFlag | operator| (ReadFlag a, ReadFlag b) noexcept |
constexpr ReadFlag | operator& (ReadFlag a, ReadFlag b) noexcept |
constexpr ReadFlag | operator^ (ReadFlag a, ReadFlag b) noexcept |
constexpr ReadFlag | operator~ (ReadFlag a) noexcept |
constexpr ReadFlag & | operator|= (ReadFlag &a, ReadFlag b) |
constexpr ReadFlag & | operator&= (ReadFlag &a, ReadFlag b) |
constexpr void | set (ReadFlag &f, ReadFlag bit) |
constexpr void | unset (ReadFlag &f, ReadFlag bit) |
std::string | to_string (ReadFlag flag) |
std::ostream & | operator<< (std::ostream &out, ReadFlag flag) |
std::string | to_string (ReadStatus st) |
int | to_errno (ReadStatus st) |
std::ostream & | operator<< (std::ostream &out, ReadStatus st) |
std::string | to_string (Type type) |
std::ostream & | operator<< (std::ostream &out, Type type) |
std::pair< std::string, std::string > | to_strings (const TypeCode &tc) |
The namespace of libevdevxx.
|
strong |
enum ReadFlag : unsigned |
enum ReadStatus : int |
std::ostream & operator<< | ( | std::ostream & | out, |
const AbsInfo & | info | ||
) |
std::ostream & operator<< | ( | std::ostream & | out, |
const Event & | e | ||
) |
std::ostream & operator<< | ( | std::ostream & | out, |
Property | prop | ||
) |
std::ostream & operator<< | ( | std::ostream & | out, |
ReadFlag | flag | ||
) |
std::ostream & operator<< | ( | std::ostream & | out, |
ReadStatus | st | ||
) |
std::ostream & operator<< | ( | std::ostream & | out, |
Type | type | ||
) |
std::istream & operator>> | ( | std::istream & | in, |
Property & | prop | ||
) |
int to_errno | ( | ReadStatus | st | ) |
std::string to_string | ( | const AbsInfo & | info | ) |
std::string to_string | ( | const Event & | e | ) |
std::string to_string | ( | Property | prop | ) |
std::string to_string | ( | ReadFlag | flag | ) |
std::string to_string | ( | ReadStatus | st | ) |
std::string to_string | ( | Type | type | ) |
std::pair< std::string, std::string > to_strings | ( | const TypeCode & | tc | ) |