RE: Exotica X keyboard events
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jun 30, 2002
- 372 views
Hello Chris, Thanks for the reply. > >From what I understand, you are using buffered mode, Yes >Knowing that, you can make a loop to retrieve the actual events, using >get_kb_buffer_data(). Thats the trouble, according to the Documentation that I have, it doesn't work that way. get_kb_buffer_data() has 2 parameters, event and key. event is the element of the buffer; ok there. the "key" is the key press you are looking for, so you have to know what you are looking for, you just cant ask it to return what it has. The return value is just true or false: true if you guessed the right key, false if that key isn't in that event. Again, this is just according to the docs and I assume its correct. ? I guess I could experiment with the function and do stuff like pass 0 or -1 to "key" and see if get_kb_buffer_data() will return a key code rather than just a true 1 or false 0. later, Lewis Townsend