Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #3
0
 public void SendSyncKeybind(FFXIVKeybindDat.Keybind keybind)
 {
     SendSyncKey(keybind.GetKey(), true, true, true);
 }