mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +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();
|
void I_GetEvent();
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
INPUT_DIJoy,
|
||||||
|
INPUT_XInput,
|
||||||
|
INPUT_RawPS2,
|
||||||
|
NUM_JOYDEVICES
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_DWORD
|
#ifdef USE_WINDOWS_DWORD
|
||||||
#include "m_joy.h"
|
#include "m_joy.h"
|
||||||
|
|
||||||
|
@ -121,14 +130,6 @@ public:
|
||||||
virtual IJoystickConfig *Rescan() = 0;
|
virtual IJoystickConfig *Rescan() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
INPUT_DIJoy,
|
|
||||||
INPUT_XInput,
|
|
||||||
INPUT_RawPS2,
|
|
||||||
NUM_JOYDEVICES
|
|
||||||
};
|
|
||||||
|
|
||||||
extern FJoystickCollection *JoyDevices[NUM_JOYDEVICES];
|
extern FJoystickCollection *JoyDevices[NUM_JOYDEVICES];
|
||||||
|
|
||||||
void I_StartupMouse();
|
void I_StartupMouse();
|
||||||
|
|
|
@ -789,6 +789,8 @@ void I_StartupXInput()
|
||||||
|
|
||||||
#else // NO_XINPUT
|
#else // NO_XINPUT
|
||||||
|
|
||||||
|
#include "i_input.h"
|
||||||
|
|
||||||
void I_StartupXInput()
|
void I_StartupXInput()
|
||||||
{
|
{
|
||||||
JoyDevices[INPUT_XInput] = NULL;
|
JoyDevices[INPUT_XInput] = NULL;
|
||||||
|
|
Loading…
Reference in a new issue