mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-02 01:30:25 -06:00
hid: implemented button prohibition (#104)
This commit is contained in:
@@ -5,11 +5,18 @@
|
||||
hid::detail::EInputDevice hid::detail::g_inputDevice;
|
||||
hid::detail::EInputDevice hid::detail::g_inputDeviceController;
|
||||
|
||||
uint16_t hid::detail::g_prohibitedButtons;
|
||||
|
||||
void hid::Init()
|
||||
{
|
||||
detail::Init();
|
||||
}
|
||||
|
||||
void hid::SetProhibitedButtons(uint16_t wButtons)
|
||||
{
|
||||
hid::detail::g_prohibitedButtons = wButtons;
|
||||
}
|
||||
|
||||
uint32_t hid::GetState(uint32_t dwUserIndex, XAMINPUT_STATE* pState)
|
||||
{
|
||||
return detail::GetState(dwUserIndex, pState);
|
||||
|
||||
@@ -5,6 +5,7 @@ union SDL_Event;
|
||||
namespace hid
|
||||
{
|
||||
void Init();
|
||||
void SetProhibitedButtons(uint16_t wButtons);
|
||||
|
||||
uint32_t GetState(uint32_t dwUserIndex, XAMINPUT_STATE* pState);
|
||||
uint32_t SetState(uint32_t dwUserIndex, XAMINPUT_VIBRATION* pVibration);
|
||||
|
||||
@@ -13,6 +13,8 @@ namespace hid::detail
|
||||
extern EInputDevice g_inputDevice;
|
||||
extern EInputDevice g_inputDeviceController;
|
||||
|
||||
extern uint16_t g_prohibitedButtons;
|
||||
|
||||
void Init();
|
||||
|
||||
uint32_t GetState(uint32_t dwUserIndex, XAMINPUT_STATE* pState);
|
||||
|
||||
Reference in New Issue
Block a user