libevdevxx 0.4.0
A C++ wrapper for libevdev.
Loading...
Searching...
No Matches
Uinput Class Reference

A class to send events to a virtual device. More...

#include <Uinput.hpp>

Public Member Functions

 Uinput (const Device &dev)
 
 Uinput (const Device &dev, int filedes)
 
::libevdev_uinput * data () noexcept
 
const ::libevdev_uinput * data () const noexcept
 
int fd () const noexcept
 
std::optional< std::filesystem::path > syspath () noexcept
 
std::optional< std::filesystem::path > devnode () noexcept
 
void write (Type type, Code code, int value)
 
void write (TypeCode type_code, int value)
 
void write (const Event &event)
 
void syn (Code code, int value)
 
void key (Code code, int value)
 
void rel (Code code, int value)
 
void abs (Code code, int value)
 
void msc (Code code, int value)
 
void sw (Code code, int value)
 
void led (Code code, int value)
 
void snd (Code code, int value)
 
void rep (Code code, int value)
 
void ff (Code code, int value)
 
void pwr (Code code, int value)
 
void ff_status (Code code, int value)
 
void flush ()
 

Detailed Description

A class to send events to a virtual device.

Constructor & Destructor Documentation

◆ Uinput() [1/2]

Uinput ( const Device dev)

◆ Uinput() [2/2]

Uinput ( const Device dev,
int  filedes 
)

Member Function Documentation

◆ abs()

void abs ( Code  code,
int  value 
)

◆ data() [1/2]

const ::libevdev_uinput * data ( ) const
noexcept

◆ data() [2/2]

::libevdev_uinput * data ( )
noexcept

◆ devnode()

std::optional< std::filesystem::path > devnode ( )
noexcept

◆ fd()

int fd ( ) const
noexcept

◆ ff()

void ff ( Code  code,
int  value 
)

◆ ff_status()

void ff_status ( Code  code,
int  value 
)

◆ flush()

void flush ( )

◆ key()

void key ( Code  code,
int  value 
)

◆ led()

void led ( Code  code,
int  value 
)

◆ msc()

void msc ( Code  code,
int  value 
)

◆ pwr()

void pwr ( Code  code,
int  value 
)

◆ rel()

void rel ( Code  code,
int  value 
)

◆ rep()

void rep ( Code  code,
int  value 
)

◆ snd()

void snd ( Code  code,
int  value 
)

◆ sw()

void sw ( Code  code,
int  value 
)

◆ syn()

void syn ( Code  code,
int  value 
)

◆ syspath()

std::optional< std::filesystem::path > syspath ( )
noexcept

◆ write() [1/3]

void write ( const Event event)

◆ write() [2/3]

void write ( Type  type,
Code  code,
int  value 
)

◆ write() [3/3]

void write ( TypeCode  type_code,
int  value 
)

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