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

The namespace of libevdevxx. More...

Namespaces

namespace  detail
 

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 or 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  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)
 
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

◆ 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&()

ReadFlag operator& ( ReadFlag a,
ReadFlag b )
inlineconstexprnoexcept

◆ operator&=()

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^()

ReadFlag operator^ ( ReadFlag a,
ReadFlag b )
inlineconstexprnoexcept

◆ operator|()

ReadFlag operator| ( ReadFlag a,
ReadFlag b )
inlineconstexprnoexcept

◆ operator|=()

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

◆ operator~()

ReadFlag operator~ ( ReadFlag a)
inlineconstexprnoexcept

◆ 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)