add key characters to props

This commit is contained in:
Teatov 2025-07-28 20:49:58 +10:00
parent ac773de0a1
commit ddde618d6f
2 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,11 @@ func _set_labels() -> void:
else ""
)
props.main_char = main_char
props.shift_char = shift_char
props.alt_char = alt_char
props.alt_shift_char = alt_shift_char
if (
props.physical_keycode == KEY_SPACE
or (!main_char and !shift_char and !alt_char and !alt_shift_char)

View File

@ -3,6 +3,11 @@ class_name KeyProps
var physical_keycode: Key
var location: KeyLocation
var main_char: String
var shift_char: String
var alt_char: String
var alt_shift_char: String
var width_ratio_init: float
var width_ratio: float