Revert hold keybinds

This commit is contained in:
Vortrex
2021-03-22 01:00:41 -05:00
parent c6f0a1d74e
commit 0a5551503b

View File

@@ -16,6 +16,14 @@ let keyBindLongHoldDuration = 1500;
// -------------------------------------------------------------------------
function bindAccountKey(key, keyState) {
bindKey(toInteger(key), keyState, function(event) {
if(hasKeyBindDelayElapsed()) {
lastKeyBindUse = sdl.ticks;
triggerNetworkEvent("ag.useKeyBind", key);
}
});
/*
if(keyState == AG_KEYSTATE_UP) {
bindKey(toInteger(key), KEYSTATE_UP, function(event) {
if(hasKeyBindDelayElapsed()) {
@@ -44,6 +52,7 @@ function bindAccountKey(key, keyState) {
}
});
}
*/
}
addNetworkHandler("ag.addKeyBind", bindAccountKey);