Exemple #1
0
 public void OnKeyInput( KeyInput input )
 {
     Sync.CheckSyncUnchanged( world, () =>
     {
         Widget.HandleKeyPress( input );
     } );
 }
Exemple #2
0
 public void OnKeyInput(KeyInput input)
 {
 }
 public void OnKeyInput(KeyInput input)
 {
     Sync.CheckSyncUnchanged(world, () => Ui.HandleKeyPress(input));
 }
 public void OnKeyInput(KeyInput input)
 {
 }
Exemple #5
0
 public void OnKeyInput(KeyInput input)
 {
     Sync.RunUnsynced(Game.Settings.Debug.SyncCheckUnsyncedCode, world, () => Ui.HandleKeyPress(input));
 }
Exemple #6
0
        public bool IsActivatedBy(KeyInput e)
        {
            var currentValue = getValue();

            return(currentValue.Key == e.Key && currentValue.Modifiers == e.Modifiers);
        }
Exemple #7
0
 public static Hotkey FromKeyInput(KeyInput ki)
 {
     return(new Hotkey(ki.Key, ki.Modifiers));
 }