Pixel-Composer/objects/o_main/KeyPress_1.gml

14 lines
414 B
Plaintext
Raw Normal View History

2023-01-01 02:06:02 +01:00
/// @description
kb_hkey = keyboard_key == 0? keyboard_lastkey : keyboard_key;
2023-01-01 02:06:02 +01:00
kb_time = 0;
kb_hold = false;
KEYBOARD_PRESSED = kb_hkey;
if(keyboard_check(vk_backspace))
KEYBOARD_STRING = string_copy(KEYBOARD_STRING, 1, string_length(KEYBOARD_STRING) - 1);
else
KEYBOARD_STRING += keyboard_lastchar;
2023-07-17 19:58:33 +02:00
//if(WIDGET_CURRENT && is_instanceof(WIDGET_CURRENT, textInput))
// WIDGET_CURRENT.onKey(KEYBOARD_PRESSED);