simulate_ukeypress(3alleg)

simulate_ukeypress3alleg

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

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.