Mirage Source http://www.miragesource.net/forums/ |
|
probably a simple question... http://www.miragesource.net/forums/viewtopic.php?f=201&t=2180 |
Page 1 of 1 |
Author: | Gilgamesch [ Fri Jun 29, 2007 12:14 am ] |
Post subject: | probably a simple question... |
soo, its a general question about the mirage client, you know the gameloop is being called all he time over and over, so it wont actually notice anything when you press a button or something while being in frmmirage and ingame, except if you put something somewhere to handle this stuff, and i cant find this piece of code where it tells the gameloop to still handle other stuff like keypresses while doing everything. i hope you know what i mean, thanks. |
Author: | Matt [ Fri Jun 29, 2007 12:28 am ] |
Post subject: | Re: probably a simple question... |
Sub HandleKeyPresses? Or do you mean like form_keyup, form_keydown, etc? |
Author: | Verrigan [ Fri Jun 29, 2007 2:21 am ] |
Post subject: | Re: probably a simple question... |
DoEvents? |
Author: | Gilgamesch [ Fri Jun 29, 2007 5:11 pm ] |
Post subject: | Re: probably a simple question... |
okey thanks, doevents was the one, but now, how come Form_MouseDown works, but Form_KeyDown doesnt? |
Author: | Verrigan [ Fri Jun 29, 2007 6:08 pm ] |
Post subject: | Re: probably a simple question... |
There is a property you have to set, on the form, called KeyPreview.. This will allow your form to 'preview' key presses, even if your focus is in a text box or something else. That should make it work, I think. ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |