Sign in to follow this  

A quick portability question -- keyboard codes

This topic is 3848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

This topic is 3848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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