Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

simulate_ukeypress(3alleg4) [plan9 man page]

simulate_ukeypress(3alleg4)					  Allegro manual				       simulate_ukeypress(3alleg4)

NAME
simulate_ukeypress - Stuffs an unicode key into the keyboard buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> void simulate_ukeypress(int key, int scancode); DESCRIPTION
Stuffs a key into the keyboard buffer, just as if the user had pressed it. The parameter is in the same format returned by ureadkey(). Example: /* We ignore the scancode simulation. */ simulate_ukeypress(0x00DF, 0); if (ureadkey(&scancode) == 0x00DF) allegro_message("You simulated sharp s "); SEE ALSO
install_keyboard(3alleg4), simulate_keypress(3alleg4), keypressed(3alleg4), ureadkey(3alleg4) Allegro version 4.4.2 simulate_ukeypress(3alleg4)

Check Out this Related Man Page

ureadkey(3alleg4)                                                 Allegro manual                                                 ureadkey(3alleg4)

NAME
ureadkey - Returns the next unicode character from the keyboard buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> int ureadkey(int *scancode); DESCRIPTION
Returns the next character from the keyboard buffer, in Unicode format. If the buffer is empty, it waits until a key is pressed. You can see if there are queued keypresses with keypressed(). The return value contains the Unicode value of the key, and if not NULL, the pointer argument will be set to the scancode. Unlike readkey(), this function is able to return character values greater than 255. Example: int val, scancode; ... val = ureadkey(&scancode); if (val == 0x00F1) allegro_message("You pressed n with tilde "); if (val == 0x00DF) allegro_message("You pressed sharp s "); You should be able to find Unicode character maps at http://www.unicode.org/. Remember that on DOS you must specify a custom keyboard map (like those found in `keyboard.dat') usually with the help of a configuration file specifying the language mapping (keyboard variable in system section of `allegro.cfg'), or you will get the default US keyboard mapping. SEE ALSO
install_keyboard(3alleg4), readkey(3alleg4), keypressed(3alleg4), clear_keybuf(3alleg4), simulate_ukeypress(3alleg4), exkeys(3alleg4) Allegro version 4.4.2 ureadkey(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. UNIX for Advanced & Expert Users

What's your most useful shell?

What's your most useful shell? /bin/sh /bin/csh /bin/ksh /bin/tcsh /bin/bash (249 Replies)
Discussion started by: zylwyz
249 Replies