Advertisement

Linux gurus, help me out!

Started by November 23, 2000 04:15 PM
1 comment, last by Geron 24 years, 2 months ago
1. Could someone tell me how to handle multiple keys under X? Right now I''m using XCheckEvent() and XLookupString() But this limits the number of keys to one. It works for a single key-press. But i want to be able to read sevral keys at the same time. (Kind of hard to do a game otherwise) 2. Does anyone here have a snippet for mem-copy using MMX? That works whit gcc... //Geron
//Geron ? ,,,__oOo_(O.O)_oOo__| | | | | | | | || | | | | | | | |
You do this the same way that windows programmers do, you track the keydown and keyup messages. If you want you can add some sort of delay so that combo keys will not activate before all keys are pressed.

If you really need more help I''ll dig out my Xlib book and shik it agian.
Advertisement
snowmoon:
I would be happy if you could help me out. Im quite new to X programming, just managed to make a window and draw some stuff in it.

//Geron
//Geron ? ,,,__oOo_(O.O)_oOo__| | | | | | | | || | | | | | | | |

This topic is closed to new replies.

Advertisement