Gamestudio Links
Zorro Links
Newest Posts
Please consider
by DriftWood
Today at 03:10
Draw stuff from other thread
by Superku
Yesterday at 23:25
Partial fills with MT4 in live trading?
by Sphin
Yesterday at 19:06
New Zorro version 1.83
by DdlV
Yesterday at 13:55
Cubemaps losing mipmaps
by Quad
Yesterday at 12:37
Zorro & virtual desktops & Installation
by jcl
Yesterday at 10:59
ccyStrength() only working for some Currencies
by sdh309795gaas
07/18/18 05:02
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Who's Online
14 registered (brax, 3run, Quad, Hredot, kvm, mk_1, alibaba, jenGs, 3 invisible), 514 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
DJ_Algo, tang, stuvwx210277, refltr, hillab
18002 Registered Users
Topic Options
Rate This Topic
#466476 - 06/16/17 12:37 Different keyboard layouts
preacherX Offline
Senior Member

Registered: 09/09/05
Posts: 341
Loc: Germany
In the manual I can find the key mapping for german and english keyboard layouts. Is there also a function to detect which keyboard layout the player is using? In the german layout for example the open bracket is over the eight but in the english layout it is over the nine. How can I adress the open bracket for both versions correctly?

Top
#466477 - 06/16/17 12:57 Re: Different keyboard layouts [Re: preacherX]
Ch40zzC0d3r Offline
Serious User

Registered: 10/10/11
Posts: 1082
Loc: Germany
Theres something called virtual keycodes to abstract this problem and pass it over to the OS instead. You dont have to tinker arround with the layouts when coded right.
Anyways, there are windows APIs to do what you want: GetKeyboardLayout


Edited by Ch40zzC0d3r (06/16/17 12:59)

Top
#466478 - 06/16/17 13:34 Re: Different keyboard layouts [Re: Ch40zzC0d3r]
preacherX Offline
Senior Member

Registered: 09/09/05
Posts: 341
Loc: Germany
How does GetKeyboardLayout work and how can I use it in lite-c?

Top
#466479 - 06/16/17 14:20 Re: Different keyboard layouts [Re: preacherX]
Ch40zzC0d3r Offline
Serious User

Registered: 10/10/11
Posts: 1082
Loc: Germany
https://msdn.microsoft.com/de-de/library/windows/desktop/ms646296(v=vs.85).aspx

You just call it with parameter 0 and check the set bits of the return value.

Top
#466498 - 06/18/17 13:25 Re: Different keyboard layouts [Re: Ch40zzC0d3r]
preacherX Offline
Senior Member

Registered: 09/09/05
Posts: 341
Loc: Germany
Thanks for the info!

Top


Moderator:  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de