Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scancode_to_name(3alleg4) [opendarwin man page]

scancode_to_name(3alleg4)					  Allegro manual					 scancode_to_name(3alleg4)

scancode_to_name - Converts a scancode to a key name. Allegro game programming library. SYNOPSIS
#include <allegro.h> const char *scancode_to_name(int scancode); DESCRIPTION
This function returns a string pointer containing the name of they key with the given scancode. This is useful if you e.g. let the user choose a key for some action, and want to display something more meaningful than just the scancode. Example: char const *keyname = scancode_to_name(scancode); allegro_message("You pressed the %s key.", keyname); SEE ALSO
scancode_to_ascii(3alleg4), exkeys(3alleg4) Allegro version 4.4.2 scancode_to_name(3alleg4)

Check Out this Related Man Page

exkeys(3alleg4) 						  Allegro manual						   exkeys(3alleg4)

exkeys - How to get input from the keyboard in different ways. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exkeys DESCRIPTION
This program demonstrates how to access the keyboard. The first part shows the basic use of readkey(). The second part shows how to extract the ASCII value. Next come the scan codes. The fourth test detects modifier keys like alt or shift. The fifth test requires some focus to be passed. The final step shows how to use the global key array to read simultaneous key presses. The last method to detect key presses are keyboard callbacks. This is demonstrated by installing a keyboard callback, which marks all pressed keys by drawing to a grid. SEE ALSO
END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_screen(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_keybuf(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), font(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), key(3alleg4), key_shifts(3alleg4), key- board_lowlevel_callback(3alleg4), keypressed(3alleg4), makecol(3alleg4), readkey(3alleg4), rectfill(3alleg4), release_screen(3alleg4), rest(3alleg4), scancode_to_name(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4), ureadkey(3alleg4), usprintf(3alleg4), ustrzncpy(3alleg4) Allegro version 4.4.2 exkeys(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies