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