score_under
 Joined: Aug 2008
Posts: 308
|
 |
Posted on: August 04, 2008, 10:58:19 PM |
|
|
|
There was a hint that it's not known what these do on the progress report.
io_clear() makes GM (or in this case, Enigma) treat all mouse buttons as released and the same with keyboard buttons. io_handle() makes GM/Enigma re-check all buttons for the keyboard and mouse (for example, if you released a button while the window was not in focus).
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #1 Posted on: August 05, 2008, 05:13:23 PM |
|
|
|
No, io_clear() clears the status of all keyboard and mouse keys. io_handle() re-checks the status of the keyboard and mouse keys.
It wasn't that they didn't know what they did, it was that they thought that they were worthless functions and didn't understand why they were there.
|
|
|
sprintf()
Past Contributor Joined: Apr 2008
Posts: 72
|
 |
Reply #2 Posted on: August 05, 2008, 05:48:29 PM |
|
|
|
They're useful for checking input for interrupting a loop. For example:
while(1) { io_handle();
if(keyboard_check(vk_escape)) break; }
Because GM only normally checks the buffers once per step.
|
|
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #4 Posted on: April 03, 2009, 02:14:26 AM |
|
|
|
Mark threads all this stuff anyway. Create a code that draws thousands of lines towards the mouse, and move the mouse around. Half the lines will follow the mouse.
|
|
|
|
|
sprintf()
Past Contributor Joined: Apr 2008
Posts: 72
|
 |
Reply #6 Posted on: April 04, 2009, 04:45:31 AM |
|
|
|
Fuck you RetroX! Live in the now!
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #7 Posted on: April 20, 2009, 08:13:51 PM |
|
|
|
And that.
|
|
|
score_under
 Joined: Aug 2008
Posts: 308
|
 |
Reply #8 Posted on: April 21, 2009, 05:39:31 PM |
|
|
|
keyboard_check_direct actually detects input from outside the window, which may not be what you want.
|
|
|
|
|
|
|
|
|
|