iPhone - Touch/Mouse not working

Hi,

In the latest svn of SDL 1.3, touches are not being registered with SDL
event mechanism.

I put NSLog("") in the sdl_uikitview.m -> touchesBegan()" event handler to
make sure it was being called, and it is. It then calls SDL_SendMouseButton
and SDL_SendMouseMotion, but these events aren’t caught by SDL_WaitEvent()
???

Do touches work for anyone else? What version are you using?

Offtopic: for fun, I created an iphone app for FFMpeg’s ffplay, since ffplay
uses SDL, and it works :slight_smile: Video only shows a black rectangle/window but
audio works well. It can pick up audio from a movie or audio file. When
playing audio files, the video output shows a wave animation…so video
isn’t totally broken.–
View this message in context: http://www.nabble.com/iPhone---Touch-Mouse-not-working-tp21012761p21012761.html
Sent from the SDL mailing list archive at Nabble.com.

The problem was a missing SDL_SetMouseIndexId(i,i);
in SDL_uikitview.m ->initWithFrame

Yonas wrote:>

Hi,

In the latest svn of SDL 1.3, touches are not being registered with SDL
event mechanism.

I put NSLog("") in the sdl_uikitview.m -> touchesBegan()" event handler to
make sure it was being called, and it is. It then calls
SDL_SendMouseButton and SDL_SendMouseMotion, but these events aren’t
caught by SDL_WaitEvent() ???

Do touches work for anyone else? What version are you using?

Offtopic: for fun, I created an iphone app for FFMpeg’s ffplay, since
ffplay uses SDL, and it works :slight_smile: Video only shows a black rectangle/window
but audio works well. It can pick up audio from a movie or audio file.
When playing audio files, the video output shows a wave animation…so
video isn’t totally broken.


View this message in context: http://www.nabble.com/iPhone---Touch-Mouse-not-working-tp21012761p21021659.html
Sent from the SDL mailing list archive at Nabble.com.

Ok, I have the demo programs working now. I had to make a few changes, so
I’ll post a patch asap.

Yonas wrote:>

Hi,

In the latest svn of SDL 1.3, touches are not being registered with SDL
event mechanism.

I put NSLog("") in the sdl_uikitview.m -> touchesBegan()" event handler to
make sure it was being called, and it is. It then calls
SDL_SendMouseButton and SDL_SendMouseMotion, but these events aren’t
caught by SDL_WaitEvent() ???

Do touches work for anyone else? What version are you using?

Offtopic: for fun, I created an iphone app for FFMpeg’s ffplay, since
ffplay uses SDL, and it works :slight_smile: Video only shows a black rectangle/window
but audio works well. It can pick up audio from a movie or audio file.
When playing audio files, the video output shows a wave animation…so
video isn’t totally broken.


View this message in context: http://www.nabble.com/iPhone---Touch-Mouse-not-working-tp21012761p21021886.html
Sent from the SDL mailing list archive at Nabble.com.