Interface GCDevice

    • Method Detail

      • handlerQueue

        NSObject handlerQueue()
        The dispatch queue that element value change handlers are submitted on. The default queue is main, and setting this to any other queue will make value change handlers dispatch async on the given queue. This is useful if the main game loop of the application is not on main, or if input logic is handled on another thread from the main game loop.
        See Also:
        GCControllerAxisInput.valueChangedHandler, GCControllerButtonInput.valueChangedHandler, GCControllerButtonInput.pressedChangedHandler, GCControllerDirectionPad.valueChangedHandler, GCMotion.valueChangedHandler
      • physicalInputProfile

        GCPhysicalInputProfile physicalInputProfile()
        Gets the physical input profile for the device. [@note] This is equivalent to the controller's gamepad, microGamepad, or extendedGamepad instance.
        See Also:
        GCController.gamepad, GCController.microGamepad, GCController.extendedGamepad
      • productCategory

        java.lang.String productCategory()
        The product category the controller belongs to. This is useful for setting appropriate UI elements based on what type of device is connected.
      • setHandlerQueue

        void setHandlerQueue​(NSObject value)
        The dispatch queue that element value change handlers are submitted on. The default queue is main, and setting this to any other queue will make value change handlers dispatch async on the given queue. This is useful if the main game loop of the application is not on main, or if input logic is handled on another thread from the main game loop.
        See Also:
        GCControllerAxisInput.valueChangedHandler, GCControllerButtonInput.valueChangedHandler, GCControllerButtonInput.pressedChangedHandler, GCControllerDirectionPad.valueChangedHandler, GCMotion.valueChangedHandler
      • vendorName

        java.lang.String vendorName()
        A vendor supplied name. May be nil, and is not guaranteed to be unique. This should not be used as a key in a dictionary, but simply as a way to present some basic information about the device in testing or to the user.