Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
153 stars 7 forks source link

CameraOrSelectOrMoveStop does not fire when switching gamepad from camera to cursor control #454

Open seblindfors opened 12 months ago

seblindfors commented 12 months ago

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.

GamePad_CAMERAORSELECTORMOVE.zip