simulate_ukeypress(3alleg4)

simulate_ukeypress3alleg4

Stuffs an unicode key into the keyboard buffer. allegro game programming library.

Usage

#include <allegro.h>

void simulate_ukeypress(int key, int scancode);

Overview

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\n");

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.