8#ifndef LIBEVDEVXX_EVENT_HPP
9#define LIBEVDEVXX_EVENT_HPP
19#include <libevdev/libevdev.h>
30 decltype(::input_event::input_event_sec)
sec{};
31 decltype(::input_event::input_event_usec)
usec{};
45 sec{e.input_event_sec},
46 usec{e.input_event_usec},
58 sec = e.input_event_sec;
59 usec = e.input_event_usec;
67 operator ::input_event()
71 r.input_event_sec =
sec;
72 r.input_event_usec =
usec;
The namespace of libevdevxx.
Definition AbsInfo.hpp:18
std::string to_string(const AbsInfo &info)
std::ostream & operator<<(std::ostream &out, const AbsInfo &info)
Type-safe class for evdev codes (KEY_*, BTN_*, REL_*, etc).
Definition Code.hpp:30
decltype(::input_event::input_event_sec) sec
Definition Event.hpp:30
operator::input_event() const noexcept
Definition Event.hpp:67
constexpr Event & operator=(const ::input_event &e) noexcept
Definition Event.hpp:55
Type type
Definition Event.hpp:32
constexpr Event() noexcept=default
decltype(::input_event::input_event_usec) usec
Definition Event.hpp:31
std::int32_t value
Definition Event.hpp:34
Code code
Definition Event.hpp:33