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 to ASCII

Author
Message
Ruku
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 21st Jun 2004 23:20 Edited at: 22nd Jun 2004 00:36
Is there a function to switch between (Scancode) to (ASCII or CHR$)?

If there is no answer to that, then how can I determine what key was pressed with the following code:



Please do not refer me to use things such as Inkey$, I know this function, but to be able to use the KEYSTATE function, I need to know conversions of SCANCODES to CHR$ before... (or similar conversions)

Help!!! Thanks in advance...!

-
Ruku the Computer P.I.M.P. .
Ruku
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 22nd Jun 2004 00:44
Ah crap, this just isn't logical, it's impossible to do that (I think)... ,

Explaination:

If you press the letter "q" of the keyboard and your keyboard is set in "qwerty" then it would output a "q", but if it's "azerty" it would ouput a "a", however, returning the same scancode... (Just guesses, but still, by logic...)

So instead, I'd want to know the value of the button being pressed and the scancode with the same keypress...

I think I need pointers on that because:



that code simply returns 1 of the two functions...

still needs heeeeelp

-
Ruku the Computer P.I.M.P. .
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 22nd Jun 2004 00:45
http://www.thegamecreators.com/?m=forum_view&t=11350&b=5

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
Ruku
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 22nd Jun 2004 00:53
damn... looks good, but DEADLINK...

http://www.realgametools.net/forums/attachments/sctoascii.zip

aint workin... could you attach the file again or something...?

-
Ruku the Computer P.I.M.P. .

Login to post a reply

Server time is: 2024-11-26 22:38:16
Your offset time is: 2024-11-26 22:38:16