IPHONE: Refactor event code a bit.

Now mouse x/y coordinates are passed as int.
This commit is contained in:
Johannes Schickel 2012-02-20 17:35:19 +01:00
parent 5cc3d754f7
commit d4c167414d
6 changed files with 118 additions and 87 deletions

View file

@ -139,13 +139,13 @@ bool OSystem_IPHONE::getFeatureState(Feature f) {
void OSystem_IPHONE::suspendLoop() {
bool done = false;
int eventType;
float xUnit, yUnit;
int x, y;
uint32 startTime = getMillis();
stopSoundsystem();
while (!done) {
if (iPhone_fetchEvent(&eventType, &xUnit, &yUnit))
if (iPhone_fetchEvent(&eventType, &x, &y))
if ((InputEvent)eventType == kInputApplicationResumed)
done = true;
usleep(100000);