mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 06:23:55 +01:00
14 lines
226 B
Plaintext
14 lines
226 B
Plaintext
enum MOD_KEY {
|
|
none = 0,
|
|
ctrl = 1,
|
|
shift = 2,
|
|
alt = 4
|
|
}
|
|
|
|
function key_press(_key, _mod) {
|
|
if(TEXTBOX_ACTIVE) return false;
|
|
|
|
if(keyboard_check_released(_key) && HOTKEY_MOD == _mod)
|
|
return true;
|
|
return false;
|
|
} |