forked from CharmedBaryon/CommonLibSSE-NG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CharmedBaryon#25 from Nightfallstorm/vr
VR Menus RE
- Loading branch information
Showing
26 changed files
with
460 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#pragma once | ||
|
||
#ifdef SKYRIMVR | ||
|
||
# include "RE/B/BSTrackedControllerDevice.h" | ||
|
||
namespace RE | ||
{ | ||
class BSOpenVRControllerDevice : | ||
public BSTrackedControllerDevice // 00 | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_BSOpenVRControllerDevice; | ||
|
||
struct Keys | ||
{ | ||
enum Key : std::uint32_t // Only tested with Oculus, keys are same for both controllers | ||
{ | ||
kBY = 1, // Y/B button on left/right hand respectively | ||
kGrip = 2, // Grip button | ||
kXA = 7, // X/A button on left/right hand respectively | ||
// kJoystick = 11, // Joystick moving event | ||
kJoystickTrigger = 32, // Joystick press | ||
kTrigger = 33 // Trigger button | ||
}; | ||
}; | ||
using Key = Keys::Key; | ||
|
||
// override (BSIInputDevice) | ||
virtual void Initialize() override; | ||
virtual void Process(float a_arg1) override; | ||
virtual void Reset() override; | ||
|
||
// members | ||
std::uint64_t unk80[0x16]; // 080 | ||
std::uint32_t unk130; // 130 | ||
std::uint32_t unk134; // 134 | ||
std::uint32_t unk138; // 138 | ||
std::uint32_t unk13C; // 13C | ||
std::uint32_t unk140; // 140 | ||
std::uint32_t unk144; // 144 | ||
std::uint32_t unk148; // 148 | ||
std::uint32_t unk14C; // 14C | ||
}; | ||
static_assert(sizeof(BSOpenVRControllerDevice) == 0x150); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#ifdef SKYRIMVR | ||
|
||
namespace RE | ||
{ | ||
enum class ControllerDeviceHand // Not sure on this one, enum needs more RE | ||
{ | ||
kLeft = 0, | ||
kRight = 1, | ||
|
||
kNeither = 3 | ||
}; | ||
|
||
class BSTrackedControllerDevice : | ||
public BSInputDevice | ||
{ | ||
public: | ||
// members | ||
std::uint64_t unk70; // 70 | ||
ControllerDeviceHand hand; // 78 | ||
vr::TrackedDeviceIndex_t trackedDeviceIndex; // 7C | ||
}; | ||
static_assert(sizeof(BSTrackedControllerDevice) == 0x80); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#pragma once | ||
|
||
#ifdef SKYRIMVR | ||
namespace RE | ||
{ | ||
class HudModeChangeEvent | ||
{ | ||
}; | ||
|
||
// TODO: Name not fully accurate, needs REing to determine usage for this | ||
class HudMoveChangeEventSource : public BSTEventSource<HudModeChangeEvent> | ||
{ | ||
public: | ||
HudMoveChangeEventSource* GetSingleton(); // TODO: Add singleton | ||
|
||
// members | ||
std::uint64_t unk58; // 58 | ||
std::uint64_t unk60; // 60 | ||
std::uint64_t unk68; // 68 | ||
std::uint32_t unk6C; // 6C - set to 32 | ||
std::uint32_t unk70; // 70 - set to 32 | ||
std::uint32_t unk74; // 74 - set to 32 | ||
void* unk78; // 78 - set to SkyrimVR.exe+0x1EAAB34 | ||
std::uint64_t unk80; // 80 | ||
void* unk88; // 88 - points to allocated array of size 32, each member 0x18 size it seems | ||
std::uint64_t unk90[10]; // 90 | ||
}; | ||
static_assert(sizeof(HudMoveChangeEventSource) == 0xE8); // Unconfirmed, highest seen so far | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.