/// <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); }
/// <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); }
// 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); }