Scan Code Conversion 
Author Message
 Scan Code Conversion

Hello, Please can anyone help with this simple problem. How do you convert a
scan code into an ASCII character. e.g. Escape is $01, where does #27 come
from?

Thanks, Phil



Wed, 18 Jun 1902 08:00:00 GMT  
 Scan Code Conversion

Quote:

>Hello, Please can anyone help with this simple problem. How do you convert a
>scan code into an ASCII character. e.g. Escape is $01, where does #27 come
>from?

That conversion is done by either the BIOS  or the KEYB program (if
loaded). As the conversion (not in case of ESC though) is country
dependent one should not try to do it oneself but rely on what the BIOS
functions report.  The conversion depends also on various factors, like
state of shift, control and AltGr keys and previous dead keys.

Also in non QWERTY keyboards (like in Germany) there is conversion also
on the scan code part when Alt-Letter is pressed.

Osmo



Wed, 18 Jun 1902 08:00:00 GMT  
 Scan Code Conversion
There is no function that does this. You have to make you're own function
for that. There is a function in the BIOS that does this, but it can only be
used for the keyboard handler.


Quote:
>Hello, Please can anyone help with this simple problem. How do you convert
a
>scan code into an ASCII character. e.g. Escape is $01, where does #27 come
>from?

>Thanks, Phil




Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Scan Code Conversion

2. Q: Keyboard Scan Codes as Hex.

3. How do I read extended scan codes?

4. help on keyboard scan codes

5. XT Scan Codes?

6. Scan codes

7. scan codes

8. Keyboard Scan Code Help needed!

9. Help on keyboard scan-code problem

10. code conversion

11. PC-to-MAC code conversions?

12. Help - Binary Code Conversion

 

 
Powered by phpBB® Forum Software