11 return (i >= (
int)
'A' && i <= (
int)
'Z') ? (char)(i + (
int)
'a' - (
int)
'A') : k;
22 return (i >= (
int)
'a' && i <= (
int)
'z') ? (char)(i + (
int)
'A' - (
int)
'a') : k;
Graphics API (GAPI) abstraction layer for Gama.
int32_t gapi_key_down(char t, char k)
Checks if a specific key is currently pressed.
char gm_upper_case(char k)
Converts a character to uppercase if it's a lowercase letter.
Definition key.h:20
void gm_decode_key_shortcut(char key, char *t, char *k)
Decodes a single character shortcut into a key type and key code.
Definition key.h:39
int gm_key_down(char t, char k)
Checks if a key is currently pressed.
Definition key.h:106
char gm_encode_key_shortcut(char t, char k)
Encodes a key type and code into a single character shortcut. This is the reverse of gm_decode_key_sh...
Definition key.h:75
char gm_lower_case(char k)
Converts a character to lowercase if it's an uppercase letter.
Definition key.h:9
int gm_key(char key)
Checks if a key is currently pressed using a single character shortcut.
Definition key.h:115