public class JoystickControl extends InteractiveControl<JoystickControl>
InteractiveControl represents a joystick control on the Interactive service.meta| Constructor and Description |
|---|
JoystickControl(String controlID)
Initializes a new
JoystickControl. |
JoystickControl(String controlID,
String sceneID,
InteractiveControlPosition... position)
Initializes a new
JoystickControl. |
| Modifier and Type | Method and Description |
|---|---|
Number |
getAngle()
Returns the location of the "halo" effect on screen.
|
Number |
getIntensity()
Returns the opacity of the "halo" effect.
|
Integer |
getSampleRate()
Returns the sample rate for this
JoystickControl. |
protected JoystickControl |
getThis()
Returns
this as an instance of the specified generic. |
JoystickControl |
setAngle(Number angle)
Sets the location of the "halo" effect on screen.
|
JoystickControl |
setIntensity(Number intensity)
Sets the opacity of the "halo" effect.
|
JoystickControl |
setSampleRate(Integer sampleRate)
Sets the sample rate for this
JoystickControl. |
boolean |
syncIfEqual(Collection<?> objects)
Iterates through a
Collection of Objects. |
addPosition, compareTo, create, delete, equals, getControlID, getKind, getPositionFor, getPositionFor, getPositions, getSceneID, hashCode, hasPositionFor, hasPositionFor, isDisabled, removeAllPositions, removePosition, removePosition, setDisabled, setPositions, setPositions, updateaddMetaProperty, getMeta, setMetapublic JoystickControl(String controlID)
JoystickControl.controlID - Unique identifier for the JoystickControlpublic JoystickControl(String controlID, String sceneID, InteractiveControlPosition... position)
JoystickControl.controlID - Unique identifier for the JoystickControlsceneID - Unique identifier for the InteractiveScene that contains this controlposition - An array of initial InteractiveControlPosition for this controlpublic Integer getSampleRate()
JoystickControl.JoystickControlpublic JoystickControl setSampleRate(Integer sampleRate)
JoystickControl.sampleRate - The sample rate for this JoystickControlthis for method chainingpublic Number getAngle()
public JoystickControl setAngle(Number angle)
angle - The location of the "halo" effect on screenthis for method chainingpublic Number getIntensity()
public JoystickControl setIntensity(Number intensity)
intensity - The opacity of the "halo" effectthis for method chainingprotected JoystickControl getThis()
this as an instance of the specified generic. Utilizes the
getThis
programming idiom.getThis in class InteractiveResource<JoystickControl>this as an object of type TInteractiveResource.getThis()public boolean syncIfEqual(Collection<?> objects)
Collection of Objects. If this is found to be in the
Collection then this has it's values updated.syncIfEqual in class InteractiveResource<JoystickControl>objects - A Collection of ObjectsCompletableFuture that when complete returns true if the
provided Collection contains thisInteractiveResource.syncIfEqual(Collection)Copyright © 2018. All rights reserved.