2023-01-01 02:06:02 +01:00
|
|
|
/// @description
|
2023-06-20 19:43:19 +02:00
|
|
|
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;
|
|
|
|
|
2024-09-12 12:42:35 +02:00
|
|
|
if(keyboard_check(vk_backspace)) KEYBOARD_STRING = string_copy(KEYBOARD_STRING, 1, string_length(KEYBOARD_STRING) - 1);
|
|
|
|
else KEYBOARD_STRING += keyboard_lastchar;
|
2023-06-20 19:43:19 +02:00
|
|
|
|
2023-09-08 19:47:48 +02:00
|
|
|
if(KEYBOARD_PRESSED == -1) {
|
|
|
|
for( var i = 0, n = array_length(global.KEYS_VK); i < n; i++ ) {
|
|
|
|
if(keyboard_check(global.KEYS_VK[i]))
|
|
|
|
KEYBOARD_PRESSED = global.KEYS_VK[i];
|
|
|
|
}
|
|
|
|
}
|