Class InputControls
- java.lang.Object
-
- com.amazon.device.inputmapping.input.InputControls
-
public class InputControls extends java.lang.Object
Mouse and keyboard controls for a game/app event
-
-
Field Summary
Fields Modifier and Type Field Description static int
MOUSE_ACTION_UNSPECIFIED
static int
MOUSE_BACK_CLICK
static int
MOUSE_FORWARD_CLICK
static int
MOUSE_LEFT_CLICK
static int
MOUSE_LEFT_DRAG
static int
MOUSE_MOVEMENT
static int
MOUSE_RIGHT_CLICK
static int
MOUSE_RIGHT_DRAG
static int
MOUSE_SCROLL_DOWN
static int
MOUSE_SCROLL_UP
static int
MOUSE_TERTIARY_CLICK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputControls
create(java.util.List<java.lang.Integer> keyboardActions, java.util.List<java.lang.Integer> mouseActions)
Creates a newInputControls
java.util.List<MouseButton>
getButtons()
java.util.List<KeyboardKey>
getKeys()
java.lang.String
toString()
-
-
-
Field Detail
-
MOUSE_LEFT_CLICK
public static final int MOUSE_LEFT_CLICK
- See Also:
- Constant Field Values
-
MOUSE_RIGHT_CLICK
public static final int MOUSE_RIGHT_CLICK
- See Also:
- Constant Field Values
-
MOUSE_TERTIARY_CLICK
public static final int MOUSE_TERTIARY_CLICK
- See Also:
- Constant Field Values
-
MOUSE_FORWARD_CLICK
public static final int MOUSE_FORWARD_CLICK
- See Also:
- Constant Field Values
-
MOUSE_BACK_CLICK
public static final int MOUSE_BACK_CLICK
- See Also:
- Constant Field Values
-
MOUSE_SCROLL_UP
public static final int MOUSE_SCROLL_UP
- See Also:
- Constant Field Values
-
MOUSE_SCROLL_DOWN
public static final int MOUSE_SCROLL_DOWN
- See Also:
- Constant Field Values
-
MOUSE_MOVEMENT
public static final int MOUSE_MOVEMENT
- See Also:
- Constant Field Values
-
MOUSE_LEFT_DRAG
public static final int MOUSE_LEFT_DRAG
- See Also:
- Constant Field Values
-
MOUSE_RIGHT_DRAG
public static final int MOUSE_RIGHT_DRAG
- See Also:
- Constant Field Values
-
MOUSE_ACTION_UNSPECIFIED
public static final int MOUSE_ACTION_UNSPECIFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static InputControls create(@NonNull java.util.List<java.lang.Integer> keyboardActions, @NonNull java.util.List<java.lang.Integer> mouseActions)
Creates a newInputControls
- Parameters:
keyboardActions
- list of keyboard actions for the eventmouseActions
- list of mouse actions for the event
-
getKeys
public java.util.List<KeyboardKey> getKeys()
-
getButtons
public java.util.List<MouseButton> getButtons()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-