mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 04:50:42 +00:00
- 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:
parent
c09a5150a9
commit
b88a279a57
1 changed files with 0 additions and 22 deletions
|
@ -168,28 +168,6 @@ int32_t handleevents(void)
|
||||||
|
|
||||||
timerUpdateClock();
|
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_StartFrame();
|
||||||
I_StartTic();
|
I_StartTic();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue