Skip to content

Commit b5ad8b8

Browse files
committed
feat: PlayerControls
1 parent d8b201e commit b5ad8b8

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

CommonLibF4/include/RE/Bethesda/PlayerControls.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ namespace RE
2222
struct AutoMoveHandler;
2323
struct GrabRotationHandler;
2424
struct JumpHandler;
25-
struct LookHandler;
2625
struct MeleeThrowHandler;
2726
struct MovementHandler;
2827
struct ReadyWeaponHandler;
@@ -138,6 +137,22 @@ namespace RE
138137
};
139138
static_assert(sizeof(HeldStateHandler) == 0x28);
140139

140+
class LookHandler :
141+
public PlayerInputHandler
142+
{
143+
public:
144+
static constexpr auto RTTI{ RTTI::LookHandler };
145+
static constexpr auto VTABLE{ VTABLE::LookHandler };
146+
147+
explicit constexpr LookHandler(PlayerControlsData& a_data) noexcept :
148+
PlayerInputHandler(a_data)
149+
{}
150+
151+
// members
152+
float thumbstickMaxedSec{ 0.0f }; // 20
153+
};
154+
static_assert(sizeof(LookHandler) == 0x28);
155+
141156
class __declspec(novtable) PlayerControls :
142157
BSInputEventReceiver, // 000
143158
BSTEventSink<MenuOpenCloseEvent>, // 010
@@ -154,7 +169,7 @@ namespace RE
154169

155170
static PlayerControls* GetSingleton()
156171
{
157-
static REL::Relocation<PlayerControls**> singleton{ REL::ID(544871) };
172+
static REL::Relocation<PlayerControls**> singleton{ REL::ID(2692013) };
158173
return *singleton;
159174
}
160175

0 commit comments

Comments
 (0)