8#ifndef LIBEVDEVXX_PROPERTY_HPP
9#define LIBEVDEVXX_PROPERTY_HPP
17#include <libevdev/libevdev.h>
40 if (val > INPUT_PROP_MAX)
41 throw std::invalid_argument{
"invalid property number"};
49 std::size_t* pos =
nullptr);
Definition Property.hpp:25
static constexpr Property max() noexcept
Definition Property.hpp:56
static const Property pointer
Definition Property.hpp:63
static const Property button_pad
Definition Property.hpp:65
static const Property semi_mt
Definition Property.hpp:66
constexpr Property() noexcept=default
static const Property direct
Definition Property.hpp:64
static const Property accelerometer
Definition Property.hpp:69
static const Property top_button_pad
Definition Property.hpp:67
static Property parse(std::string_view name, std::size_t *pos=nullptr)
static const Property pointing_stick
Definition Property.hpp:68
Definition NumberBase.hpp:21
The namespace of libevdevxx.
Definition AbsInfo.hpp:18
std::string to_string(const AbsInfo &info)
std::ostream & operator<<(std::ostream &out, const AbsInfo &info)
std::istream & operator>>(std::istream &in, Property &prop)