Skip to content

Commit

Permalink
Support physical keyboard inputs (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcphr authored Oct 14, 2023
1 parent 1f589ac commit b7bc377
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/input_prompts/resources/keyboard_textures.gd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ func get_texture(event: InputEvent) -> Texture2D:
return null
var key_event := event as InputEventKey
var scancode := key_event.keycode
if scancode == 0:
scancode = key_event.physical_keycode
return textures[OS.get_keycode_string(scancode)]


Expand Down

0 comments on commit b7bc377

Please sign in to comment.