online multiplayer chess game (note server currently down)
1
2
3
4
5
6
7
8
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)