[SDL] iOS Touch and Mouse Events
havoc at ghdigital.com
Fri Jul 29 16:08:53 PDT 2011
I thought of mentioning this quirk but I didn't, sorry. I found it equally confusing.
It would be good to have a way to ask SDL to not give emulated mouse events on a touchscreen... Because for example one might really have a mouse AND a touchscreen (macbook) and one to distinguish
SDL 1.3 iOS generates mouse and finger on finger events.
Android generates mouse on finger events (I need to fix this, need to implement the jazzhand feature).
On 07/29/2011 03:43 PM, Brian Barnes wrote:
> Now that I'm pretty far into the iOS port, I'm running into some interesting things. I'm saving a list and will dole out as they become problems :)
> First -- and this took me a little bit to figure out what was going on -- in the simulator SDL events reports a parallel mouse event for every finger event. I just could not figure out why everything was so jumpy :) Is this by design? It's easy enough for me to #define out the mouse stuff, but that doesn't really seem right.
> Is this because of track pads?
> [Side note: having to handle rotation yourself -- flipping all the coords and the OpenGL view is a bit obnoxious :) ]
> [>] Brian
> SDL mailing list
> SDL at lists.libsdl.org
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier
More information about the SDL