- removed the mouse wheel up event hackery

With the weapon cycling commands being done as CCMDs this is no longer needed.
This commit is contained in:
Christoph Oelckers 2020-08-24 20:26:32 +02:00
parent c09a5150a9
commit b88a279a57

View file

@ -168,28 +168,6 @@ int32_t handleevents(void)
timerUpdateClock();
// The mouse wheel is not a real key so in order to be "pressed" it may only be cleared at the end of the tic (or the start of the next.)
if (inputState.GetKeyStatus(KEY_MWHEELUP))
{
event_t ev = { EV_KeyUp, 0, (int16_t)KEY_MWHEELUP };
D_PostEvent(&ev);
}
if (inputState.GetKeyStatus(KEY_MWHEELDOWN))
{
event_t ev = { EV_KeyUp, 0, (int16_t)KEY_MWHEELDOWN };
D_PostEvent(&ev);
}
if (inputState.GetKeyStatus(KEY_MWHEELLEFT))
{
event_t ev = { EV_KeyUp, 0, (int16_t)KEY_MWHEELLEFT };
D_PostEvent(&ev);
}
if (inputState.GetKeyStatus(KEY_MWHEELRIGHT))
{
event_t ev = { EV_KeyUp, 0, (int16_t)KEY_MWHEELRIGHT };
D_PostEvent(&ev);
}
I_StartFrame();
I_StartTic();
return 0;