Skip to content

Commit

Permalink
iOS should use the same size window for the controller tests as other…
Browse files Browse the repository at this point in the history
… platforms

Otherwise the position of the button and axis elements won't be correct
  • Loading branch information
slouken committed Nov 6, 2020
1 parent fbf0484 commit 59a644f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions test/controllermap.c
Expand Up @@ -24,13 +24,8 @@
/* Define this for verbose output while mapping controllers */
#define DEBUG_CONTROLLERMAP

#ifdef __IPHONEOS__
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 480
#else
#define SCREEN_WIDTH 512
#define SCREEN_HEIGHT 320
#endif

#define MARKER_BUTTON 1
#define MARKER_AXIS 2
Expand Down
5 changes: 0 additions & 5 deletions test/testgamecontroller.c
Expand Up @@ -24,13 +24,8 @@

#ifndef SDL_JOYSTICK_DISABLED

#ifdef __IPHONEOS__
#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 320
#else
#define SCREEN_WIDTH 512
#define SCREEN_HEIGHT 320
#endif

/* This is indexed by SDL_GameControllerButton. */
static const struct { int x; int y; } button_positions[] = {
Expand Down

0 comments on commit 59a644f

Please sign in to comment.