Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ALLEGRO5: allegro 5 helpers (user input,...)

Functions

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

Detailed Description

Function Documentation

◆ get_keyboard()

int get_keyboard ( ALLEGRO_USTR *  str,
ALLEGRO_EVENT  event 
)

process keyboard event and append character to string

process keyboard event and append character to string

Parameters
strA string to hold the inputs
eventThe event in which we'll try to read an input
Returns
TRUE or FALSE

Definition at line 36 of file n_allegro5.c.

References __n_assert.