Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, Quad), 761 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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