mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed: INPUT_XInput must also be available when compiling without XInput support so that the corresponding JoyDevice can be accessed.
This commit is contained in:
parent
47303b26c7
commit
add52d48cd
2 changed files with 11 additions and 8 deletions
|
@ -47,6 +47,15 @@ FString I_GetFromClipboard (bool windows_has_no_selection_clipboard);
|
|||
|
||||
void I_GetEvent();
|
||||
|
||||
enum
|
||||
{
|
||||
INPUT_DIJoy,
|
||||
INPUT_XInput,
|
||||
INPUT_RawPS2,
|
||||
NUM_JOYDEVICES
|
||||
};
|
||||
|
||||
|
||||
#ifdef USE_WINDOWS_DWORD
|
||||
#include "m_joy.h"
|
||||
|
||||
|
@ -121,14 +130,6 @@ public:
|
|||
virtual IJoystickConfig *Rescan() = 0;
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
INPUT_DIJoy,
|
||||
INPUT_XInput,
|
||||
INPUT_RawPS2,
|
||||
NUM_JOYDEVICES
|
||||
};
|
||||
|
||||
extern FJoystickCollection *JoyDevices[NUM_JOYDEVICES];
|
||||
|
||||
void I_StartupMouse();
|
||||
|
|
|
@ -789,6 +789,8 @@ void I_StartupXInput()
|
|||
|
||||
#else // NO_XINPUT
|
||||
|
||||
#include "i_input.h"
|
||||
|
||||
void I_StartupXInput()
|
||||
{
|
||||
JoyDevices[INPUT_XInput] = NULL;
|
||||
|
|
Loading…
Reference in a new issue