.\" Generated by the Allegro makedoc utility .TH simulate_keypress 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME simulate_keypress \- Stuffs a key into the keyboard buffer. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void simulate_keypress(int key); .SH 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(). Example: .nf simulate_keypress(KEY_SPACE << 8); if (readkey() == (KEY_SPACE << 8)) allegro_message("You simulated Alt+Space\\n"); .fi .SH SEE ALSO .BR install_keyboard (3alleg4), .BR simulate_ukeypress (3alleg4), .BR keypressed (3alleg4), .BR readkey (3alleg4)