mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
14 lines
No EOL
226 B
Text
14 lines
No EOL
226 B
Text
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;
|
|
} |