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 / Bug with GetRawTouchCurrentX() and similar on PC window

Author
Message
TomToad
6
Years of Service
User Offline
Joined: 6th Jan 2018
Location:
Posted: 7th Apr 2018 19:28
Having issues with the GetRawTouchCurrentX/Y commands while using a window on a PC. The point reported by the command is relative to the window's outside border and not to the actual canvas screen. If you run the below and touch anywhere within the window, you will see that the box will be offset. The upper left corner should be under your finger. It works fine in full screen mode and on my android.

As you can see from the pic attached, the point 0,0 is actually on the outside edge of the title bar and windows border.

Attachments

Login to view attachments
RickV
TGC Development Director
24
Years of Service
User Offline
Joined: 27th Apr 2000
Location: United Kingdom
Posted: 12th Apr 2018 07:48
Thanks, we've made a note and will look into it.
Development Director
TGC Team
Supertino
7
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 12th Apr 2018 12:32
Related question - should the touch functions return values if testing on a PC using a mouse, or only work on a mobile device with a touch screen? I ask as I cannot get the touch events (even your example tomToad) to acknowledge a mouse press and update the values.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Apr 2018 16:43
Quote: " The point reported by the command is relative to the window's outside border and not to the actual canvas screen"

Thanks, fixed for the next version.

Quote: "should the touch functions return values if testing on a PC using a mouse"

No, the touch commands only respond to touch events. However the GetPointer commands will respond to both.
Supertino
7
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 13th Apr 2018 20:03
Thanks Paul, also related to Touch I post a thread about a possible bug with RawTouch on older android version https://forum.thegamecreators.com/thread/222052

Login to post a reply

Server time is: 2024-11-23 21:17:09
Your offset time is: 2024-11-23 21:17:09