Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch by Holmes Futrell, mentored by Sam Lantinga --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403222
This commit is contained in:
parent
338ff54f1e
commit
c6ac35a2bb
113 changed files with 27686 additions and 22 deletions
|
@ -7,8 +7,13 @@
|
|||
|
||||
#include "SDL.h"
|
||||
|
||||
#ifdef __IPHONEOS__
|
||||
#define SCREEN_WIDTH 320
|
||||
#define SCREEN_HEIGHT 480
|
||||
#else
|
||||
#define SCREEN_WIDTH 640
|
||||
#define SCREEN_HEIGHT 480
|
||||
#endif
|
||||
|
||||
void
|
||||
WatchJoystick(SDL_Joystick * joystick)
|
||||
|
@ -129,6 +134,7 @@ WatchJoystick(SDL_Joystick * joystick)
|
|||
} else if (y > (SCREEN_HEIGHT - 16)) {
|
||||
y = SCREEN_HEIGHT - 16;
|
||||
}
|
||||
|
||||
axis_area[i][draw].x = (Sint16) x;
|
||||
axis_area[i][draw].y = (Sint16) y;
|
||||
axis_area[i][draw].w = 16;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue