Topic: Multiple Button Input Not Registering
Hello,
I've noticed what appears to be a bug with the way multiple button presses are handled and I'm having trouble trying to figure out how to solve the issue. This is the scenario I'm seeing:
(functions correctly)
press and hold button 1
press button 2
TestMoveExecution gets called for the combined input of button 1, button 2. This is the expected functionality.
(functions incorrectly)
press and hold button 2
press button 1
TestMoveExecution only gets called for button 1. This is not the expected functionality.
I have tested this with many different button presses and the only common thread seems to be the fact that it only works if you hold a button that is earlier in the enum list and then press a button that is after the first held button (button 1 -> button 5 works, but button 4 -> button 3 does not work, etc).
As near as I can tell the fault lies with the call to inputController.GetButtonDown(inputRef2) inside ControlsScript. This is returning false in the incorrect instances I described above. Just to test, I changed GetButtonDown to GetButton. This solved the issue of not being able to press a high button then low button, but it created the undesirable behavior of being able to repeat a move by holding the buttons (which I'm assuming is why it was using GetButtonDown in the first place).
I'm really not sure why GetButtonDown() is failing, any and all help would be greatly appreciated. Thanks!