6 Module ALLEGRO5
gullradriel edited this page 2026-10-29 20:54:40 +01:00

ALLEGRO5: allegro 5 helpers (user input,...)

Functions

Name
int get_keyboard(ALLEGRO_USTR * str, ALLEGRO_EVENT event)
process keyboard event and append character to string

Functions Documentation

function get_keyboard

int get_keyboard(
    ALLEGRO_USTR * str,
    ALLEGRO_EVENT event
)

process keyboard event and append character to string

Parameters:

  • str A string to hold the inputs
  • event The event in which we'll try to read an input

Return: TRUE or FALSE

update a keyboard buffer from an event

process keyboard event and append character to string