You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyDown with a minimum time between any two keydowns of a button. Not intended to limit players, rather its to help players not accidentally execute actions bound to the mouse wheel more than once
463
+
============
464
+
*/
465
+
ConVar cl_neo_mouse_wheel_action_cool_down("cl_neo_mouse_wheel_action_cool_down", "0", FCVAR_ARCHIVE, "If the mouse wheel is bound to an action with a mouse wheel delay, controls how long that delay is to prevent accidental activations of the action", true, 0, true, 1.f);
466
+
staticfloat nextMouseWheelUp = 0.f;
467
+
staticfloat nextMouseWheelDown = 0.f;
468
+
voidKeyDownWithMouseWheelDelay(kbutton_t* b, constchar* c)
469
+
{
470
+
if (cl_neo_mouse_wheel_action_cool_down.GetFloat() > 0.f && c && c[0])
0 commit comments