Touch input on Android. |
Touch input on Android. |
Robotic-Brain
Guest
|
What does SDL_EventState(SDL_FINGERMOTION, SDL_QUERY) == SDL_ENABLE
return? Even if the wiki doesn't mention it, I think you have to enable those events first Am 11.07.2014 18:32, schrieb Mike McLean:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Touch input on Android. |
Mike McLean
Guest
|
It returns 1.
On July 11, 2014 9:54:47 AM MST, Robotic-Brain wrote:
-- Sent from my Android device with K-9 Mail. Please excuse my brevity. |
|||||||||||||||||
|
Touch input on Android. |
Robotic-Brain
Guest
|
I never developed for mobile so this was a shot in the blue...
Sorry I couldn't help Am 11.07.2014 19:27, schrieb Mike McLean:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||
|
Touch input on Android. |
Mike McLean
Guest
|
No problem. I appreciate the help. I am starting to suspect that it has something to do with how I have tied the Ogre3d rendering engine with SDL. I had to modify the jni interfaces for both libraries to get them to work together. I wonder if SDL isn't receiving the window/ touch events even though it is getting key events.
On July 11, 2014 4:36:09 PM MST, Robotic-Brain wrote:
-- Sent from my Android device with K-9 Mail. Please excuse my brevity. |
|||||||||||||||||||||
|
Touch input on Android. |
Robotic-Brain
Guest
|
Unfortunately input handling and rendering is tightly coupled trough the
window system on most platforms so Ogre comes with it's own Input subsystem afaik (newer got really into it), so you have to use the SDL Windows if you want the SDL events. A quick search revealed this: http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Using+SDL+Input I think you're looking for the "Experimental Way" Am 12.07.2014 02:50, schrieb Mike McLean:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||
|
Touch input on Android. |
Mike McLean
Guest
|
Actually while OIS was often included with OGRE it is not required by
it, just some of the samples. I used OIS for a while before switching to SDL on Linux and windows. OIS is no longer actively developed. What I have been trying to do on all 3 platforms (including android) is to have SDL create the window and OGRE render inside of it. This works fine on Linux and windows and I got it working on Android, but apparently not all the way. I have keyboard and mouse input working fine on the other 2 platforms. I may have to reevaluate how to make them coexist on android as I would prefer to use SDL for all input handling, file loading and possibly other situations. On 7/11/2014 6:12 PM, Robotic-Brain wrote:
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||
|
Touch input on Android. |
Mike McLean
Guest
|
Is there a way to get the SDL window handle on Android like WIndows and
X11? Right now I use some JNI hackery to get it and give it to OGRE. I am wondering if maybe this is different than the window handle that SDL is using. On 7/11/2014 6:22 PM, Mike McLean wrote:
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||||
|
Touch input on Android. |
Robotic-Brain
Guest
|
There is a function to get the native window handle, don't know if it
works on Android though.. I think it is SDL_GetWindowWMInfo Am 12.07.2014 03:29, schrieb Mike McLean:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||||||
|