Sign in to follow this  
Followers 0
Cue

_Ispressed but using scancodes

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



Excuse me if this is a bad question but... whats a "scancode"?


tolle indicium

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Scancode = ASCII Character Codes i presume?


tolle indicium

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0