mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 00:10:26 -06:00
26 lines
564 B
C++
26 lines
564 B
C++
#pragma once
|
|
|
|
namespace hid::detail
|
|
{
|
|
enum class EInputDevice
|
|
{
|
|
Keyboard,
|
|
Mouse,
|
|
Xbox,
|
|
PlayStation
|
|
};
|
|
|
|
extern EInputDevice g_inputDevice;
|
|
extern EInputDevice g_inputDeviceController;
|
|
|
|
extern uint16_t g_prohibitedButtons;
|
|
|
|
void Init();
|
|
|
|
uint32_t GetState(uint32_t dwUserIndex, XAMINPUT_STATE* pState);
|
|
uint32_t SetState(uint32_t dwUserIndex, XAMINPUT_VIBRATION* pVibration);
|
|
uint32_t GetCapabilities(uint32_t dwUserIndex, XAMINPUT_CAPABILITIES* pCaps);
|
|
|
|
bool IsInputDeviceController();
|
|
}
|