Space and Ctrl cause Enter to appear pressed, Alt causes ESC to appear pressed #1106
Labels
bug
Yeah... that's broken
controls
Keyboard, mouse and joystick/gamepad input/controls
rel: fufluns
Present in fufluns 2020-01-12
rel: New in ...
Introduced in the tagged "rel:" release/nightlies
Milestone
Pressing Space or Ctrl results in
key is pressed(key:enter)
returning true if the "Map joystick controls to keyboard keys for scripts" general pref bit is on -- and it is by default in all games since a year ago (fufluns) -- and ditto for Alt and ESC.This is caused by this block in
script_keyval
(added r10966 (daaad76)):Unfortunately this is a bit tricky to fix without breaking this prefbit because of the way
carray
is now computed. I think I need to refactor that code in allmodex to give each input device its own carray array, so that we can check just the joystick carray and map that to keyboard keys.The text was updated successfully, but these errors were encountered: