From b5ad8b8e5076ac3b86bf6134aa5b81ee7ae35b3a Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Sat, 15 Jun 2024 09:57:21 -0500 Subject: [PATCH] feat: `PlayerControls` --- .../include/RE/Bethesda/PlayerControls.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/CommonLibF4/include/RE/Bethesda/PlayerControls.h b/CommonLibF4/include/RE/Bethesda/PlayerControls.h index 400e511b..e068ea1f 100644 --- a/CommonLibF4/include/RE/Bethesda/PlayerControls.h +++ b/CommonLibF4/include/RE/Bethesda/PlayerControls.h @@ -22,7 +22,6 @@ namespace RE struct AutoMoveHandler; struct GrabRotationHandler; struct JumpHandler; - struct LookHandler; struct MeleeThrowHandler; struct MovementHandler; struct ReadyWeaponHandler; @@ -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, // 010 @@ -154,7 +169,7 @@ namespace RE static PlayerControls* GetSingleton() { - static REL::Relocation singleton{ REL::ID(544871) }; + static REL::Relocation singleton{ REL::ID(2692013) }; return *singleton; }