void UpdatePlayerInput(InputDevice device) { input.IsValid = true; input.Movement = controllerMapping.Movement(device); input.Smash = controllerMapping.Smash(device); input.Attack = controllerMapping.Attack(device); input.Special = controllerMapping.Special(device); input.Shield = controllerMapping.Shield(device); input.Jump = controllerMapping.Jump(device); }
void UpdatePlayerInput(InputDevice device) { input.IsValid = true; input.Movement = controllerMapping.Movement(device); input.Attack = controllerMapping.Attack(device); input.Special = controllerMapping.Special(device); input.Shield = controllerMapping.Shield(device); input.Jump = controllerMapping.Jump(device); // TODO(james7132) TapDetector.Update(input.Movement); input.Smash = TapDetector.SmashValue; //controllerMapping.Smash(device); }