Godot Version
v4.7.1.rc2.official [d6096250e] - CachyOS KDE Plasma (Wayland) x86_64 Linux
Question
Hi,
Can someone look at below code and explain what is wrong with it?
the “print” statement line shows that both variables are equal, but it is not setting keyboard button values?
Let us know, thank you…
SS
`if (event.pressed && event.keycode != KEY_SHIFT):
if (event.unicode > 32 && event.unicode < 137):
KeyTypedOnKeyboard = char(event.unicode)
print(KeyTypedOnKeyboard, " / ", KeyRotateOneMapped)
if ( KeyRotateOneMapped == KeyTypedOnKeyboard && ScreensCore.ScreenToDisplay != ScreensCore.NewHighScoreScreen ):
JoyButtonOne[InputKeyboard] = Pressed
InputThatStartedNewGame = InputKeyboard
if ( KeyRotateTwoMapped == KeyTypedOnKeyboard && ScreensCore.ScreenToDisplay != ScreensCore.NewHighScoreScreen ):
JoyButtonTwo[InputKeyboard] = Pressed`