예제 #1
0
    /* -----------------------------------------------------------------------------------
     * INITIAL SETUP
     */

    public void Start()
    {
        // OPTIONAL: set button state scanning to receive input state events for trigger and d-pads
        OuyaInput.SetContinuousScanning(continuousScan);

        // OPTIONAL: define the deadzone if you want to use advanced joystick and trigger access
        OuyaInput.SetDeadzone(deadzoneType, deadzone);
        OuyaInput.SetTriggerThreshold(triggerTreshold);

        // do one controller update here to get everything started as soon as possible
        OuyaInput.UpdateControllers();
    }