Skip navigation links
B G I J O R S 

B

BUTTON_DIRECTION_BOTH - Static variable in class io.github.controlwear.virtual.joystick.android.JoystickView
Default value.

G

getButtonDirection() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the current direction allowed for the button to move
getButtonSizeRatio() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the size of the button (as a ratio of the total width/height) Default is 0.25 (25%).
getmBackgroundSizeRatio() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the size of the background (as a ratio of the total width/height) Default is 0.75 (75%).
getNormalizedX() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the relative X coordinate of button center related to top-left virtual corner of the border
getNormalizedY() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the relative Y coordinate of the button center related to top-left virtual corner of the border

I

io.github.controlwear.virtual.joystick.android - package io.github.controlwear.virtual.joystick.android
 
isAutoReCenterButton() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the current behavior of the auto re-center button
isButtonStickToBorder() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the current behavior of the button stick to border
isEnabled() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Return the state of the joystick.

J

JoystickView - Class in io.github.controlwear.virtual.joystick.android
 
JoystickView(Context) - Constructor for class io.github.controlwear.virtual.joystick.android.JoystickView
Simple constructor to use when creating a JoystickView from code.
JoystickView(Context, AttributeSet, int) - Constructor for class io.github.controlwear.virtual.joystick.android.JoystickView
 
JoystickView(Context, AttributeSet) - Constructor for class io.github.controlwear.virtual.joystick.android.JoystickView
Constructor that is called when inflating a JoystickView from XML.
JoystickView.OnMoveListener - Interface in io.github.controlwear.virtual.joystick.android
Interface definition for a callback to be invoked when a JoystickView's button is moved
JoystickView.OnMultipleLongPressListener - Interface in io.github.controlwear.virtual.joystick.android
Interface definition for a callback to be invoked when a JoystickView is touched and held by multiple pointers.

O

onDraw(Canvas) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Draw the background, the border and the button
onMeasure(int, int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
 
onMove(int, int) - Method in interface io.github.controlwear.virtual.joystick.android.JoystickView.OnMoveListener
Called when a JoystickView's button has been moved
onMultipleLongPress() - Method in interface io.github.controlwear.virtual.joystick.android.JoystickView.OnMultipleLongPressListener
Called when a JoystickView has been touch and held enough time by multiple pointers.
onSizeChanged(int, int, int, int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
This is called during layout when the size of this view has changed.
onTouchEvent(MotionEvent) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Handle touch screen motion event.

R

resetButtonPosition() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Reset the button position to the center.
run() - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
 

S

setAutoReCenterButton(boolean) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the current behavior of the auto re-center button
setBackgroundColor(int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the background color for this JoystickView.
setBackgroundSizeRatio(float) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the joystick button size (as a fraction of the real width/height) By default it is 75% (0.75).
setBorderColor(int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the border color for this JoystickView.
setBorderWidth(int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the border width for this JoystickView.
setButtonColor(int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the button color for this JoystickView.
setButtonDirection(int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the current authorized direction for the button to move
setButtonDrawable(Drawable) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set an image to the button with a drawable
setButtonSizeRatio(float) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the joystick button size (as a fraction of the real width/height) By default it is 25% (0.25).
setButtonStickToBorder(boolean) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the current behavior of the button stick to border
setEnabled(boolean) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Enable or disable the joystick
setFixedCenter(boolean) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Set the joystick center's behavior (fixed or auto-defined)
setOnMoveListener(JoystickView.OnMoveListener) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Register a callback to be invoked when this JoystickView's button is moved
setOnMoveListener(JoystickView.OnMoveListener, int) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Register a callback to be invoked when this JoystickView's button is moved
setOnMultiLongPressListener(JoystickView.OnMultipleLongPressListener) - Method in class io.github.controlwear.virtual.joystick.android.JoystickView
Register a callback to be invoked when this JoystickView is touch and held by multiple pointers
B G I J O R S 
Skip navigation links