示例#1
0
        //public void Start(ScanSettings settings, ScanHandler scanHandler)
        public void Start(ScanSettings settings)
        {
            if (settings.Joystick.HasValue && (settings.Joystick < 0 || settings.Joystick >= InputBinding.MAX_JOYSTICK_AXES))
            {
                Debug.LogError("Joystick is out of range. Cannot start scan.");
                return;
            }

            if (IsScanning)
            {
                Stop();
            }

            m_scanTimeout   = settings.Timeout;
            m_scanFlags     = settings.ScanFlags;
            m_scanStartTime = GameTime;
            m_cancelScanKey = settings.CancelScanKey;
            m_scanJoystick  = settings.Joystick;
            m_scanUserData  = settings.UserData;
            //	m_scanHandler = scanHandler;
            IsScanning = true;
        }
示例#2
0
 public static void StartInputScan(ScanSettings settings, ScanHandler scanHandler)
 {
     m_instance.m_scanService.Start(settings, scanHandler);
 }