diff options
| author | Ray <[email protected]> | 2020-02-12 13:16:18 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-12 13:16:18 +0100 |
| commit | 484c6b360f4da17c5034aa1408b3a3bef092eeea (patch) | |
| tree | cbb564a72a1ba0353e643d17aa9f76bfcb9db08a /src/core.c | |
| parent | dec85f741a1605b58e7ae819cbbb9bd82f16e60d (diff) | |
| download | raylib-484c6b360f4da17c5034aa1408b3a3bef092eeea.tar.gz raylib-484c6b360f4da17c5034aa1408b3a3bef092eeea.zip | |
Reviewed Cppcheck issues #1098
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3974,7 +3974,7 @@ static void MouseButtonCallback(GLFWwindow *window, int button, int action, int #if defined(SUPPORT_GESTURES_SYSTEM) && defined(SUPPORT_MOUSE_GESTURES) // Process mouse events as touches to be able to use mouse-gestures - GestureEvent gestureEvent; + GestureEvent gestureEvent = { 0 }; // Register touch actions if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) gestureEvent.touchAction = TOUCH_DOWN; @@ -4005,7 +4005,7 @@ static void MouseCursorPosCallback(GLFWwindow *window, double x, double y) { #if defined(SUPPORT_GESTURES_SYSTEM) && defined(SUPPORT_MOUSE_GESTURES) // Process mouse events as touches to be able to use mouse-gestures - GestureEvent gestureEvent; + GestureEvent gestureEvent = { 0 }; gestureEvent.touchAction = TOUCH_MOVE; @@ -4273,7 +4273,7 @@ static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event) unsigned int flags = action & AMOTION_EVENT_ACTION_MASK; #if defined(SUPPORT_GESTURES_SYSTEM) - GestureEvent gestureEvent; + GestureEvent gestureEvent = { 0 }; // Register touch actions if (flags == AMOTION_EVENT_ACTION_DOWN) gestureEvent.touchAction = TOUCH_DOWN; @@ -4388,7 +4388,7 @@ static EM_BOOL EmscriptenMouseCallback(int eventType, const EmscriptenMouseEvent static EM_BOOL EmscriptenTouchCallback(int eventType, const EmscriptenTouchEvent *touchEvent, void *userData) { #if defined(SUPPORT_GESTURES_SYSTEM) - GestureEvent gestureEvent; + GestureEvent gestureEvent = { 0 }; // Register touch actions if (eventType == EMSCRIPTEN_EVENT_TOUCHSTART) gestureEvent.touchAction = TOUCH_DOWN; |
