Keydown Values
BlitzMax Forums/MaxGUI Module/Keydown Values
| ||
I have upto date blitz max and maxgui. The key return commands are not working like they should. Such as keydown(Key_letter) |
| ||
You know that you have to use EVENT_KEYDOWN and/or EVENT_KEYUP in MaxGUI, don't you?Repeat WaitEvent () Select EventID () 'blabla events blabla Case EVENT_KEYDOWN Select EventData () Case KEY_ESCAPE 'do something Case KEY_A '... End Select 'blabla more events blabla End Select Forever |
| ||
Or call the EnablePolledInput() command before your main event loop. |
| ||
I thought KeyDown was Graphics based? I would have to go with d-bug on this one. |
| ||
Still not working.Blitz max is not returning values on key code, I think it only works when my opengl canvas is active. |
| ||
Post some code. |
| ||
Still not working. Did you try the suggestions above? |
| ||
I vote for "NO" :) |
| ||
Yes and it fixes the mouse problem only, not key board. |
| ||
Can we have some code? |
| ||
I thought KeyDown was Graphics based?It is, in that Graphics() calls EnablePolledInput(). |