In the following code:
..if you hit the 'a' key for example it prints:
65
97
0
Why are two codes being fed to the keyboard queue? If you un-comment FlushKeys() it prints
65
0
0
..so WaitKey(), it seems, is putting two values in instead of one. Strangely, if you hit 'space' instead of 'a' you get the expected
16
0
0
Is this a bug or do I not understand these commands correctly?
Russell
Graphics 640,480,0 a = WaitKey() Print a 'FlushKeys() b$ = GetChar() Print b$ c$ = GetChar() Print c$
..if you hit the 'a' key for example it prints:
65
97
0
Why are two codes being fed to the keyboard queue? If you un-comment FlushKeys() it prints
65
0
0
..so WaitKey(), it seems, is putting two values in instead of one. Strangely, if you hit 'space' instead of 'a' you get the expected
16
0
0
Is this a bug or do I not understand these commands correctly?
Russell