test/testjoystick.c
changeset 2765 f55c87ae336b
parent 2201 6280c111ee80
child 5535 96594ac5fd1a
     1.1 --- a/test/testjoystick.c	Wed Sep 17 08:24:51 2008 +0000
     1.2 +++ b/test/testjoystick.c	Sat Oct 04 06:46:59 2008 +0000
     1.3 @@ -7,8 +7,13 @@
     1.4  
     1.5  #include "SDL.h"
     1.6  
     1.7 +#ifdef __IPHONEOS__
     1.8 +#define SCREEN_WIDTH	320
     1.9 +#define SCREEN_HEIGHT	480
    1.10 +#else
    1.11  #define SCREEN_WIDTH	640
    1.12  #define SCREEN_HEIGHT	480
    1.13 +#endif
    1.14  
    1.15  void
    1.16  WatchJoystick(SDL_Joystick * joystick)
    1.17 @@ -129,6 +134,7 @@
    1.18              } else if (y > (SCREEN_HEIGHT - 16)) {
    1.19                  y = SCREEN_HEIGHT - 16;
    1.20              }
    1.21 +
    1.22              axis_area[i][draw].x = (Sint16) x;
    1.23              axis_area[i][draw].y = (Sint16) y;
    1.24              axis_area[i][draw].w = 16;