Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1073839 Posts in 44017 Topics- by 36022 Members - Latest Member: Homicide_Monkey

December 20, 2014, 08:44:07 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)recommended c++ libraries for arbitrary controller support?
Pages: 1 [2]
Print
Author Topic: recommended c++ libraries for arbitrary controller support?  (Read 829 times)
MadWatch
Level 1
*



View Profile
« Reply #20 on: February 28, 2013, 01:05:51 PM »

Wait, there is also a way to convert any key pressed to it's textual (UTF8 if I remember correctly) value (as a string).
From my experience this has always worked perfectly. It always gives keymap dependent values on both Windows and Linux. However there are few pitfalls there too.

First you're never sure what string you will get if you press a non latin or accentuated character key.

Second, if you press a modifier key you won't get the string you expect (ie pressing the Z key gives you "z" string, but pressing Ctrl-Z gives you another string that isn't necessarily the same depending on your OS and keymap).
Logged
Klaim
Level 10
*****



View Profile WWW
« Reply #21 on: February 28, 2013, 01:16:04 PM »

Ok so it's not very useful for combinations of keys...
Logged

http://www.klaimsden.net | Game : NetRush | Digital Story-Telling Technologies : Art Of Sequence
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic