libevdevxx 0.4.0
A C++ wrapper for libevdev.
Loading...
Searching...
No Matches
evdev Namespace Reference

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 ReadFlagoperator|= (ReadFlag &a, ReadFlag b)
 
constexpr ReadFlagoperator&= (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)
 

Detailed Description

The namespace of libevdevxx.


Class Documentation

◆ evdev::TypeCode

struct evdev::TypeCode
Class Members
Code code
Type type

Enumeration Type Documentation

◆ LogPriority

enum class LogPriority
strong

Helper enum to use the logging functions.

Enumerator
none 
error 
info 
debug 

◆ ReadFlag

enum ReadFlag : unsigned
Enumerator
normal 
resync 
force_sync 
blocking 

◆ ReadStatus

enum ReadStatus : int
Enumerator
success 
dropped 
again 

Function Documentation

◆ code_to_string()

std::string code_to_string ( Type  type,
Code  code 
)

Converts the code to a string representation.

◆ operator&()

constexpr ReadFlag operator& ( ReadFlag  a,
ReadFlag  b 
)
inlineconstexprnoexcept

◆ operator&=()

constexpr ReadFlag & operator&= ( ReadFlag a,
ReadFlag  b 
)
inlineconstexpr

◆ operator<<() [1/6]

std::ostream & operator<< ( std::ostream &  out,
const AbsInfo info 
)

◆ operator<<() [2/6]

std::ostream & operator<< ( std::ostream &  out,
const Event e 
)

◆ operator<<() [3/6]

std::ostream & operator<< ( std::ostream &  out,
Property  prop 
)

◆ operator<<() [4/6]

std::ostream & operator<< ( std::ostream &  out,
ReadFlag  flag 
)

◆ operator<<() [5/6]

std::ostream & operator<< ( std::ostream &  out,
ReadStatus  st 
)

◆ operator<<() [6/6]

std::ostream & operator<< ( std::ostream &  out,
Type  type 
)

◆ operator>>()

std::istream & operator>> ( std::istream &  in,
Property prop 
)

◆ operator^()

constexpr ReadFlag operator^ ( ReadFlag  a,
ReadFlag  b 
)
inlineconstexprnoexcept

◆ operator|()

constexpr ReadFlag operator| ( ReadFlag  a,
ReadFlag  b 
)
inlineconstexprnoexcept

◆ operator|=()

constexpr ReadFlag & operator|= ( ReadFlag a,
ReadFlag  b 
)
inlineconstexpr

◆ operator~()

constexpr ReadFlag operator~ ( ReadFlag  a)
inlineconstexprnoexcept

◆ set()

constexpr void set ( ReadFlag f,
ReadFlag  bit 
)
inlineconstexpr

◆ to_errno()

int to_errno ( ReadStatus  st)

◆ to_string() [1/6]

std::string to_string ( const AbsInfo info)

◆ to_string() [2/6]

std::string to_string ( const Event e)

◆ to_string() [3/6]

std::string to_string ( Property  prop)

◆ to_string() [4/6]

std::string to_string ( ReadFlag  flag)

◆ to_string() [5/6]

std::string to_string ( ReadStatus  st)

◆ to_string() [6/6]

std::string to_string ( Type  type)

◆ to_strings()

std::pair< std::string, std::string > to_strings ( const TypeCode tc)

◆ unset()

constexpr void unset ( ReadFlag f,
ReadFlag  bit 
)
inlineconstexpr