コード例 #1
0
        private void pressKeysFor(PlatformActionType type)
        {
            var binding = host.PlatformKeyBindings.First(b => ((PlatformAction)b.Action).ActionType == type);

            foreach (var k in binding.KeyCombination.Keys)
            {
                InputManager.PressKey((Key)k);
            }

            foreach (var k in binding.KeyCombination.Keys)
            {
                InputManager.ReleaseKey((Key)k);
            }
        }
コード例 #2
0
 public PlatformAction(PlatformActionType actionType, PlatformActionMethod?actionMethod = null)
 {
     ActionType   = actionType;
     ActionMethod = actionMethod;
 }