JoystickAction class

Constructors

JoystickAction({@required int actionId, Sprite sprite, Sprite spritePressed, Sprite spriteBackgroundDirection, bool enableDirection: false, double size: 50, double sizeFactorBackgroundDirection: 1.5, EdgeInsets margin: EdgeInsets.zero, Color color: Colors.blueGrey, JoystickActionAlign align: JoystickActionAlign.BOTTOM_RIGHT, double opacityBackground: 0.5, double opacityKnob: 0.8})

Properties

actionId int
final
align JoystickActionAlign
final
color Color
final
enableDirection bool
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isPressed bool
read / write
margin EdgeInsets
final
opacityBackground double
final
opacityKnob double
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size double
final
sizeFactorBackgroundDirection double
final
sprite Sprite
final
spriteBackgroundDirection Sprite
final
spritePressed Sprite
final

Methods

initialize(Size _screenSize, JoystickController joystickController) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onPanCancel() → void
onPanEnd(DragEndDetails p1) → void
onPanUpdate(DragUpdateDetails details) → void
onReceiveDrag(DragEvent event) → void
render(Canvas c) → void
tapDown() → void
tapUp() → void
toString() String
Returns a string representation of this object.
inherited
update(double dt) → void

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited