CommonLibSSE NG
Loading...
Searching...
No Matches
BSWin32KeyboardDevice.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace RE
6{
8 {
9 public:
10 inline static constexpr auto RTTI = RTTI_BSWin32KeyboardDevice;
11 inline static constexpr auto VTABLE = VTABLE_BSWin32KeyboardDevice;
12
13 ~BSWin32KeyboardDevice() override; // 00
14
15 // override (BSKeyboardDevice)
16 void Initialize() override; // 01
17 void Process(float a_unk1) override; // 02
18 void Release() override; // 03
19 void Reset() override; // 08 - { std::memset(&curState, 0, 0x200); }
20 void Unk_09(void) override; // 09 - { return; }
21 void Unk_0A(void) override; // 0A - { return; }
22
23 [[nodiscard]] bool IsPressed(std::uint32_t a_keyCode) const;
25
26 // members
27 DirectInput8::IDirectInput8A* dInputDevice; // 070
29 std::uint8_t prevState[0x100]; // 168
30 std::uint8_t curState[0x100]; // 268
31 bool capsLockOn; // 368
32
33 protected:
35 };
36 static_assert(offsetof(BSWin32KeyboardDevice, prevState) == 0x168);
37 static_assert(offsetof(BSWin32KeyboardDevice, curState) == 0x268);
38 static_assert(sizeof(BSWin32KeyboardDevice) == 0x370);
39}
Definition BSKeyboardDevice.h:8
Definition BSWin32KeyboardDevice.h:8
void Unk_0A(void) override
DirectInput8::DIDEVICEOBJECTDATA diObjData[10]
Definition BSWin32KeyboardDevice.h:28
bool IsPressed(std::uint32_t a_keyCode) const
void Initialize() override
void Process(float a_unk1) override
void Unk_09(void) override
~BSWin32KeyboardDevice() override
DirectInput8::IDirectInput8A * dInputDevice
Definition BSWin32KeyboardDevice.h:27
std::uint8_t prevState[0x100]
Definition BSWin32KeyboardDevice.h:29
static constexpr auto RTTI
Definition BSWin32KeyboardDevice.h:10
std::uint8_t curState[0x100]
Definition BSWin32KeyboardDevice.h:30
bool capsLockOn
Definition BSWin32KeyboardDevice.h:31
void Release() override
Key RemapNumpadKey(DirectInput8::DIKey a_key)
static constexpr auto VTABLE
Definition BSWin32KeyboardDevice.h:11
DIKey
Definition DInputAPI.h:43
Definition AbsorbEffect.h:6
constexpr std::array< REL::VariantID, 1 > VTABLE_BSWin32KeyboardDevice
Definition Offsets_VTABLE.h:5435
constexpr REL::VariantID RTTI_BSWin32KeyboardDevice(690311, 398166, 0x1f5fd50)
Key
Definition BSKeyboardDevice.h:16
Definition DInputAPI.h:217