diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
| commit | 7ccb819f867493f8ec202ea3b39c94c198c64584 (patch) | |
| tree | 94622e61af0ff359e3d6689cf274d74f60b2492a /gmod/CInput.hpp | |
| parent | 564d979b79e8a5aaa5014eba0ecd36c61575934f (diff) | |
first
Diffstat (limited to 'gmod/CInput.hpp')
| -rw-r--r-- | gmod/CInput.hpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gmod/CInput.hpp b/gmod/CInput.hpp new file mode 100644 index 0000000..613b849 --- /dev/null +++ b/gmod/CInput.hpp @@ -0,0 +1,44 @@ +#pragma once
+#include "vector.hpp"
+#include "IClientMode.hpp"
+
+class CInput {
+ void* pvftable; //0x00
+public:
+ bool m_fTrackIRAvailable; //0x04
+ bool m_fMouseInitialized; //0x05
+ bool m_fMouseActive; //0x06
+ bool m_fJoystickAdvancedInit; //0x07
+private:
+ char pad_0x08[ 0x2C ]; //0x08
+public:
+ void* m_pKeys; //0x34
+private:
+ char pad_0x38[ 0x64 ]; //0x38
+ int pad_0x41;
+ int pad_0x42;
+public:
+ bool m_fCameraInterceptingMouse; //0x9C
+ bool m_fCameraInThirdPerson; //0x9D
+ bool m_fCameraMovingWithMouse; //0x9E
+ vec3_t m_vecCameraOffset; //0xA0
+ bool m_fCameraDistanceMove; //0xAC
+ int m_nCameraOldX; //0xB0
+ int m_nCameraOldY; //0xB4
+ int m_nCameraX; //0xB8
+ int m_nCameraY; //0xBC
+ bool m_CameraIsOrthographic; //0xC0
+ vec3_t m_angPreviousViewAngles; //0xC4
+ vec3_t m_angPreviousViewAnglesTilt; //0xD0
+ float m_flLastForwardMove; //0xDC
+ int m_nClearInputState; //0xE0
+private:
+ char pad_0xE4[ 0x8 ]; //0xE4
+public:
+ user_cmd_t* m_pCommands; //0xEC
+ void* m_pVerifiedCommands; //0xF0
+
+ user_cmd_t* GetUserCmd( int slot, int seq_num ) {
+ return util::get_vfunc< 8, user_cmd_t* >( this, slot, seq_num );
+ }
+};
|
