Пример #1
0
 /// <summary>
 /// switches to default keyboard mapping
 /// </summary>
 void MapKB()
 {
     Debug.Log("switching to default keyboard mapping");
     KeyMapper.MapAll(Mappings.kbButtons, Mappings.kbAxes);
     Mappings.UpdaterSetup(GetComponent <AxisButtonUpdater>(), mapping.KB);
 }
Пример #2
0
 /// <summary>
 /// applies ps4 mapping
 /// </summary>
 void MapDS4()
 {
     Debug.Log("switching to DS4 mapping");
     KeyMapper.MapAll(Mappings.DS4Buttons, Mappings.DS4Axes);
     Mappings.UpdaterSetup(GetComponent <AxisButtonUpdater>(), mapping.DS4);
 }
Пример #3
0
 // public bool forceDebugMapping;
 // public mapping debugMapping;
 /// <summary>
 /// applies xbox one mapping
 /// </summary>
 void MapXBONE()
 {
     Debug.Log("switching to xbox one mapping");
     KeyMapper.MapAll(Mappings.XBoxOneButtons, Mappings.XBoxAxes);
     Mappings.UpdaterSetup(GetComponent <AxisButtonUpdater>(), mapping.XBONE);
 }