1simulate_ukeypress(3) Allegro manual simulate_ukeypress(3)
2
3
4
6 simulate_ukeypress - Stuffs an unicode key into the keyboard buffer.
7 Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void simulate_ukeypress(int key, int scancode);
14
16 Stuffs a key into the keyboard buffer, just as if the user had pressed
17 it. The parameter is in the same format returned by ureadkey(). Exam‐
18 ple:
19
20 /* We ignore the scancode simulation. */
21 simulate_ukeypress(0x00DF, 0);
22 if (ureadkey(&scancode) == 0x00DF)
23 allegro_message("You simulated sharp s\n");
24
25
27 install_keyboard(3), simulate_keypress(3), keypressed(3), ureadkey(3)
28
29
30
31Allegro version 4.4.3 simulate_ukeypress(3)