mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-29 05:11:04 +02:00
Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_DINPUT
This commit is contained in:
@@ -42,7 +42,7 @@ static const char *s_GamepadMappings[] = {
|
||||
"0300000032150000000a000000007703,Razer Atrox Arcade Stick,a:b0,b:b1,dpdown:b12,dpleft:b13,dpright:b11,dpup:b10,leftshoulder:b4,lefttrigger:b8,rightshoulder:b5,righttrigger:b9,x:b2,y:b3,",
|
||||
"03000000de280000ff11000000007701,Steam Virtual Gamepad,a:b0,b:b1,back:b6,dpdown:b12,dpleft:b13,dpright:b11,dpup:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a4,leftx:a1,lefty:a0~,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a2~,start:b7,x:b2,y:b3,",
|
||||
#endif
|
||||
#if SDL_JOYSTICK_DINPUT
|
||||
#ifdef SDL_JOYSTICK_DINPUT
|
||||
"03000000fa2d00000100000000000000,3DRUDDER,leftx:a0,lefty:a1,rightx:a5,righty:a2,",
|
||||
"03000000c82d00000090000000000000,8BitDo FC30 Pro,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,hint:SDL_GAMECONTROLLER_USE_BUTTON_LABELS:=1,",
|
||||
"03000000c82d00000090000000000000,8BitDo FC30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,hint:!SDL_GAMECONTROLLER_USE_BUTTON_LABELS:=1,",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "../SDL_sysjoystick.h"
|
||||
|
||||
#if SDL_JOYSTICK_DINPUT
|
||||
#ifdef SDL_JOYSTICK_DINPUT
|
||||
|
||||
#include "SDL_windowsjoystick_c.h"
|
||||
#include "SDL_dinputjoystick_c.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_JOYSTICK_DINPUT || SDL_JOYSTICK_XINPUT
|
||||
#if defined(SDL_JOYSTICK_DINPUT) || SDL_JOYSTICK_XINPUT
|
||||
|
||||
/* DirectInput joystick driver; written by Glenn Maynard, based on Andrei de
|
||||
* A. Formiga's WINMM driver.
|
||||
|
||||
@@ -71,7 +71,7 @@ struct joystick_hwdata
|
||||
{
|
||||
SDL_JoystickGUID guid;
|
||||
|
||||
#if SDL_JOYSTICK_DINPUT
|
||||
#ifdef SDL_JOYSTICK_DINPUT
|
||||
LPDIRECTINPUTDEVICE8 InputDevice;
|
||||
DIDEVCAPS Capabilities;
|
||||
SDL_bool buffered;
|
||||
@@ -89,7 +89,7 @@ struct joystick_hwdata
|
||||
DWORD dwPacketNumber;
|
||||
};
|
||||
|
||||
#if SDL_JOYSTICK_DINPUT
|
||||
#ifdef SDL_JOYSTICK_DINPUT
|
||||
extern const DIDATAFORMAT SDL_c_dfDIJoystick2;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user