X-Win Keyboard Handling

Started by
0 comments, last by MadCow[an] 24 years ago
I have a Glide-based application, and want it to run in X-windows like it does in MS Windows. For keyboard handling, MSWin has GetAsyncKeyState() which is handy as it tells me if a key is down when it runs that function. Does X have a similar function, or do I need to write a routine to handle keyboard events myself?
Advertisement
You can use xlib (if you''re in x; I don''t know the specifics of the linux and glide), its event driven just like the win32 api (or the other way around).Check out information on XSelectInput with the KeyPressMask mask.

Good Luck



----------
meh
----------meh

This topic is closed to new replies.

Advertisement