About Store Forum Documentation Contact



Post Reply 
Touch Detection Problem
Author Message
Tottel Offline
Member

Post: #1
Touch Detection Problem
I can't actually start playing Esenthel RTS: When I select the first mission, a window pops up with the mission info.
I cannot close this window. Every time I try to click on "close", it just moves the window, as if it's getting the wrong screen coordinates. I tried rotating my screen too, doesn't work.

Sony E. Xperia Neo
Android 4.0

I can press everything else (main menu, menu in-game, ..) just fine. It's just the "help" and "mission info" windows (so far).
06-23-2012 02:11 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Esenthel RTS
I'll investigate this asap.
1. Do any buttons in the Help window work? (<< >> Close)
2. Does all buttons from the game menu (save, load, help, options, close, exit) work ok?
3. Are you sure it's not a problem of them being just small and easy to miss with touch? (do you have some stylus to check precisely?)
4. Does the button detection work ok for you on Esenthel Editor for Android? (even if you change Gui Scale in the video options to a small value?)
06-23-2012 02:23 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #3
RE: Esenthel RTS
Ah, I found the problem.

It seems that the "help" and "mission info" windows are not active. When I click on them, they activate, and just move to where I clicked.

I can click on the buttons when I first press and hold my finger somewhere on the window, and then press the button with a 2nd finger.

EDIT: Spelling mistake on the 3rd help page: "from" not "frome". smile
(This post was last modified: 06-23-2012 02:31 PM by Tottel.)
06-23-2012 02:28 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Esenthel RTS
the "mission briefing" is just a EE::Gui.msgBox, could you check in Esenthel Editor for Android app, if the "About" menu option works ok (available after clicking button in the top left corner), that window is also a Gui.msgBox

Edit: thanks for pointing out the spelling mistake, will fix it smile
06-23-2012 02:33 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #5
RE: Esenthel RTS Touch Detection Problem
I have the same problem with the "About" window. It's very strange, because I'm quite sure it worked before (I upgraded to android 4.0 two days ago, it worked fine before that).

It seems to be the same in the game itself now: Whenever I click somewhere on the screen (when moving camera, ordering units, ..), the camera will just jump somewhere else.
The solution is the same: Everything works fine as long as I keep 1 finger pressed on the screen. I then need to use a 2nd finger to do all the action.

EDIT: Some more info: In the in-game menu, if I shortly tap an option, it will highlight it, but won't do anything. I must press it again OR hold my finger a bit longer on it before it does sometimes. And again: If I hold 1 finger anywhere on the menu, I can shortly tap an option, and it will work right away.
(This post was last modified: 06-23-2012 02:49 PM by Tottel.)
06-23-2012 02:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Esenthel RTS Touch Detection Problem
It looks like an issue with detection of "pushes/movement/releases" of the touches by the engine.
If you've just upgraded to Android 4.0, then maybe it's some problem with the Android firmware for your device (it handles the input differently or buggy)
I did test the game on Android 2.3 (HTC EVO 3D), and 4.0.3 (Transformer Prime)
Do other apps and games on your device work correctly that make use of touches?
Can you try rebooting the device? (shut down and restart)

Can you start the basic tutorial from the Esenthel Android SDK on your device? (you can now use Code Editor - it's faster to setup than Eclipse)
The tutorial works that it draws red circles in the places where touches are detected.
It would tell us most if you could let me know if the circles are drawn correctly on the screen.
06-23-2012 02:46 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #7
RE: Esenthel RTS Touch Detection Problem
Well, great. I can't even type in the Code Editor anymore. When I type something, it will highlight the previous letter I typed, meaning I'm just overwriting the previous letter and I only get 1 letter on my screen. :/

Which means that after every letter I type, I have to click right after the letter again to deselect it and type a next letter. Upgrading to the new Android might not have been the best idea.
(This post was last modified: 06-23-2012 03:14 PM by Tottel.)
06-23-2012 03:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Esenthel RTS Touch Detection Problem
1. Most importantly, can you try as many apps and games as possible (preferrably those that support multi-touch) what I'm curious is if other apps also have similar touch detection problems.
2. Did rebooting the device helped?
3. to run the Android tutorial, you will need to use Code Editor on Windows (have JDK, Google Android SDK and NDK installed, Esenthel Android SDK) if it's too much trouble I could send you the compiled test app in .apk format.
4. Why you can't type in Code Editor it's possibly because of the same issue, the engine still sees some touch registered, and it positions your cursor to the touch location.

I will move this thread to "Support/Platforms" section, as it turns out it's not Gui based problem, but Android Touch problem.
06-23-2012 03:25 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #9
RE: Esenthel RTS Touch Detection Problem
1. I tried a couple, such as Little Empire and Cartoon Wars, on top of the ones I have now (no games, I'm afraid), they work fine.
2. Nope.
3. Will try.
06-23-2012 06:18 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #10
RE: Esenthel RTS Touch Detection Problem
I've set up the code editor for Android programming, and ran an application that checks your touch input (Was really easy to get working btw.. Congratulations on that).

Here's a small video showing what the touch does. Note how the red circle doesn't disappear, and the camera makes a jump every time I press the screen again.

http://www.mediafire.com/?s9dzosk69xyk7i4
06-23-2012 07:35 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Esenthel RTS Touch Detection Problem
Thanks, I'll send you a test APK file that will log the motion event messages.
06-23-2012 09:20 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #12
RE: Esenthel RTS Touch Detection Problem
Can you
-start Code Editor / View/ Android Device Log
-extract the APK from the archive (link removed), and copy it on your device
-Enable "App Only" button on the log to list only EE messages
-Start the installed APK
-Press and release 1 finger on the screen
-Press and release 2 fingers on the screen
-Use "Export" on the Android Device Log and attach the file here

the output should be like this:
Code:
Time:(22:34:09), App(Esenthel): action:0, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:09), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:09), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:09), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:09), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:09), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:09), App(Esenthel): action:1, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:0, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:11), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:12), App(Esenthel): action:1, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:13), App(Esenthel): action:0, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:13), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:13), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:13), App(Esenthel): action:5, action_index:1, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:13), App(Esenthel): action:2, action_index:0, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:13), App(Esenthel): action:6, action_index:1, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:13), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:13), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:13), App(Esenthel): action:1, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:40), App(Esenthel): action:0, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:40), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:40), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:40), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:40), App(Esenthel): action:1, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:41), App(Esenthel): action:0, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:41), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:42), App(Esenthel): action:5, action_index:1, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:42), App(Esenthel): action:2, action_index:0, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:42), App(Esenthel): action:2, action_index:0, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:42), App(Esenthel): action:2, action_index:0, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:42), App(Esenthel): action:6, action_index:1, ptr_cnt:2, ptr_id:0x00000000 | 0x00000001 |
Time:(22:34:42), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:42), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:42), App(Esenthel): action:2, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
Time:(22:34:42), App(Esenthel): action:1, action_index:0, ptr_cnt:1, ptr_id:0x00000000 |
06-23-2012 09:47 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #13
RE: Touch Detection Problem
There you go:


Attached File(s)
.txt  Android Device Log.txt (Size: 1.16 KB / Downloads: 6)
06-23-2012 11:33 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #14
RE: Touch Detection Problem
Thanks!

But did you press 2 fingers simultaneously at one moment?

There should be "ptr_cnt:2" for 2 fingers

I'll try to make some changes and will send you 2nd apk file for testing.
06-23-2012 11:35 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #15
RE: Touch Detection Problem
Well, I feel stupid now. I completely misread your two lines about pressing.

The first 4 lines are from just as I open the application, it seems to be clicked already from where I clicked the icon to launch the app.

I clicked Once and released

I then clicked once and added my 2nd finger to it, dragged and released.


Attached File(s)
.txt  Android Device Log.txt (Size: 3.04 KB / Downloads: 3)
06-24-2012 12:08 AM
Find all posts by this user Quote this message in a reply
Post Reply