IQuick143 / bevy_jam_5

1 stars 0 forks source link

Map commands to characters instead of physical keys #15

Open IWonderWhatThisAPIDoes opened 2 weeks ago

IWonderWhatThisAPIDoes commented 2 weeks ago

Most UI-based commands are bound to keys with the corresponding character (N = next level, R = reset, Z = undo). As it is now, they are bound to a physical key, rather than a character, meaning the keybindings are only correct on a US keyboard. These particular keybindings should instead use input triggers that respect keyboard locale.

IWonderWhatThisAPIDoes commented 17 hours ago

Using character input solves this. However, we do not have a just_pressed option there, so holding a key down causes it to spam like character input typically does. This is only really noticable on an undo command where the game can actually accept the commands immediately, but even new animation framework might not be able to handle it