Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Nymphodora, rki, 7th_zorro, Volkovstudio, Aku_Aku), 346 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
touchscreen / tap lite-c code tip #462384
09/25/16 21:57
09/25/16 21:57
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Quick tip if you want to mess around with touchscreen in lite-c code (so not using windows functions):

do a wait(1); before doing your actions that use the mouse cursor pos (like e.g. creating an entity at mouse cursor position on mouse_left / double tap), cause otherwise the position of the tap is not yet updated in Gamestudio3d but the action is done. Waiting 1 frame gives the new mouse cursor position. In most cases this shouldn't give any noticeable lag.

Happy dirty Acknexing! grin

Last edited by Reconnoiter; 09/25/16 21:57.
Re: touchscreen / tap lite-c code tip [Re: Reconnoiter] #462386
09/26/16 10:07
09/26/16 10:07
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Found out that waiting 1 frame does not prevent swipes from using the outdated position, to solve that you have wait an another frame: so use wait(2); instead of wait(1);.

Last edited by Reconnoiter; 09/26/16 10:08.

Moderated by  HeelX, Tobias_Runde 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1