예제 #1
0
        public void SendKeybindDown(FFXIVKeybindDat.Keybind keybind)
        {
            if (keybind == null)
            {
                return;
            }
            Keys key = keybind.GetKey();

            if (key == Keys.None)
            {
                return;
            }

            if (keyTimers.OnKey(keybind))
            {
                // This is a Synced key so as to somewhat have control
                // over the delay
                SendSyncKey(key, true, false, true);
            }
            if (!keyTimers.HasTimer(keybind))
            {
                SendAsyncKey(key, true, true, false);
            }

            if (!lastPerformanceKeys.Contains(keybind))
            {
                lastPerformanceKeys.Add(keybind);
            }
        }
예제 #2
0
        public void SendKeybindUp(FFXIVKeybindDat.Keybind keybind)
        {
            if (keybind == null)
            {
                return;
            }
            Keys key = keybind.GetKey();

            if (key == Keys.None)
            {
                return;
            }
            SendAsyncKey(key, true, false, true);

            if (lastPerformanceKeys.Contains(keybind))
            {
                lastPerformanceKeys.Remove(keybind);
            }
        }
예제 #3
0
 public void SendSyncKeybind(FFXIVKeybindDat.Keybind keybind)
 {
     SendSyncKey(keybind.GetKey(), true, true, true);
 }