tags:

views:

52

answers:

2

There are at least 3 different keyboard layouts who are using the program i make, and i dont care which key they press, the more important thing is where the keys are pressed.

I cant just ask the user to press 100 different keys/combinations, that would take too much time and be very confusing to the user.

Is there some library or something that can do this for me?

A: 

Look up Raw Input.

Goz
A: 

This cannot be done. Keyboards do not come with their layout in an electronic form, that could be looked up by the OS. They just send the code for the key pressed, not where the key resides. I'm working on several keyboards daily, which are all classified as having German layout, but with some of the keys being in different places.

The only way to find out at what physical position a specific key is on a specific keyboard is to look at what's printed on the key.

sbi