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.

Newcomers DBPro Corner / Scancode for F10

Author
Message
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 17th Jun 2003 16:13
This is an odd one.

I have been getting all the scancodes for all the keys of my keyboard using the following very short code.

(see Code snippet)

The object of this is to create a subroutine for my game that recognises input from the keyboard in the following manner:

if keystate(69) = 1 then kbd_F1_pressed = 1

What I've discovered is that every key correctly returns a scancode number EXCEPT F10, which seems to return nothing at all - not even a 0.

Is this a bug in DB Pro? What is going on? Help!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jun 2003 18:02
It looks like a bug with the WAIT KEY command - if you take out that command it works.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Jun 2003 20:23
ya f10 is 68 it means a camera snap in my editor



Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 18th Jun 2003 19:55
You're right. You take out the wait key and F10 correctly returns 68 as its scancode. So its a bug in the wait key command.

I shall report this to the DB Pro boys.

sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 18th Jun 2003 20:24
check the source, it is a function i made to return the name of the key you are pressing, it has every key on a QWERTY keyboard in there, even the extra "Fn/Menu" key that isn't even on most keyboards

haXor
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 18th Jun 2003 23:40
http://hometown.aol.com/alp29b/ScanCodes.txt

go there to save some time. it has all the key codes up there and they are all right

Sup Kids

Login to post a reply

Server time is: 2024-09-20 11:53:55
Your offset time is: 2024-09-20 11:53:55