CommonLibVR
BSOpenVRControllerDevice.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef SKYRIMVR
4 
6 
7 namespace RE
8 {
9  class BSOpenVRControllerDevice :
10  public BSTrackedControllerDevice // 00
11  {
12  public:
13  inline static constexpr auto RTTI = RTTI_BSOpenVRControllerDevice;
14 
15  struct Keys
16  {
17  enum Key : std::uint32_t // Only tested with Oculus, keys are same for both controllers
18  {
19  kBY = 1, // Y/B button on left/right hand respectively
20  kGrip = 2, // Grip button
21  kXA = 7, // X/A button on left/right hand respectively
22  // kJoystick = 11, // Joystick moving event
23  kJoystickTrigger = 32, // Joystick press
24  kTrigger = 33 // Trigger button
25  };
26  };
27  using Key = Keys::Key;
28 
29  // override (BSIInputDevice)
30  virtual void Initialize() override;
31  virtual void Process(float a_arg1) override;
32  virtual void Reset() override;
33 
34  // members
35  std::uint64_t unk80[0x16]; // 080
36  std::uint32_t unk130; // 130
37  std::uint32_t unk134; // 134
38  std::uint32_t unk138; // 138
39  std::uint32_t unk13C; // 13C
40  std::uint32_t unk140; // 140
41  std::uint32_t unk144; // 144
42  std::uint32_t unk148; // 148
43  std::uint32_t unk14C; // 14C
44  private:
45  KEEP_FOR_RE()
46  };
47  static_assert(sizeof(BSOpenVRControllerDevice) == 0x150);
48 }
49 #endif
#define KEEP_FOR_RE()
Definition: PCH.h:713
constexpr REL::Offset Reset(static_cast< std::uint64_t >(0x3D3160))
Definition: AbsorbEffect.h:6
constexpr REL::Offset RTTI_BSOpenVRControllerDevice(0x01F5FF28)