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 / Issue with Swap() ?

Author
Message
TheWeasel
12
Years of Service
User Offline
Joined: 6th Feb 2012
Location:
Posted: 22nd Feb 2012 10:55
According to the manual, the Sync() command is just automating the calls to update(), render(), and swap(). I wanted to use the commands seperately to create my own timing system, but I'm running into an issue, and I don't know if it's a bug, or I'm just doing something wrong.

This code works absolutely fine. Click the mouse or touch the screen, and the coordinates are displayed:



However, when manually calling update, render, and swap instead of sync, getpointerstate() no longer registers anything:



After doing some testing, the issue seems to be with the swap() command. Can someone confirm this is a bug, or am I somehow using the commands incorrectly?
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 22nd Feb 2012 15:53
actually you're right.

this problem didn't exist in previous AppGameKit updates.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Feb 2012 16:10
Sounds like a bug for the bug board. Anyone care to do the honours?

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 22nd Feb 2012 16:19
Looks like the interpreter doesn't register Swap as a frame ending command, so control never gets passed back to the device. I've let Lee know about it.

Login to post a reply

Server time is: 2024-11-23 04:06:45
Your offset time is: 2024-11-23 04:06:45