-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Smarter input handling for skyrim.
- Loading branch information
Showing
7 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
20 changes: 16 additions & 4 deletions
20
Code/client/Games/Skyrim/BSGraphics/BSGraphicsRenderer.cpp
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,13 @@ | ||
|
||
#include "Interface/MenuControls.h" | ||
|
||
void MenuControls::SetToggle(bool b) | ||
{ | ||
canBeOpened = b; | ||
} | ||
|
||
MenuControls* MenuControls::GetInstance() | ||
{ | ||
POINTER_SKYRIMSE(MenuControls*, s_instance, 0x142F9AB08 - 0x140000000); | ||
return *(s_instance.Get()); | ||
} |
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,18 @@ | ||
#pragma once | ||
|
||
class MenuControls | ||
{ | ||
public: | ||
static MenuControls* GetInstance(); | ||
|
||
void SetToggle(bool); | ||
|
||
private: | ||
char pad_0000[128]; // 0x0000 | ||
bool isProcessing; // 0x0080 | ||
bool isBeastForm; // 0x0081 | ||
bool isRemapMode; // 0x0082 | ||
bool canBeOpened; // 0x0083 | ||
char pad_0084[12]; // 0x0084 | ||
}; // Size: 0x0090 | ||
static_assert(sizeof(MenuControls) == 0x90); |
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