CommonLibVR
UserEvents.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/B/BSTSingleton.h"
5 
6 namespace RE
7 {
8  class UserEvents : public BSTSingletonSDM<UserEvents>
9  {
10  public:
12  {
13  enum INPUT_CONTEXT_ID : std::uint32_t
14  {
15  kGameplay = 0,
31 #ifdef SKYRIM_SUPPORT_AE
32  kMarketplace,
33 #endif
35 
36 #ifndef SKYRIMVR
38 
39  kNone
40 #else
41  kTotal = 17,
42  kNone = 22 // More input contexts might be available, needs REing
43 #endif
44 
45  };
46  };
48 
49  enum class USER_EVENT_FLAG
50  {
51  kNone = 0,
52  kMovement = 1 << 0,
53  kLooking = 1 << 1,
54  kActivate = 1 << 2,
55  kMenu = 1 << 3,
56  kConsole = 1 << 4,
57  kPOVSwitch = 1 << 5,
58  kFighting = 1 << 6,
59  kSneaking = 1 << 7,
60  kMainFour = 1 << 8,
61  kWheelZoom = 1 << 9,
62  kJumping = 1 << 10,
63  kVATS = 1 << 11,
64  kInvalid = 1 << 31,
65 
66  kAll = static_cast<std::underlying_type_t<USER_EVENT_FLAG>>(-1)
67  };
68 
70 
71  // members
72  std::uint8_t pad001; // 001
73  std::uint16_t pad002; // 002
74  std::uint32_t pad004; // 004
75  BSFixedString forward; // 008 - "Forward"
76  BSFixedString back; // 010 - "Back"
77  BSFixedString strafeLeft; // 018 - "Strafe Left"
78  BSFixedString strafeRight; // 020 - "Strafe Right"
79  BSFixedString move; // 028 - "Move"
80  BSFixedString look; // 030 - "Look"
81  BSFixedString activate; // 038 - "Activate"
82  BSFixedString leftAttack; // 040 - "Left Attack/Block"
83  BSFixedString rightAttack; // 048 - "Right Attack/Block"
84  BSFixedString dualAttack; // 050 - "Dual Attack"
85  BSFixedString forceRelease; // 058 - "ForceRelease"
86  BSFixedString pause; // 060 - "Pause"
87  BSFixedString readyWeapon; // 068 - "Ready Weapon"
88  BSFixedString togglePOV; // 070 - "Toggle POV"
89  BSFixedString jump; // 078 - "Jump"
90  BSFixedString journal; // 080 - "Journal"
91  BSFixedString sprint; // 088 - "Sprint"
92  BSFixedString sneak; // 090 - "Sneak"
93  BSFixedString shout; // 098 - "Shout"
94  BSFixedString kinectShout; // 0A0 - "KinectShout"
95  BSFixedString grab; // 0A8 - "Grab"
96  BSFixedString run; // 0B0 - "Run"
97  BSFixedString toggleRun; // 0B8 - "Toggle Always Run"
98  BSFixedString autoMove; // 0C0 - "Auto-Move"
99  BSFixedString quicksave; // 0C8 - "Quicksave"
100  BSFixedString quickload; // 0D0 - "Quickload"
101  BSFixedString newSave; // 0D8 - "NewSave"
102  BSFixedString inventory; // 0E0 - "Inventory"
103  BSFixedString stats; // 0E8 - "Stats"
104  BSFixedString map; // 0F0 - "Map"
105  BSFixedString screenshot; // 0F8 - "Screenshot"
106  BSFixedString multiScreenshot; // 100 - "Multi-Screenshot"
107  BSFixedString console; // 108 - "Console"
108  BSFixedString cameraPath; // 110 - "CameraPath"
109  BSFixedString tweenMenu; // 118 - "Tween Menu"
110  BSFixedString takeAll; // 120 - "Take All"
111  BSFixedString accept; // 128 - "Accept"
112  BSFixedString cancel; // 130 - "Cancel"
113  BSFixedString up; // 138 - "Up"
114  BSFixedString down; // 140 - "Down"
115  BSFixedString left; // 148 - "Left"
116  BSFixedString right; // 150 - "Right"
117  BSFixedString pageUp; // 158 - "PageUp"
118  BSFixedString pageDown; // 160 - "PageDown"
119  BSFixedString pick; // 168 - "Pick"
120  BSFixedString pickNext; // 170 - "PickNext"
121  BSFixedString pickPrevious; // 178 - "PickPrevious"
122  BSFixedString cursor; // 180 - "Cursor"
123  BSFixedString kinect; // 188 - "Kinect"
124  BSFixedString sprintStart; // 190 - "SprintStart"
125  BSFixedString sprintStop; // 198 - "SprintStop"
126  BSFixedString sneakStart; // 1A0 - "sneakStart"
127  BSFixedString sneakStop; // 1A8 - "sneakStop"
128  BSFixedString blockStart; // 1B0 - "blockStart"
129  BSFixedString blockStop; // 1B8 - "blockStop"
130  BSFixedString blockBash; // 1C0 - "blockBash"
131  BSFixedString attackStart; // 1C8 - "attackStart"
132  BSFixedString attackPowerStart; // 1D0 - "attackPowerStart"
133  BSFixedString reverseDirection; // 1D8 - "reverseDirection"
134  BSFixedString unequip; // 1E0 - "Unequip"
135  BSFixedString zoomIn; // 1E8 - "Zoom In"
136  BSFixedString zoomOut; // 1F0 - "Zoom Out"
137  BSFixedString rotateItem; // 1F8 - "RotateItem"
138  BSFixedString leftStick; // 200 - "Left Stick"
139  BSFixedString prevPage; // 208 - "PrevPage"
140  BSFixedString nextPage; // 210 - "NextPage"
141  BSFixedString prevSubPage; // 218 - "PrevSubPage"
142  BSFixedString nextSubPage; // 220 - "NextSubPage"
143  BSFixedString leftEquip; // 228 - "LeftEquip"
144  BSFixedString rightEquip; // 230 - "RightEquip"
145  BSFixedString toggleFavorite; // 238 - "ToggleFavorite"
146  BSFixedString favorites; // 240 - "Favorites"
147  BSFixedString hotkey1; // 248 - "Hotkey1"
148  BSFixedString hotkey2; // 250 - "Hotkey2"
149  BSFixedString hotkey3; // 258 - "Hotkey3"
150  BSFixedString hotkey4; // 260 - "Hotkey4"
151  BSFixedString hotkey5; // 268 - "Hotkey5"
152  BSFixedString hotkey6; // 270 - "Hotkey6"
153  BSFixedString hotkey7; // 278 - "Hotkey7"
154  BSFixedString hotkey8; // 280 - "Hotkey8"
155  BSFixedString quickInventory; // 288 - "Quick Inventory"
156  BSFixedString quickMagic; // 290 - "Quick Magic"
157  BSFixedString quickStats; // 298 - "Quick Stats"
158  BSFixedString quickMap; // 2A0 - "Quick Map"
159  BSFixedString toggleCursor; // 2A8 - "ToggleCursor"
160  BSFixedString wait; // 2B0 - "Wait"
161  BSFixedString click; // 2B8 - "Click"
162  BSFixedString mapLookMode; // 2C0 - "MapLookMode"
163  BSFixedString equip; // 2C8 - "Equip"
164  BSFixedString dropItem; // 2D0 - "DropItem"
165  BSFixedString rotate; // 2D8 - "Rotate"
166  BSFixedString nextFocus; // 2E0 - "NextFocus"
167  BSFixedString prevFocus; // 2E8 - "PreviousFocus"
168  BSFixedString setActiveQuest; // 2F0 - "SetActiveQuest"
169  BSFixedString placePlayerMarker; // 2F8 - "PlacePlayerMarker"
170  BSFixedString xButton; // 300 - "XButton"
171  BSFixedString yButton; // 308 - "YButton"
172  BSFixedString chargeItem; // 310 - "ChargeItem"
173  BSFixedString unk318; // 318 - ""
174  BSFixedString playerPosition; // 320 - "PlayerPosition"
175  BSFixedString localMap; // 328 - "LocalMap"
176  BSFixedString localMapMoveMode; // 330 - "LocalMapMoveMode"
177  BSFixedString itemZoom; // 338 - "Item Zoom"
178  private:
179  KEEP_FOR_RE()
180  };
181  static_assert(sizeof(UserEvents) == 0x340);
182 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: UserEvents.h:9
BSFixedString newSave
Definition: UserEvents.h:101
BSFixedString activate
Definition: UserEvents.h:81
BSFixedString nextSubPage
Definition: UserEvents.h:142
BSFixedString chargeItem
Definition: UserEvents.h:172
BSFixedString togglePOV
Definition: UserEvents.h:88
BSFixedString run
Definition: UserEvents.h:96
BSFixedString prevSubPage
Definition: UserEvents.h:141
BSFixedString toggleCursor
Definition: UserEvents.h:159
BSFixedString inventory
Definition: UserEvents.h:102
BSFixedString leftStick
Definition: UserEvents.h:138
BSFixedString sneakStop
Definition: UserEvents.h:127
BSFixedString hotkey3
Definition: UserEvents.h:149
BSFixedString quicksave
Definition: UserEvents.h:99
BSFixedString toggleFavorite
Definition: UserEvents.h:145
BSFixedString strafeLeft
Definition: UserEvents.h:77
BSFixedString sprintStart
Definition: UserEvents.h:124
BSFixedString takeAll
Definition: UserEvents.h:110
BSFixedString rotateItem
Definition: UserEvents.h:137
BSFixedString wait
Definition: UserEvents.h:160
BSFixedString nextPage
Definition: UserEvents.h:140
BSFixedString multiScreenshot
Definition: UserEvents.h:106
BSFixedString pageUp
Definition: UserEvents.h:117
BSFixedString sprint
Definition: UserEvents.h:91
BSFixedString map
Definition: UserEvents.h:104
BSFixedString zoomIn
Definition: UserEvents.h:135
BSFixedString autoMove
Definition: UserEvents.h:98
BSFixedString screenshot
Definition: UserEvents.h:105
BSFixedString readyWeapon
Definition: UserEvents.h:87
BSFixedString dualAttack
Definition: UserEvents.h:84
BSFixedString setActiveQuest
Definition: UserEvents.h:168
BSFixedString attackStart
Definition: UserEvents.h:131
BSFixedString pause
Definition: UserEvents.h:86
BSFixedString strafeRight
Definition: UserEvents.h:78
BSFixedString move
Definition: UserEvents.h:79
BSFixedString left
Definition: UserEvents.h:115
BSFixedString mapLookMode
Definition: UserEvents.h:162
BSFixedString sprintStop
Definition: UserEvents.h:125
BSFixedString rotate
Definition: UserEvents.h:165
BSFixedString forceRelease
Definition: UserEvents.h:85
BSFixedString shout
Definition: UserEvents.h:93
BSFixedString pickPrevious
Definition: UserEvents.h:121
BSFixedString cancel
Definition: UserEvents.h:112
BSFixedString rightAttack
Definition: UserEvents.h:83
BSFixedString quickStats
Definition: UserEvents.h:157
BSFixedString click
Definition: UserEvents.h:161
static UserEvents * GetSingleton()
BSFixedString quickMap
Definition: UserEvents.h:158
BSFixedString xButton
Definition: UserEvents.h:170
BSFixedString blockStart
Definition: UserEvents.h:128
BSFixedString unk318
Definition: UserEvents.h:173
BSFixedString placePlayerMarker
Definition: UserEvents.h:169
BSFixedString yButton
Definition: UserEvents.h:171
BSFixedString nextFocus
Definition: UserEvents.h:166
BSFixedString sneak
Definition: UserEvents.h:92
BSFixedString hotkey8
Definition: UserEvents.h:154
BSFixedString reverseDirection
Definition: UserEvents.h:133
BSFixedString hotkey4
Definition: UserEvents.h:150
BSFixedString quickMagic
Definition: UserEvents.h:156
BSFixedString jump
Definition: UserEvents.h:89
BSFixedString accept
Definition: UserEvents.h:111
BSFixedString zoomOut
Definition: UserEvents.h:136
BSFixedString equip
Definition: UserEvents.h:163
BSFixedString grab
Definition: UserEvents.h:95
std::uint16_t pad002
Definition: UserEvents.h:73
BSFixedString prevFocus
Definition: UserEvents.h:167
BSFixedString console
Definition: UserEvents.h:107
BSFixedString pickNext
Definition: UserEvents.h:120
BSFixedString itemZoom
Definition: UserEvents.h:177
BSFixedString hotkey5
Definition: UserEvents.h:151
BSFixedString forward
Definition: UserEvents.h:75
BSFixedString unequip
Definition: UserEvents.h:134
BSFixedString tweenMenu
Definition: UserEvents.h:109
BSFixedString hotkey1
Definition: UserEvents.h:147
BSFixedString cursor
Definition: UserEvents.h:122
BSFixedString back
Definition: UserEvents.h:76
BSFixedString leftAttack
Definition: UserEvents.h:82
BSFixedString prevPage
Definition: UserEvents.h:139
BSFixedString hotkey2
Definition: UserEvents.h:148
std::uint8_t pad001
Definition: UserEvents.h:72
BSFixedString pageDown
Definition: UserEvents.h:118
BSFixedString look
Definition: UserEvents.h:80
std::uint32_t pad004
Definition: UserEvents.h:74
BSFixedString kinectShout
Definition: UserEvents.h:94
BSFixedString down
Definition: UserEvents.h:114
BSFixedString stats
Definition: UserEvents.h:103
BSFixedString up
Definition: UserEvents.h:113
USER_EVENT_FLAG
Definition: UserEvents.h:50
BSFixedString blockBash
Definition: UserEvents.h:130
BSFixedString blockStop
Definition: UserEvents.h:129
BSFixedString localMapMoveMode
Definition: UserEvents.h:176
BSFixedString quickload
Definition: UserEvents.h:100
BSFixedString leftEquip
Definition: UserEvents.h:143
BSFixedString toggleRun
Definition: UserEvents.h:97
BSFixedString hotkey7
Definition: UserEvents.h:153
BSFixedString journal
Definition: UserEvents.h:90
BSFixedString localMap
Definition: UserEvents.h:175
BSFixedString dropItem
Definition: UserEvents.h:164
BSFixedString sneakStart
Definition: UserEvents.h:126
BSFixedString quickInventory
Definition: UserEvents.h:155
BSFixedString cameraPath
Definition: UserEvents.h:108
BSFixedString kinect
Definition: UserEvents.h:123
BSFixedString pick
Definition: UserEvents.h:119
BSFixedString right
Definition: UserEvents.h:116
BSFixedString attackPowerStart
Definition: UserEvents.h:132
BSFixedString rightEquip
Definition: UserEvents.h:144
BSFixedString hotkey6
Definition: UserEvents.h:152
BSFixedString playerPosition
Definition: UserEvents.h:174
BSFixedString favorites
Definition: UserEvents.h:146
Definition: AbsorbEffect.h:6
Definition: BSTSingleton.h:50
Definition: UserEvents.h:12
INPUT_CONTEXT_ID
Definition: UserEvents.h:14
@ kMapDebug
Definition: UserEvents.h:29
@ kMap
Definition: UserEvents.h:22
@ kInventory
Definition: UserEvents.h:19
@ kCursor
Definition: UserEvents.h:24
@ kFavorites
Definition: UserEvents.h:21
@ kItemMenu
Definition: UserEvents.h:18
@ kMenuMode
Definition: UserEvents.h:16
@ kDebugOverlay
Definition: UserEvents.h:26
@ kNone
Definition: UserEvents.h:39
@ kBook
Definition: UserEvents.h:25
@ kDebugText
Definition: UserEvents.h:20
@ kConsole
Definition: UserEvents.h:17
@ kTotal
Definition: UserEvents.h:37
@ kStats
Definition: UserEvents.h:23
@ kLockpicking
Definition: UserEvents.h:30
@ kFavor
Definition: UserEvents.h:34
@ kTFCMode
Definition: UserEvents.h:28
@ kGameplay
Definition: UserEvents.h:15
@ kJournal
Definition: UserEvents.h:27