Fix mouse wheel getting stucked scrolling up or down
This commit is contained in:
parent
84818c96f2
commit
b227db1a77
|
|
@ -531,6 +531,10 @@ void PollInputEvents(void)
|
||||||
// Reset key repeats
|
// Reset key repeats
|
||||||
for (int i = 0; i < MAX_KEYBOARD_KEYS; i++) CORE.Input.Keyboard.keyRepeatInFrame[i] = 0;
|
for (int i = 0; i < MAX_KEYBOARD_KEYS; i++) CORE.Input.Keyboard.keyRepeatInFrame[i] = 0;
|
||||||
|
|
||||||
|
// Reset mouse wheel
|
||||||
|
CORE.Input.Mouse.currentWheelMove.x = 0;
|
||||||
|
CORE.Input.Mouse.currentWheelMove.y = 0;
|
||||||
|
|
||||||
// Reset last gamepad button/axis registered state
|
// Reset last gamepad button/axis registered state
|
||||||
CORE.Input.Gamepad.lastButtonPressed = GAMEPAD_BUTTON_UNKNOWN;
|
CORE.Input.Gamepad.lastButtonPressed = GAMEPAD_BUTTON_UNKNOWN;
|
||||||
for (int i = 0; i < MAX_GAMEPADS; i++) CORE.Input.Gamepad.axisCount[i] = 0;
|
for (int i = 0; i < MAX_GAMEPADS; i++) CORE.Input.Gamepad.axisCount[i] = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user