scancode_to_ascii man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

scancode_to_ascii(3)		Allegro manual		  scancode_to_ascii(3)

NAME
       scancode_to_ascii  - Converts a scancode to an ASCII character. Allegro
       game programming library.

SYNOPSIS
       #include <allegro.h>

       int scancode_to_ascii(int scancode);

DESCRIPTION
       Converts the given scancode to an ASCII character for  that  key	 (man‐
       gling  Unicode  values), returning the unshifted uncapslocked result of
       pressing the key, or zero if the key isn't a  character-generating  key
       or  the	lookup	can't be done. The lookup cannot be done for keys like
       the F1-F12 keys or the cursor keys, and some drivers will  only	return
       approximate values. Generally, if you want to display the name of a key
       to the user, you should use the scancode_to_name function.

       Example:

	  int ascii;
	  ...
	  ascii = scancode_to_ascii(scancode);
	  allegro_message("You pressed '%c'\n", ascii);

SEE ALSO
       scancode_to_name(3)

Allegro				 version 4.4.2		  scancode_to_ascii(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net