Sign in to follow this  
Futurulus

A quick portability question -- keyboard codes

Recommended Posts

Hi, I'm making a program for Windows that I hope to later port to Linux and Mac. I'm trying to plan ahead by making my generic keycode enums fit as closely as possible to as many platform-specific keycodes as possible. I currently have the documentation for the WinAPI "VK_" keycodes, and I'm looking for something similar for Mac and for the X window system. I'm pretty sure X has very similar "XK_" codes, but I've been wading through [google], Wikipedia, and others for days and I haven't found anything useful. Can someone point me to a page where I can find this? I know this is probably the least of my problems when writing cross-platform programs, and especially when porting from Windows, but every little thing helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this