Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Forcing mouse/touch position

Author
Message
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 27th Feb 2016 07:22
Hi guys,
I'm wondering if there are any way to force the mouse to an specific position.
I've tried with SetRawMousePosition but if doesn't appear to work on iOS/Android.
My problem is that I've some configuration screenshots and the button "accept and continue" is placed in the position along all the screen. This button change its color when mouse/touch is over it and when you press it, the same button in the next screen appears -visually- as pushed/pressed.
So if I could set the mouse/touch position at 0,0 at the beginning of each screen, I'd solve the problem.

Any idea or command, or walkaround for solving this issue?

Thanks a lot in advance!
Zigi
15
Years of Service
User Offline
Joined: 5th Jul 2009
Location:
Posted: 27th Feb 2016 10:55 Edited at: 27th Feb 2016 11:00
I don't know about set the position of a touch I'm new to AppGameKit myself , but instead I would suggest to change screen when a button is released. Most UI works that way, Actions are trigger when a button is released and not when it pressed.
This way in theory the button going to get "pushed" only if it have been pressed in the previous frame. and being released in the current frame. So at the beginning of the new screen the button can't be visually pushed because it is not pressed at the beginning of the new screen. But in case it does, my guess would be it animation and stats (pressed or not) not reset at the beginning of the screen so also make sure the animation and stats of the button reset at the beginning of each screen.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Feb 2016 10:59
hmm, do the click if the mouse or finger goes up, released.
GetPointerReleased
AGK (Steam) V2.0.16 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 27th Feb 2016 11:39
Thanks guys
changing it... let you know the results

Login to post a reply

Server time is: 2024-11-17 04:12:54
Your offset time is: 2024-11-17 04:12:54