CommonLibSSE (Parapets fork)
BSInputDeviceManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/B/BSTEvent.h"
5 #include "RE/B/BSTSingleton.h"
6 #include "RE/I/InputDevices.h"
7 
8 namespace RE
9 {
10  class BSIInputDevice;
11  class BSPCGamepadDeviceDelegate;
12  class BSPCGamepadDeviceHandler;
13  class BSWin32KeyboardDevice;
14  class BSWin32MouseDevice;
15  class BSWin32VirtualKeyboardDevice;
16  class InputEvent;
17  struct BSRemoteGamepadEvent;
18 
20  public BSTEventSource<InputEvent*>, // 00
21  public BSTSingletonSDM<BSInputDeviceManager> // 58
22  {
23  public:
25 
26  bool GetButtonNameFromID(INPUT_DEVICE a_device, std::int32_t a_id, BSFixedString& a_buttonName) const;
34 
35  // members
36  std::uint8_t pad59; // 59
37  std::uint16_t pad5A; // 5A
38  std::uint32_t pad5C; // 5C
39  BSIInputDevice* devices[INPUT_DEVICES::kTotal]; // 60
41  bool valueQueued; // 81
42  bool pollingEnabled; // 82
43  std::uint8_t pad83; // 83
44  std::uint32_t pad84; // 84
46  std::uint8_t unkE0; // E0
47  std::uint8_t unkE1; // E1
48  std::uint16_t unkE2; // E2
49  std::uint32_t unkE4; // E4
50  std::uint64_t unkE8; // E8
51  };
52 #ifndef SKYRIMVR
53  static_assert(sizeof(BSInputDeviceManager) == 0xF0);
54 #else
55  static_assert(sizeof(BSInputDeviceManager) == 0x120);
56 #endif
57 }
Definition: BSIInputDevice.h:8
Definition: BSInputDeviceManager.h:22
std::uint32_t unkE4
Definition: BSInputDeviceManager.h:49
std::uint32_t pad5C
Definition: BSInputDeviceManager.h:38
std::uint8_t pad83
Definition: BSInputDeviceManager.h:43
bool valueQueued
Definition: BSInputDeviceManager.h:41
std::uint8_t unkE1
Definition: BSInputDeviceManager.h:47
BSIInputDevice * devices[INPUT_DEVICES::kTotal]
Definition: BSInputDeviceManager.h:39
std::uint8_t unkE0
Definition: BSInputDeviceManager.h:46
bool queuedGamepadEnableValue
Definition: BSInputDeviceManager.h:40
std::uint32_t pad84
Definition: BSInputDeviceManager.h:44
bool pollingEnabled
Definition: BSInputDeviceManager.h:42
BSWin32VirtualKeyboardDevice * GetVirtualKeyboard()
BSPCGamepadDeviceDelegate * GetGamepad()
static BSInputDeviceManager * GetSingleton()
std::uint64_t unkE8
Definition: BSInputDeviceManager.h:50
BSWin32MouseDevice * GetMouse()
std::uint16_t unkE2
Definition: BSInputDeviceManager.h:48
bool GetButtonNameFromID(INPUT_DEVICE a_device, std::int32_t a_id, BSFixedString &a_buttonName) const
BSPCGamepadDeviceHandler * GetGamepadHandler()
BSWin32KeyboardDevice * GetKeyboard()
BSTEventSource< BSRemoteGamepadEvent > remoteGamepadEventSource
Definition: BSInputDeviceManager.h:45
std::uint16_t pad5A
Definition: BSInputDeviceManager.h:37
std::uint8_t pad59
Definition: BSInputDeviceManager.h:36
Definition: BSPCGamepadDeviceDelegate.h:10
Definition: BSPCGamepadDeviceHandler.h:10
Definition: BSTEvent.h:28
Definition: BSWin32KeyboardDevice.h:8
Definition: BSWin32MouseDevice.h:9
Definition: BSWin32VirtualKeyboardDevice.h:8
Definition: AbsorbEffect.h:6
Definition: BSTSingleton.h:50
INPUT_DEVICE
Definition: InputDevices.h:8