user380719
user380719

Reputation: 9903

How can I get the position of a key on a keyboard

I am writing my own on screen keyboard.

The only piece missing is the position of each key on the keyboard.

Windows allows you to get the keyboard layout: http://msdn.microsoft.com/en-us/library/ms929433.aspx

But how does one get the position of a key for a given layout?

Upvotes: 0

Views: 908

Answers (1)

Andreas Rejbrand
Andreas Rejbrand

Reputation: 109002

I do not think (am quite sure that) you cannot get (X, Y) coordinates of a key on a keyboard, given a language identifier. After all, this depends on the keyboard. When it comes to the typical layouts, I guess you have to obtain the data from some external source...

Upvotes: 1

Related Questions