25 Init(a_device, a_id, a_value, a_duration,
""sv);
41 void Init(
INPUT_DEVICE a_device, std::int32_t a_arg2, std::int32_t a_id,
float a_value,
float a_duration)
43 Init(a_device, a_arg2, a_id, a_value, a_duration,
""sv);
57 [[nodiscard]] constexpr
float Value() const noexcept
62 [[nodiscard]] constexpr
bool IsPressed() const noexcept {
return Value() > 0.0F; }
74 auto buttonEvent = malloc<ButtonEvent>(
sizeof(
ButtonEvent));
77 stl::emplace_vtable<ButtonEvent>(buttonEvent);
78 buttonEvent->device = a_inputDevice;
80 buttonEvent->next =
nullptr;
81 buttonEvent->userEvent = a_userEvent;
82 buttonEvent->idCode = a_idCode;
83 buttonEvent->value = a_value;
84 buttonEvent->heldDownSecs = a_heldDownSecs;
93 static_assert(
sizeof(ButtonEvent) == 0x30);
95 static_assert(
sizeof(ButtonEvent) == 0x38);
#define KEEP_FOR_RE()
Definition: PCH.h:713
std::uint32_t idCode
Definition: IDEvent.h:24
BSFixedString userEvent
Definition: IDEvent.h:23
Definition: VRWandEvent.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_ButtonEvent(static_cast< std::uint64_t >(687042))
INPUT_DEVICES::INPUT_DEVICE INPUT_DEVICE
Definition: InputDevices.h:27
constexpr std::array< REL::ID, 1 > VTABLE_ButtonEvent
Definition: Offsets_VTABLE.h:10619
detail::BSFixedString< char > BSFixedString
Definition: BSFixedString.h:239