mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
Mouse wheel fix
This commit is contained in:
parent
474b0418d3
commit
fdb1580e15
@ -575,14 +575,15 @@ void CPad::UpdateMouse()
|
|||||||
PCTempMouseControllerState.MXB1 = glfwGetMouseButton(PSGLOBAL(window), GLFW_MOUSE_BUTTON_4);
|
PCTempMouseControllerState.MXB1 = glfwGetMouseButton(PSGLOBAL(window), GLFW_MOUSE_BUTTON_4);
|
||||||
PCTempMouseControllerState.MXB2 = glfwGetMouseButton(PSGLOBAL(window), GLFW_MOUSE_BUTTON_5);
|
PCTempMouseControllerState.MXB2 = glfwGetMouseButton(PSGLOBAL(window), GLFW_MOUSE_BUTTON_5);
|
||||||
|
|
||||||
PSGLOBAL(lastMousePos.x) = xpos;
|
|
||||||
PSGLOBAL(lastMousePos.y) = ypos;
|
|
||||||
|
|
||||||
if (PSGLOBAL(mouseWheel) > 0)
|
if (PSGLOBAL(mouseWheel) > 0)
|
||||||
PCTempMouseControllerState.WHEELUP = 1;
|
PCTempMouseControllerState.WHEELUP = 1;
|
||||||
else if (PSGLOBAL(mouseWheel) < 0)
|
else if (PSGLOBAL(mouseWheel) < 0)
|
||||||
PCTempMouseControllerState.WHEELDN = 1;
|
PCTempMouseControllerState.WHEELDN = 1;
|
||||||
|
|
||||||
|
PSGLOBAL(lastMousePos.x) = xpos;
|
||||||
|
PSGLOBAL(lastMousePos.y) = ypos;
|
||||||
|
PSGLOBAL(mouseWheel) = 0.0f;
|
||||||
|
|
||||||
OldMouseControllerState = NewMouseControllerState;
|
OldMouseControllerState = NewMouseControllerState;
|
||||||
NewMouseControllerState = PCTempMouseControllerState;
|
NewMouseControllerState = PCTempMouseControllerState;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user