netbsd man page for simulate_keypress

Query: simulate_keypress

OS: netbsd

Section: 3alleg4

Links: netbsd man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

simulate_keypress(3alleg4)					  Allegro manual					simulate_keypress(3alleg4)

NAME
simulate_keypress - Stuffs a key into the keyboard buffer. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void simulate_keypress(int key);
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 readkey(). Exam- ple: simulate_keypress(KEY_SPACE << 8); if (readkey() == (KEY_SPACE << 8)) allegro_message("You simulated Alt+Space ");
SEE ALSO
install_keyboard(3alleg4), simulate_ukeypress(3alleg4), keypressed(3alleg4), readkey(3alleg4) Allegro version 4.4.2 simulate_keypress(3alleg4)
Related Man Pages
readkey(3alleg4) - mojave
readkey(3alleg4) - suse
readkey(3alleg4) - opendarwin
readkey(3alleg4) - plan9
readkey(3alleg4) - redhat
Similar Topics in the Unix Linux Community
Simulate keypress inside a non-x application...
Simulate keypress in bash