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

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