online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/virtual_keyboard/CapsLock.gd')
| -rw-r--r-- | ui/virtual_keyboard/CapsLock.gd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/virtual_keyboard/CapsLock.gd b/ui/virtual_keyboard/CapsLock.gd new file mode 100644 index 0000000..16ae665 --- /dev/null +++ b/ui/virtual_keyboard/CapsLock.gd @@ -0,0 +1,9 @@ +extends KeyUtils +class_name CapsLock + + +func _toggled(button_pressed: bool) -> void: + if button_pressed: + simulate_key_input_event(KEY_CAPSLOCK) + else: + simulate_key_input_event(KEY_CAPSLOCK, 0, false) |