|
libevdevxx 0.5.4
A C++ wrapper for libevdev.
|
A class to send events to a virtual device. More...
#include <Uinput.hpp>
Public Member Functions | |
| Uinput (std::nullptr_t p=nullptr) noexcept | |
| Uinput (const Device &dev, int fd=LIBEVDEV_UINPUT_OPEN_MANAGED) | |
| ~Uinput () noexcept | |
| Uinput (Uinput &&other) noexcept | |
| Move constructor. | |
| Uinput & | operator= (Uinput &&other) noexcept |
| Move assignment. | |
| void | create (const Device &dev, int fd=LIBEVDEV_UINPUT_OPEN_MANAGED) |
| void | destroy () noexcept override |
| int | get_fd () const noexcept |
| std::filesystem::path | get_syspath () const |
| std::optional< std::filesystem::path > | try_get_syspath () const |
| std::filesystem::path | get_devnode () const |
| std::optional< std::filesystem::path > | try_get_devnode () const |
| void | write (Type type, Code code, int value) |
| void | write (TypeCode type_code, int value) |
| void | write (const Event &event) |
| void | write_syn (Code code, int value) |
| void | write_key (Code code, int value) |
| void | write_rel (Code code, int value) |
| void | write_abs (Code code, int value) |
| void | write_msc (Code code, int value) |
| void | write_sw (Code code, int value) |
| void | write_led (Code code, int value) |
| void | write_snd (Code code, int value) |
| void | write_rep (Code code, int value) |
| void | write_ff (Code code, int value) |
| void | write_pwr (Code code, int value) |
| void | write_ff_status (Code code, int value) |
| void | flush () |
| Public Member Functions inherited from basic_wrapper< libevdev_uinput * > | |
| constexpr | basic_wrapper () noexcept=default |
| constexpr | basic_wrapper (libevdev_uinput *src) noexcept |
| constexpr | basic_wrapper (basic_wrapper &&other) noexcept |
| Move constructor. | |
| basic_wrapper & | operator= (basic_wrapper &&other) noexcept |
| Move assignment. | |
| bool | is_valid () const noexcept |
| operator bool () const noexcept | |
| raw_type | data () noexcept |
| const raw_type | data () const noexcept |
| void | acquire (state_type new_state) noexcept |
| state_type | release () noexcept |
Additional Inherited Members | |
| Public Types inherited from basic_wrapper< libevdev_uinput * > | |
| using | raw_type |
| using | state_type |
| Static Public Attributes inherited from basic_wrapper< libevdev_uinput * > | |
| static constexpr raw_type | invalid_value |
| Protected Member Functions inherited from basic_wrapper< libevdev_uinput * > | |
| ~basic_wrapper () noexcept=default | |
| Protected Attributes inherited from basic_wrapper< libevdev_uinput * > | |
| libevdev_uinput * | raw |
A class to send events to a virtual device.
|
noexcept |
| Uinput | ( | const Device & | dev, |
| int | fd = LIBEVDEV_UINPUT_OPEN_MANAGED ) |
|
noexcept |
|
noexcept |
Move constructor.
| void create | ( | const Device & | dev, |
| int | fd = LIBEVDEV_UINPUT_OPEN_MANAGED ) |
|
overridevirtualnoexcept |
Implements basic_wrapper< libevdev_uinput * >.
| void flush | ( | ) |
|
nodiscard |
|
nodiscardnoexcept |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| void write | ( | const Event & | event | ) |
| void write | ( | TypeCode | type_code, |
| int | value ) |
| void write_abs | ( | Code | code, |
| int | value ) |
| void write_ff | ( | Code | code, |
| int | value ) |
| void write_ff_status | ( | Code | code, |
| int | value ) |
| void write_key | ( | Code | code, |
| int | value ) |
| void write_led | ( | Code | code, |
| int | value ) |
| void write_msc | ( | Code | code, |
| int | value ) |
| void write_pwr | ( | Code | code, |
| int | value ) |
| void write_rel | ( | Code | code, |
| int | value ) |
| void write_rep | ( | Code | code, |
| int | value ) |
| void write_snd | ( | Code | code, |
| int | value ) |
| void write_sw | ( | Code | code, |
| int | value ) |
| void write_syn | ( | Code | code, |
| int | value ) |