GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A key utility functions. More...
#include <input/gp_event_keys.h>
Go to the source code of this file.
Functions | |
int | gp_ev_key_val (const char *name) |
Parses a key name and returns key value. | |
const char * | gp_ev_key_name (unsigned int val) |
Returns a key name. | |
A key utility functions.
Definition in file gp_keys.h.
const char * gp_ev_key_name | ( | unsigned int | val | ) |
Returns a key name.
val | A key value. |
int gp_ev_key_val | ( | const char * | name | ) |
Parses a key name and returns key value.
The key names are not case sensitive, e.g. "KeyWWW" and "keyWWW" both return the same key code.
name | A key name such as "KeyEnter" or "KeyA" |