docs: add plugin setup guide

This commit is contained in:
2026-05-30 18:33:24 +12:00
parent f3db41c402
commit b61043a3fe
1776 changed files with 122386 additions and 2 deletions
@@ -0,0 +1,35 @@
#pragma once
#include "RE/B/ButtonEvent.h"
#include "RE/P/PlayerInputHandler.h"
namespace RE
{
class HeldStateHandler :
public PlayerInputHandler // 00
{
public:
static constexpr auto RTTI{ RTTI::HeldStateHandler };
static constexpr auto VTABLE{ VTABLE::HeldStateHandler };
explicit constexpr HeldStateHandler(PlayerControlsData& a_data) noexcept :
PlayerInputHandler(a_data)
{}
// NOLINTNEXTLINE(modernize-use-override)
virtual ~HeldStateHandler() = default; // 00
// add
virtual void UpdateHeldStateActive(const ButtonEvent* a_event) // 10
{
heldStateActive = a_event && (a_event->value != 0.0F || a_event->heldDownSecs < 0.0F);
}
virtual void SetHeldStateActive(bool a_flag) { heldStateActive = a_flag; } // 11
// members
bool heldStateActive{ false }; // 20
bool triggerReleaseEvent{ false }; // 21
};
static_assert(sizeof(HeldStateHandler) == 0x28);
}