When using an OnGamePadButtonDown script handler to switch gamepad camera control to cursor control, CameraOrSelectOrMoveStop never fires. Once the cursor is being controlled, it fires both press and release of the emulated left mouse button. Therefore, if you only press the button once, the CAMERAORSELECTORMOVE binding gets stuck in a pressed state.
The strangeness of this bug comes from the down handler seemingly consuming the release event, but not the press event.
Example addon with further details provided.
Affects all game versions.
When using an
OnGamePadButtonDown
script handler to switch gamepad camera control to cursor control,CameraOrSelectOrMoveStop
never fires. Once the cursor is being controlled, it fires both press and release of the emulated left mouse button. Therefore, if you only press the button once, theCAMERAORSELECTORMOVE
binding gets stuck in a pressed state.The strangeness of this bug comes from the down handler seemingly consuming the release event, but not the press event.
Example addon with further details provided. Affects all game versions.
GamePad_CAMERAORSELECTORMOVE.zip