summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-05-12 01:24:57 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-05-12 23:18:54 +0200
commitc2ac6b3759901ecede7b22c1e9ab9f5a04ddd527 (patch)
treecf51d6ab8430cd186e02f0e8105004f8e5476728 /src/core/Pad.cpp
parentfix shotgun (diff)
downloadre3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar
re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.gz
re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.bz2
re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.lz
re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.xz
re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.tar.zst
re3-c2ac6b3759901ecede7b22c1e9ab9f5a04ddd527.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index da86d15e..924d4724 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -509,7 +509,7 @@ CMouseControllerState CMousePointerStateHelper::GetMouseSetUp()
double xpos = 1.0f, ypos;
glfwGetCursorPos(PSGLOBAL(window), &xpos, &ypos);
- if (xpos != NULL) {
+ if (xpos != 0.f) {
state.MMB = true;
state.RMB = true;
state.LMB = true;
@@ -565,7 +565,7 @@ void CPad::UpdateMouse()
#else
double xpos = 1.0f, ypos;
glfwGetCursorPos(PSGLOBAL(window), &xpos, &ypos);
- if (xpos == NULL)
+ if (xpos == 0.f)
return;
int32 signX = 1;