simulate_keypress
Stuffs a key into the keyboard buffer.
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:
simulate_keypress(KEY_SPACE << 8);
if (readkey() == (KEY_SPACE << 8))
allegro_message("You simulated Alt+Space\n");
Related Discussions
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword: