11 #include <libevdev/libevdev.h> 18 namespace duds {
namespace os {
namespace linux {
25 const char *str = libevdev_event_type_get_name(
type);
38 const char *str = libevdev_event_code_get_name(
type,
code);
std::string codeName() const noexcept
Returns a string of the macro name for the event code, such as "REL_Y", or an empty string if the cod...
std::uint16_t code
An event code, such as KEY_A, ABS_X, or REL_Y.
std::uint16_t type
An event type, such as EV_KEY, EV_ABS, or EV_REL.
std::string typeName() const noexcept
Returns a string of the macro name for the event type, such as "EV_KEY", or an empty string if the ty...