View source
class FlxActionInputAnalogMouseMotion
package flixel.input.actions
extends FlxActionInputAnalog › FlxActionInput
import flixel.input.actions.FlxActionInputAnalog
extended by FlxActionInputAnalogClickAndDragMouseMotion
Available since
4.6.0
.Constructor
new(Trigger:FlxAnalogState, Axis:FlxAnalogAxis = EITHER, PixelsPerUnit:Int = 10, DeadZone:Float = 0.1, InvertY:Bool = false, InvertX:Bool = false)
Mouse input -- X/Y is the RELATIVE motion of the mouse since the last frame
Parameters:
Trigger | What state triggers this action (MOVED, JUST_MOVED, STOPPED, JUST_STOPPED) |
---|---|
Axis | which axes to monitor for triggering: X, Y, EITHER, or BOTH |
PixelsPerUnit | How many pixels of movement = 1.0 in analog motion (lower: more sensitive, higher: less sensitive) |
DeadZone | Minimum analog value before motion will be reported |
InvertY | Invert the Y axis |
InvertX | Invert the X axis |