mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-10 07:13:20 +00:00
Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_PS2
This commit is contained in:
@@ -995,7 +995,7 @@ static const char *s_GamepadMappings[] = {
|
||||
#ifdef SDL_JOYSTICK_EMSCRIPTEN
|
||||
"default,Standard Gamepad,a:b0,b:b1,back:b8,dpdown:b13,dpleft:b14,dpright:b15,dpup:b12,guide:b16,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
|
||||
#endif
|
||||
#if SDL_JOYSTICK_PS2
|
||||
#ifdef SDL_JOYSTICK_PS2
|
||||
"0000000050533220436f6e74726f6c00,PS2 Controller,crc:ed87,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
|
||||
#endif
|
||||
#if SDL_JOYSTICK_PSP
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_JOYSTICK_PS2
|
||||
#ifdef SDL_JOYSTICK_PS2
|
||||
|
||||
/* This is the PS2 implementation of the SDL joystick API */
|
||||
#include <libmtap.h>
|
||||
|
||||
Reference in New Issue
Block a user