C# Class MonoGdx.Input.GestureDetector

Inheritance: InputAdapter
Exibir arquivo Open project: jaquadro/MonoGdx

Public Methods

Method Description
GestureDetector ( GestureListener listener ) : System
GestureDetector ( float halfTapSquareSize, float tapCountInterval, float longPressDuration, float maxFlingDelay, GestureListener listener ) : System
InvalidateTapSquare ( ) : void
IsPressedFor ( float duration ) : bool
Reset ( ) : void
TouchDown ( float x, float y, int pointer, int button ) : bool
TouchDown ( int screenX, int screenY, int pointer, int button ) : bool
TouchDragged ( float x, float y, int pointer ) : bool
TouchDragged ( int screenX, int screenY, int pointer ) : bool
TouchUp ( float x, float y, int pointer, int button ) : bool
TouchUp ( int screenX, int screenY, int pointer, int button ) : bool

Private Methods

Method Description
IsWithinTapSquare ( float x, float y, float centerX, float centerY ) : bool

Method Details

GestureDetector() public method

public GestureDetector ( GestureListener listener ) : System
listener GestureListener
return System

GestureDetector() public method

public GestureDetector ( float halfTapSquareSize, float tapCountInterval, float longPressDuration, float maxFlingDelay, GestureListener listener ) : System
halfTapSquareSize float
tapCountInterval float
longPressDuration float
maxFlingDelay float
listener GestureListener
return System

InvalidateTapSquare() public method

public InvalidateTapSquare ( ) : void
return void

IsPressedFor() public method

public IsPressedFor ( float duration ) : bool
duration float
return bool

Reset() public method

public Reset ( ) : void
return void

TouchDown() public method

public TouchDown ( float x, float y, int pointer, int button ) : bool
x float
y float
pointer int
button int
return bool

TouchDown() public method

public TouchDown ( int screenX, int screenY, int pointer, int button ) : bool
screenX int
screenY int
pointer int
button int
return bool

TouchDragged() public method

public TouchDragged ( float x, float y, int pointer ) : bool
x float
y float
pointer int
return bool

TouchDragged() public method

public TouchDragged ( int screenX, int screenY, int pointer ) : bool
screenX int
screenY int
pointer int
return bool

TouchUp() public method

public TouchUp ( float x, float y, int pointer, int button ) : bool
x float
y float
pointer int
button int
return bool

TouchUp() public method

public TouchUp ( int screenX, int screenY, int pointer, int button ) : bool
screenX int
screenY int
pointer int
button int
return bool