42 static HIDConfig axis(
size_t offset,
size_t bytes = 1,
bool signed_val =
false)
46 .byte_offset = offset,
48 .is_signed = signed_val
52 static HIDConfig button(
size_t offset, uint8_t mask = 0xFF,
bool invert_val =
false)
56 .byte_offset = offset,
82 .custom_parser = std::forward<F>(parser)
126 [[nodiscard]]
double parse_axis(std::span<const uint8_t> bytes)
const;
133 [[nodiscard]]
double parse_button(std::span<const uint8_t> bytes)
const;
135 [[nodiscard]]
double apply_deadzone(
double normalized)
const;