Example #1
0
 private static void FillActionMaps(RewiredAction action, ControllerMap_Editor keyboardMap, ControllerMap_Editor joystickMap)
 {
     if (joystickMap != null && joystickMap.actionElementMaps.All(map => map.actionId != action.ActionId))
     {
         joystickMap.actionElementMaps.Add(action.DefaultJoystickMap);
     }
     if (keyboardMap != null && keyboardMap.actionElementMaps.All(map => map.actionId != action.ActionId))
     {
         keyboardMap.actionElementMaps.Add(action.DefaultKeyboardMap);
     }
 }
Example #2
0
 static RewiredAction()
 {
     autoFire = new RewiredAction
     {
         ActionId           = 388,
         Name               = "autoFireToggle",
         DisplayToken       = "SAMUS_AUTOFIRE_TOGGLE",
         DefaultKeyboardKey = KeyboardKeyCode.G,
         DefaultJoystickKey = 16
     };
 }
Example #3
0
        private static void AddActionMaps(RewiredAction action, UserProfile userProfile)
        {
            if (userProfile.joystickMap.AllMaps.All(map => map.actionId != action.ActionId))
            {
                userProfile.joystickMap.AMpxarTReIdQulZiNSMMkbJtMRz(action.DefaultJoystickMap);
                action.DefaultJoystickMap.cNRtEejHCWUdzrhmpthsuslcVcs(userProfile.joystickMap);
            }

            if (userProfile.keyboardMap.AllMaps.All(map => map.actionId != action.ActionId))
            {
                userProfile.keyboardMap.AMpxarTReIdQulZiNSMMkbJtMRz(action.DefaultKeyboardMap);
                action.DefaultKeyboardMap.cNRtEejHCWUdzrhmpthsuslcVcs(userProfile.keyboardMap);
            }
        }