Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Keyboard Scancodes conversion to ASCII

Author
Message
Unkelben
20
Years of Service
User Offline
Joined: 2nd Feb 2004
Location: Montréal, Canada
Posted: 21st Jan 2005 02:06
Is there a way to convert the scancodes given by the dbSanCode() function to ascii in order to do something interesting with them?

Is there a way to have access to windows messages in the Dark SDK (for exemple, to get the WMChar information)?

If not, what are we supposed to do with the keyboard in DarkSDK ?

Jonathan

Jonathan
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Jan 2005 02:45
Various people have DLL's that convert a scancode to ASCII - RobK may have one, for example.

Unkelben
20
Years of Service
User Offline
Joined: 2nd Feb 2004
Location: Montréal, Canada
Posted: 21st Jan 2005 02:58
But will these DLLs work with the SDK?

In any case, I found in the darkSDKCore.h a char* dbInKey() which returns an ascii char with the currently pressed key!

That should be documented!

Jonathan
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Jan 2005 03:53
ummm... it is...

Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 22nd Jan 2005 09:01
inkey$ is in all BASIC languages afaik, certainly the older ones that I used. dbInkey is the ascii version of the dbScanCode.

The 3d chat is coming...
Rights For Traffic Cones!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Jan 2005 23:31
Not exactly - inkey$ and scancode will return totally different codes for the same key. Inkey$ is for the ASCII value, scancode is for the scancode value.

Login to post a reply

Server time is: 2024-04-18 23:30:34
Your offset time is: 2024-04-18 23:30:34