Mercurial > sdl-ios-xcode
diff Xcode-iPhoneOS/Demos/src/mixer.c @ 4490:06c7423f8c60
Updated iPhone keyboard code (which builds and runs on the iPad and iPhone simulator now)
Updated iPhone demos (which build and run again)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Jul 2010 18:58:51 -0700 |
parents | 64ce267332c6 |
children | 78db79f5a4e2 |
line wrap: on
line diff
--- a/Xcode-iPhoneOS/Demos/src/mixer.c Tue Jul 06 22:26:03 2010 -0700 +++ b/Xcode-iPhoneOS/Demos/src/mixer.c Wed Jul 07 18:58:51 2010 -0700 @@ -124,10 +124,9 @@ int x, y, mouseIndex, i, drumIndex; - mouseIndex = event->button.which; + mouseIndex = 0; drumIndex = -1; - SDL_SelectMouse(mouseIndex); SDL_GetMouseState(&x, &y); /* check if we hit any of the drum buttons */ for (i = 0; i < NUM_DRUMS; i++) { @@ -153,7 +152,7 @@ handleMouseButtonUp(SDL_Event * event) { int i; - int mouseIndex = event->button.which; + int mouseIndex = 0; /* check if this should cause any of the buttons to become unpressed */ for (i = 0; i < NUM_DRUMS; i++) { if (buttons[i].touchIndex == mouseIndex) {