Jump to content

Recommended Posts

Posted

This may be a stupid question but is it possible to create a function like _Ispressed but using scancodes.

the reason I ask is because there are 4 programmable keys on a laptop and I want to make them do more than just what the default program allows. Only problem is all keys are returning a 'FF' virtual keycode so I can't distinguish which one has been pressed.

Posted

in ezzetabi's words from the following post

AFAIK the keycode is a code related to the 'meaning' of the key while the 'scancode' is related about the hardware position of the key.

E.G.

The key ~ in english keyboard returns (of course) a tilde, but in an italian keyboard will return a backslash! Because keyboards are differents. So the keycode will be different, but the scancode does not.

Posted

Scancode = ASCII Character Codes i presume?

Um... No i dont think so, I think its a hardware code for the key rather than a code for the character the key is mapped to.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...