add key characters to props
This commit is contained in:
parent
ac773de0a1
commit
ddde618d6f
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user