public final class GCSystemGestureState
extends java.lang.Object
[@example] The Options button on an extended gamepad can be bound to take a screenshot with a long press. This occurs outside of the control of the app. If a user presses the Options button, the system gesture recognizer will run by default. If a long press is detected, input will not be forwarded to your app (your application won't see the Options button was pressed at all). If a long press is not detected, input will be forwared to your app, with a delay.
If you do not want any delay in receiving input for this element, you have two options - Set the preferred state of the element to GCSystemGestureStateAlwaysReceive. The system gesture recognize will run concurrently with input being sent to your app. This removes input delay, but can lead to system gestures being triggered simulatenously with in-app actions. - Set the preferred state of the element to GCSystemGestureStateDisabled. This will disable the system gesture recognizer - your app will receive full control of the input for this element.
GCControllerElement.boundToSystemGesture,
GCControllerElement.preferredSystemGestureState| Modifier and Type | Field and Description |
|---|---|
static long |
AlwaysReceive
Input is sent to app and processed by system gesture recognizers simultaneously
|
static long |
Disabled
System gesture recognizers will not run at all.
|
static long |
Enabled
System gesture recognizers will run before input is sent to app, this is the default state
|
public static final long Enabled
public static final long AlwaysReceive
public static final long Disabled