Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Petra, AndrewAMD, Quad, VoroneTZ, 1 invisible), 488 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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