Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }