18 [[nodiscard]]
constexpr float Value() const noexcept {
return value; }
20 [[nodiscard]]
constexpr bool IsPressed() const noexcept {
return Value() > 0.0F; }
32 auto buttonEvent = malloc<ButtonEvent>(
sizeof(
ButtonEvent));
33 std::memset(
reinterpret_cast<void*
>(buttonEvent), 0,
sizeof(
ButtonEvent));
35 stl::emplace_vtable<ButtonEvent>(buttonEvent);
36 buttonEvent->device = a_inputDevice;
38 buttonEvent->next =
nullptr;
39 buttonEvent->userEvent = a_userEvent;
40 buttonEvent->idCode = a_idCode;
41 buttonEvent->value = a_value;
42 buttonEvent->heldDownSecs = a_heldDownSecs;
47 static_assert(
sizeof(ButtonEvent) == 0x30);
Definition AbsorbEffect.h:6
constexpr REL::VariantID RTTI_ButtonEvent(687042, 394891, 0x1f0b280)
constexpr std::array< REL::VariantID, 1 > VTABLE_ButtonEvent
Definition Offsets_VTABLE.h:2351
INPUT_DEVICE
Definition InputDevices.h:8