SDL 2.0.1 Touches on iOS

Hello,

did anyone notice that touch events are broken on iOS?

Emulated mouse events are coming down the event queue, however only first
Finger Down event will come through and Finger Up and Finger Motion will
never make it to the queue. I have been looking at the source code, even
trying to comment the IPHONE_TOUCH_EFFICIENT_DANGEROUS define without any
luck.

Should I try to fix the code or submit a bug?

IAcm coming from older SDL 2.0 fork where IAcve made some changes and
workarounds but would like to give an official 2.0.1 a try…

regards,

Pavel Kanzelsberger

Have you tried SDL 2.0.2 RC1? Touch events on iOS work fine for me using that.On Mar 7, 2014, at 4:01 PM, kanzels wrote:

Hello,

did anyone notice that touch events are broken on iOS?

Emulated mouse events are coming down the event queue, however only first Finger Down event will come through and Finger Up and Finger Motion will never make it to the queue. I have been looking at the source code, even trying to comment the IPHONE_TOUCH_EFFICIENT_DANGEROUS define without any luck.

Should I try to fix the code or submit a bug?

I?m coming from older SDL 2.0 fork where I?ve made some changes and workarounds but would like to give an official 2.0.1 a try…

regards,
Pavel Kanzelsberger


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Oh I didnAct notice thereAcs any RC1 version for download, could you
point me to some URL?

Original Message
Sender: Alex Szpakowski
Recipient: SDL Development List
Have you tried SDL 2.0.2 RC1? Touch events on iOS work fine for me using
that.Date: piatok, mar 7, 2014Ac**21:03
Subject: Re: [SDL] SDL 2.0.1 Touches on iOS
On Mar 7, 2014, at 4:01 PM, kanzels <@Pavel_Kanzelsberger> wrote:

Hello,
did anyone notice that touch events are broken on iOS?
Emulated mouse events are coming down the event queue, however only
first Finger Down event will come through and Finger Up and Finger
Motion will never make it to the queue. I have been looking at the
source code, even trying to comment the IPHONE_TOUCH_EFFICIENT_DANGEROUS
define without any luck.
Should I try to fix the code or submit a bug?
IAcm coming from older SDL 2.0 fork where IAcve made some changes
and workarounds but would like to give an official 2.0.1 a try…
regards,
Pavel Kanzelsberger


SDL mailing list
SDL@lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

http://www.libsdl.org/tmp/download-2.0.php

[ http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-March/093486.html ]On Mar 7, 2014, at 4:05 PM, kanzels wrote:

Oh I didn?t notice there?s any RC1 version for download, could you point me to some URL?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thanks! I tried, it is a little bit better, since a little bit more events
come in. But have a look, I log mouse and touch events. I just tried to
touch the screen and move my finger, this happens.

No finger up, no finger motion events:

@22:14:21 [MDRunLoop] Mouse motion at 346, 284

@22:14:21 [MDRunLoop] Finger down at 0.54, 0.30 (touch 1, finger 7158576)

@22:14:21 [MDRunLoop] Mouse motion at 334, 282

@22:14:21 [MDRunLoop] Mouse motion at 334, 284

@22:14:21 [MDRunLoop] Mouse motion at 334, 290

@22:14:21 [MDRunLoop] Mouse motion at 336, 296

@22:14:21 [MDRunLoop] Mouse motion at 338, 306

.

.

@22:14:21 [MDRunLoop] Mouse motion at 364, 482

@22:14:21 [MDRunLoop] Mouse motion at 364, 486

@22:14:21 [MDRunLoop] Mouse motion at 364, 488

@22:14:22 [MDRunLoop] Mouse button up at 364, 488

Now with some multitouch:

@22:16:07 [MDRunLoop] Mouse motion at 180, 524

@22:16:07 [MDRunLoop] Finger down at 0.28, 0.55 (touch 1, finger 7012528)

@22:16:07 [MDRunLoop] Mouse motion at 178, 528

@22:16:07 [MDRunLoop] Event 2050

@22:16:07 [MDRunLoop] Event 2050

@22:16:07 [MDRunLoop] Finger motion at 0.28, 0.55 (touch 1, finger
7012528)

@22:16:07 [MDRunLoop] Mouse motion at 180, 530

@22:16:07 [MDRunLoop] Event 2050

@22:16:07 [MDRunLoop] Finger motion at 0.58, 0.30 (touch 1, finger
6975184)

@22:16:08 [MDRunLoop] Mouse motion at 180, 532

@22:16:08 [MDRunLoop] Event 2050

@22:16:08 [MDRunLoop] Finger motion at 0.58, 0.30 (touch 1, finger
6975184)

@22:16:08 [MDRunLoop] Mouse motion at 180, 534

.

.

.

There is no finger down for 2nd finger, however they both now show some
movement, also thereAcs no finger up for the second one too.
Interestingly now mouse doesnAc
t get button down or up :slight_smile:

Pavel

Original Message
Sender: Alex Szpakowski
Recipient: SDL Development List
http://www.libsdl.org/tmp/download-2.0.php
[ http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-March/093486.html
]Date: piatok, mar 7, 2014Ac**21:06
Subject: Re: [SDL] SDL 2.0.1 Touches on iOS
On Mar 7, 2014, at 4:05 PM, kanzels <@Pavel_Kanzelsberger> wrote:

Oh I didnAct notice thereAcs any RC1 version for download, could you
point me to some URL?


SDL mailing list
SDL@lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

This event more explains the problem here:

I run the application and do a touch with 2 fingers (running iOS 7.0.5 on
iPhone 5s or iOS 7.0.3 in iOS Simulator and SDL 2.0.2 RC1, latest Xcode
running on Mountain Lion):

As you can see first finger produces FingerDown, however second one seems
to produce Mouse Motion since the 2nd finger is in different location on
screen. Then I get MouseUp for first finger and FingerUp for 2nd finger!!!

IAcm still checking the source code, canAct find anything wrong, but
still it somehow interferes with mouse events…

@22:48:33 [MDWindow] Created renderer: opengles2, size 640x960, scale
1.00x1.00 (max 4096x4096)

@22:48:33 [MDWindow] Viewport 0,0 640x960

@22:48:33 [MDWindow] Window is not vertically synced

@22:48:34 [MDRunLoop] Event 0x106

@22:48:34 [GLVertexShaderDriver] Compiling shader…

@22:48:34 [GLFragmentShaderDriver] Compiling shader…

@22:48:34 [GLProgramDriver] Linking program with 2 shaders…

@22:48:34 [GLFragmentShaderDriver] Compiling shader…

@22:48:34 [GLProgramDriver] Linking program with 2 shaders…

@22:48:34 [MDRunLoop] Window event 0x2

@22:48:34 [MDRunLoop] Window event 0x1

@22:48:37 [MDRunLoop] Mouse motion at 410, 260

@22:48:37 [MDRunLoop] Finger down at 0.64, 0.27 (touch 1, finger
273460416)

@22:48:38 [MDRunLoop] Mouse button up at 410, 260

@22:48:38 [MDRunLoop] Finger up at 0.36, 0.73 (touch 1, finger 273389552)

Pavel
Original Message
Sender: kanzels
Recipient: SDL Development List

Thanks! I tried, it is a little bit better, since a little bit more events
come in. But have a look, I log mouse and touch events. I just tried to
touch the screen and move my finger, this happens.

No finger up, no finger motion events:

@22:14:21 [MDRunLoop] Mouse motion at 346, 284

@22:14:21 [MDRunLoop] Finger down at 0.54, 0.30 (touch 1, finger 7158576)

@22:14:21 [MDRunLoop] Mouse motion at 334, 282

@22:14:21 [MDRunLoop] Mouse motion at 334, 284

@22:14:21 [MDRunLoop] Mouse motion at 334, 290

@22:14:21 [MDRunLoop] Mouse motion at 336, 296

@22:14:21 [MDRunLoop] Mouse motion at 338, 306

.

.

@22:14:21 [MDRunLoop] Mouse motion at 364, 482

@22:14:21 [MDRunLoop] Mouse motion at 364, 486

@22:14:21 [MDRunLoop] Mouse motion at 364, 488

@22:14:22 [MDRunLoop] Mouse button up at 364, 488

Now with some multitouch:

@22:16:07 [MDRunLoop] Mouse motion at 180, 524

@22:16:07 [MDRunLoop] Finger down at 0.28, 0.55 (touch 1, finger 7012528)

@22:16:07 [MDRunLoop] Mouse motion at 178, 528

@22:16:07 [MDRunLoop] Event 2050

@22:16:07 [MDRunLoop] Event 2050

@22:16:07 [MDRunLoop] Finger motion at 0.28, 0.55 (touch 1, finger
7012528)

@22:16:07 [MDRunLoop] Mouse motion at 180, 530

@22:16:07 [MDRunLoop] Event 2050

@22:16:07 [MDRunLoop] Finger motion at 0.58, 0.30 (touch 1, finger
6975184)

@22:16:08 [MDRunLoop] Mouse motion at 180, 532

@22:16:08 [MDRunLoop] Event 2050

@22:16:08 [MDRunLoop] Finger motion at 0.58, 0.30 (touch 1, finger
6975184)

@22:16:08 [MDRunLoop] Mouse motion at 180, 534

.

.

.

There is no finger down for 2nd finger, however they both now show some
movement, also thereAcs no finger up for the second one too.
Interestingly now mouse doesnAc
t get button down or up :slight_smile:

Pavel

Original Message
Sender: Alex Szpakowskiaszpakowski@gmail.com
Recipient: SDL Development Listsdl@lists.libsdl.org
http://www.libsdl.org/tmp/download-2.0.php
[ http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-March/093486.html
]Date: piatok, mar 7, 2014Ac22:18
Subject: Re: [SDL] SDL 2.0.1 Touches on iOS
Date: piatok, mar 7, 2014Ac
21:06
Subject: Re: [SDL] SDL 2.0.1 Touches on iOS
On Mar 7, 2014, at 4:05 PM, kanzels <@Pavel_Kanzelsberger> wrote:

Oh I didnAct notice thereAcs any RC1 version for download, could you
point me to some URL?


SDL mailing list
SDL@lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org