Skip to content

Commit

Permalink
feat: PlayerControls
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed Jun 15, 2024
1 parent d8b201e commit b5ad8b8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions CommonLibF4/include/RE/Bethesda/PlayerControls.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ namespace RE
struct AutoMoveHandler;
struct GrabRotationHandler;
struct JumpHandler;
struct LookHandler;
struct MeleeThrowHandler;
struct MovementHandler;
struct ReadyWeaponHandler;
Expand Down Expand Up @@ -138,6 +137,22 @@ namespace RE
};
static_assert(sizeof(HeldStateHandler) == 0x28);

class LookHandler :
public PlayerInputHandler
{
public:
static constexpr auto RTTI{ RTTI::LookHandler };
static constexpr auto VTABLE{ VTABLE::LookHandler };

explicit constexpr LookHandler(PlayerControlsData& a_data) noexcept :
PlayerInputHandler(a_data)
{}

// members
float thumbstickMaxedSec{ 0.0f }; // 20
};
static_assert(sizeof(LookHandler) == 0x28);

class __declspec(novtable) PlayerControls :
BSInputEventReceiver, // 000
BSTEventSink<MenuOpenCloseEvent>, // 010
Expand All @@ -154,7 +169,7 @@ namespace RE

static PlayerControls* GetSingleton()
{
static REL::Relocation<PlayerControls**> singleton{ REL::ID(544871) };
static REL::Relocation<PlayerControls**> singleton{ REL::ID(2692013) };
return *singleton;
}

Expand Down

0 comments on commit b5ad8b8

Please sign in to comment.