2 registered members (Quad, AndrewAMD),
410
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
{FIXED} Capturing correct tap position on Windows tablet
#454269
09/02/15 20:26
09/02/15 20:26
|
Joined: Aug 2015
Posts: 10 Michigan
41Lumber
OP
Newbie
|
OP
Newbie
Joined: Aug 2015
Posts: 10
Michigan
|
It seems like this would be extremely easy, but not so much. If I tap the touch screen on my tablet, it doesn't immediately move mouse_pos. Even if I wait a frame or two, mouse_pos remains at the last tap position, which makes pressing buttons quite unintuitive.
Is there anything I can do, in lite-C or a plugin API, that will get the exact screen position of the most recent touch? I've attempted to process WM_GESTURE but had little success.
Last edited by 41Lumber; 09/03/15 17:16.
|
|
|
Re: Capturing correct tap position on Windows tablet
[Re: 41Lumber]
#454270
09/02/15 20:33
09/02/15 20:33
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
GetCursorPos MSDN: https://msdn.microsoft.com/de-de/library/windows/desktop/ms648390(v=vs.85).aspx
Make sure to only call it once if possible to reduce a waste of function calls
Last edited by Ch40zzC0d3r; 09/02/15 20:33.
|
|
|
Re: Capturing correct tap position on Windows tablet
[Re: Ch40zzC0d3r]
#454274
09/03/15 06:10
09/03/15 06:10
|
Malice
Unregistered
|
Malice
Unregistered
|
Hey @Ch40zzC0d3r, thanks for being the one to dig into msdn for us these days. It's off subject, but thanks we have so few that can do it these days.
|
|
|
Re: Capturing correct tap position on Windows tablet
[Re: 41Lumber]
#454303
09/03/15 17:50
09/03/15 17:50
|
Malice
Unregistered
|
Malice
Unregistered
|
41Lumber is it all right to ask you to share a basic example in the lite- c contributions section. This way if the question arises in the future from another users, a forum search will yield a thread with a working base example.
|
|
|
|