JoystickDirectional class

Constructors

JoystickDirectional({Future<Sprite>? spriteBackgroundDirectional, Future<Sprite>? spriteKnobDirectional, bool isFixed = true, EdgeInsets margin = const EdgeInsets.all(100), Alignment alignment = Alignment.bottomLeft, double size = 80, Color color = Colors.blueGrey, bool enableDiagonalInput = true})

Properties

alignment Alignment
final
color Color
final
enableDiagonalInput bool
Use to enable diagonal input events
final
hashCode int
The hash code for this object.
no setterinherited
isFixed bool
final
margin EdgeInsets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
final

Methods

directionalDown(int pointer, Offset localPosition) → void
directionalMove(int pointer, Offset localPosition) → void
directionalUp(int pointer) → void
getViewportPosition(Offset position) Offset
initialize(PlayerControllerListener controller, Viewport viewPort) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLoad() Future<void>
render(Canvas canvas) → void
toString() String
A string representation of this object.
inherited
update(double dt) → void

Operators

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