mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add more InputSystem methods
This commit is contained in:
parent
5c92fde569
commit
91052d8e9e
@ -35,5 +35,19 @@ bool CInputSystem::IsButtonDown(ButtonCode_t Button)
|
|||||||
return CallVFunc<bool>(index, this, Button);
|
return CallVFunc<bool>(index, this, Button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Convert back + forth between ButtonCode/AnalogCode + strings
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
bool CInputSystem::ButtonCodeToString(ButtonCode_t Button)
|
||||||
|
{
|
||||||
|
const static int index = 25;
|
||||||
|
return CallVFunc<bool>(index, this, Button);
|
||||||
|
}
|
||||||
|
ButtonCode_t CInputSystem::StringToButtonCode(const char* pString)
|
||||||
|
{
|
||||||
|
const static int index = 26;
|
||||||
|
return CallVFunc<ButtonCode_t>(index, this, pString);
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
CInputSystem* g_pInputSystem = nullptr;
|
CInputSystem* g_pInputSystem = nullptr;
|
@ -8,6 +8,8 @@ public:
|
|||||||
void EnableInput(bool bEnabled); // @0x14039F100 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
void EnableInput(bool bEnabled); // @0x14039F100 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
||||||
void EnableMessagePump(bool bEnabled); // @0x14039F110 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
void EnableMessagePump(bool bEnabled); // @0x14039F110 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
||||||
bool IsButtonDown(ButtonCode_t Button); // @0x1403A0140 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
bool IsButtonDown(ButtonCode_t Button); // @0x1403A0140 in R5pc_r5launch_N1094_CL456479_2019_10_30_05_20_PM
|
||||||
|
bool ButtonCodeToString(ButtonCode_t Button);
|
||||||
|
ButtonCode_t StringToButtonCode(const char* pString);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
char pad_0000[16]; //0x0000
|
char pad_0000[16]; //0x0000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user