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((
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::ID RTTI_ButtonEvent(static_cast< std::uint64_t >(687042))
constexpr std::array< REL::ID, 1 > VTABLE_ButtonEvent
Definition: Offsets_VTABLE.h:10619