Beispiel #1
0
 internal void Trigger(AnalogUserCommand command, UserCommandArgs commandArgs, GameTime gameTime)
 {
     for (int i = 0; i < (layeredControllers?.Count ?? 0); i++)
     {
         layeredControllers[i].Trigger(command, commandArgs, gameTime);
         if (commandArgs.Handled)
         {
             return;
         }
     }
     analogUserCommandsArgs[command]?.Invoke(commandArgs, gameTime);
 }
Beispiel #2
0
 internal void Trigger(CommonUserCommand command, UserCommandArgs commandArgs, GameTime gameTime, KeyModifiers modifier = KeyModifiers.None)
 {
     for (int i = 0; i < (layeredControllers?.Count ?? 0); i++)
     {
         layeredControllers[i].Trigger(command, commandArgs, gameTime, modifier);
         if (commandArgs.Handled)
         {
             return;
         }
     }
     commonUserCommandsArgs[command]?.Invoke(commandArgs, gameTime, modifier);
 }
Beispiel #3
0
 internal void Trigger(T command, KeyEventType keyEventType, UserCommandArgs commandArgs, GameTime gameTime)
 {
     for (int i = 0; i < (layeredControllers?.Count ?? 0); i++)
     {
         layeredControllers[i].Trigger(command, keyEventType, commandArgs, gameTime);
         if (commandArgs.Handled)
         {
             return;
         }
     }
     configurableUserCommands[command, keyEventType]?.Invoke(commandArgs, gameTime);
 }
Beispiel #4
0
 internal void Trigger(AnalogUserCommand command, UserCommandArgs commandArgs, GameTime gameTime)
 {
     analogUserCommandsArgs[command]?.Invoke(commandArgs, gameTime);
 }
Beispiel #5
0
 internal void Trigger(CommonUserCommand command, UserCommandArgs commandArgs, GameTime gameTime, KeyModifiers modifier = KeyModifiers.None)
 {
     commonUserCommandsArgs[command]?.Invoke(commandArgs, gameTime, modifier);
 }
Beispiel #6
0
 internal void Trigger(T command, KeyEventType keyEventType, UserCommandArgs commandArgs, GameTime gameTime)
 {
     configurableUserCommands[command, keyEventType]?.Invoke(commandArgs, gameTime);
 }