Touch/mouse broken on iOS?


#1

After changeset 12682 touch is no longer working in our Exult app on iOS.
Is there an easy other app that I can test again that just drops in SDL2?

The Demos are also somewhat horrible broken and need update for the metal renderer.


#2

Maybe it’s because it uses uiwindow delegates. Need to find a good other test case to compare it to.


#3

I had this issue as well and patched locally:

I’m sure there’s a more elegant approach


#4

Thanks for confirming that it’s not our fault :wink:


#5

curiously this patch does not work for me.


#6

We use a custom -DIPHONE define in our builds – you may have to use something else, such as #if TARGET_OS_IPHONE or #if (__APPLE__ && TARGET_OS_IPHONE) instead :slight_smile:


#7

D’OH! using the standard __IPHONEOS__
that SDL uses (and we also :)) it works.
Somewhat.
Now the UIAlertController acts up when a text input field comes up. It will show the text input but the keyboard won’t pop up :frowning:


#8

Uh oh :sweat:

I hadn’t tested text input


#9

Touch was fixed by https://hg.libsdl.org/SDL/rev/cbd7a9f0a05e but UIAlertController is still broken. Can anyone point me to a small app/game that uses (current) SDL2 and can be tested for it.