Beispiel #1
0
 protected virtual void Initialize()
 {
     trackingOffsets  = GetDefaultTrackingOffsets();
     loadedButtonDefs = TBInput.LoadButtonDefs <T>(GetDefaultDefs(), fileName);
     lookupTable      = TBInput.NewLookupTableFromDefs <T>(loadedButtonDefs);
     loaded           = true;
 }
Beispiel #2
0
        public virtual void Initialize()
        {
            emptyLookupTable  = new TBInput.ButtonLookupTable <T>();
            _activeController = GetActiveController();

            // Load supported input types.
            if (TBSettings.GetControlSettings().supportsHandControllers)
            {
                LoadHandControllers();
            }
            if (TBSettings.GetControlSettings().supports3DOFControllers)
            {
                Load3DOFControllers();
            }
            if (TBSettings.GetControlSettings().supportsClickRemote)
            {
                LoadClickRemotes();
            }
            if (TBSettings.GetControlSettings().supportsGamepad)
            {
                LoadGamepads();
            }

            TBCore.Events.OnSystemMenu += RefreshInput;
        }