Class GCSystemGestureState


  • public final class GCSystemGestureState
    extends java.lang.Object
    Elements on a GCDevice can be used for system gestures. The system gesture state represents how input is handled in the app for a controller element that is bound to a system gesture. [@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.
    See Also:
    GCControllerElement.boundToSystemGesture, GCControllerElement.preferredSystemGestureState
    • Field Summary

      Fields 
      Modifier and Type Field 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
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Enabled

        public static final long Enabled
        System gesture recognizers will run before input is sent to app, this is the default state
        See Also:
        Constant Field Values
      • AlwaysReceive

        public static final long AlwaysReceive
        Input is sent to app and processed by system gesture recognizers simultaneously
        See Also:
        Constant Field Values
      • Disabled

        public static final long Disabled
        System gesture recognizers will not run at all. Input is passed directly to app
        See Also:
        Constant Field Values