IPHONE: Refactor event code a bit.
Now mouse x/y coordinates are passed as int.
This commit is contained in:
parent
5cc3d754f7
commit
d4c167414d
6 changed files with 118 additions and 87 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue