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 / Reading in the "W"

Author
Message
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 9th Dec 2007 23:13
How do I read in the "W" button in DarkGDK input c++ version?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 9th Dec 2007 23:48
bool W_clicked = dbKeyState( 17 );

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 9th Dec 2007 23:53
How do you go from W to 17? What if I want other keyboard buttons? Is there some kind of reference?
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 10th Dec 2007 00:13


this may be helpfull
http://members.cox.net/cookeydoe89/db/scandcodes.bmp

Codger

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Yakumo
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location:
Posted: 10th Dec 2007 02:51
if you can work out how to read the key currently pressed and convert that into the scancode and display it then it's easy to deal with your keyboard

(it's how I did it in school many years ago with Turbo Pascal anyway, more convenient that losing charts, course back then the IDE was in DOS so tabbing to a reference doc or gif was a problem )
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 10th Dec 2007 16:12
(Turbo Pascal - boy I miss that - though FreePascal.org picked up that "syntax" and took it multiplatform (Linux, win32, MacX) and more )

But yeah - most of us have at one time - made a little exe in DBPro or something that displays the codes as you hit them - see the input functions - I have a source list I put in my code - I made it myself before I saw others had their own - so - steal this if you want - or someone else's :



Login to post a reply

Server time is: 2024-10-08 18:20:37
Your offset time is: 2024-10-08 18:20:37