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 key codes

Author
Message
haYnguy
16
Years of Service
User Offline
Joined: 5th Jun 2008
Location: on my island
Posted: 22nd Jun 2008 22:36
Where can I find a list of keycodes? I'm trying to use the keys 'a' and 'z' so I figured I'd use 65 and 90. And, it didn't work. But up and down keys work.

-- from my island, aloha wau 'ia 'oe --
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 22nd Jun 2008 22:42
Google.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 22nd Jun 2008 23:05
I made a header that has all of the scan codes. All you have to do is put AKey where you would put the scancode if you want to use the A key.

Just put the file in the include section of dark GDK.

Your signature has been erased by a mod - 120 high maximum please

Attachments

Login to view attachments
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 23rd Jun 2008 02:05
You can use that header from programming maniac, or you can use DirectInput. Just include dinput.h. Here are its scan codes:
http://www.gamespp.com/directx/directInputKeyboardScanCodes.html

(There's advertising in the middle of the page, skip it and there are more scan codes below)

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 23rd Jun 2008 05:17
Maniac snagged another team member?

If you can do any models for FW, reply to the FleetWars thread.

Click here!
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 23rd Jun 2008 06:42
Hi haYnguy,

This had me confused for a while also.

Important information:

Your keyboard produces Scan Codes for the AT keyboard.
The BIOS in your computer converts these Scan Codes into the equivalent XT keyboard scan codes.(Backwards compatibility)

DarkGDK actually reads the Scan Codes from the BIOS.

Therefor in the game you have to ALWAYS test for XT equavelent scan Codes.

Hope that helps you
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 24th Jun 2008 00:18
Quote: "Maniac snagged another team member?
"


Hahaha!!. He was always on the team, and I am not the captain of the team, it is me, cajun57, and dbGamerX, we work equally, as a team.

Your signature has been erased by a mod - 120 high maximum please
Jonas
19
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 24th Jun 2008 13:22
I don't know why, but I had the same problem. But when I used the scancodes with keystate() iit worked just fine.

P4 3.4ghz/2gb RAM (+PF=24gb)/GeForce 6200 A-LE 256meg AGP8x (Altered for 16pipelines, 768mb forced TurboCache-ish)/WinXP Pro/74gb WDRaptor(SATA,OS)/3x 200gb WDCaviar(IDE)/250gb WDCaviar SE16(SATA)

Login to post a reply

Server time is: 2024-10-07 19:19:41
Your offset time is: 2024-10-07 19:19:41