Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 internal void Trigger(AnalogUserCommand command, UserCommandArgs commandArgs, GameTime gameTime)
 {
     analogUserCommandsArgs[command]?.Invoke(commandArgs, gameTime);
 }
Esempio n. 5
0
 internal void Trigger(CommonUserCommand command, UserCommandArgs commandArgs, GameTime gameTime, KeyModifiers modifier = KeyModifiers.None)
 {
     commonUserCommandsArgs[command]?.Invoke(commandArgs, gameTime, modifier);
 }
Esempio n. 6
0
 internal void Trigger(T command, KeyEventType keyEventType, UserCommandArgs commandArgs, GameTime gameTime)
 {
     configurableUserCommands[command, keyEventType]?.Invoke(commandArgs, gameTime);
 }