flixel-addons icon indicating copy to clipboard operation
flixel-addons copied to clipboard

FlxMouseControl only supports left clicks, not middle and right.

Open spoike opened this issue 11 years ago • 1 comments

FlxMouseControl only looks at FlxG.mouse.pressed which indicates left mouse button clicks.

For right and middle button, there currently is the FlxG.mouse.pressedRight and the FlxG.mouse.pressedMiddle available. It'd be nice to have FlxMouseControl handle these buttons as well and let the callbacks have an event object parameter telling which button was pressed.

spoike avatar Jul 27 '14 16:07 spoike

I'm interested in helping implement this.

It seems like the trick would be to keep the behavior the same as it is now until devs explicitly change their code to handle the other two buttons.

NQNStudios avatar Aug 01 '22 19:08 NQNStudios