From 65ce26d93cc25ee5f9ef842b9e78b4c1cf83600f Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Wed, 14 Feb 2018 11:36:56 +0300 Subject: [PATCH] fixed right mouse procesing --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index b6a2406..26b0608 100644 --- a/src/main.c +++ b/src/main.c @@ -274,9 +274,9 @@ static void processMouse() } { - input->mouse.left = mb & SDL_BUTTON_LMASK; - input->mouse.middle = mb & SDL_BUTTON_MMASK; - input->mouse.right = mb & SDL_BUTTON_RMASK; + input->mouse.left = mb & SDL_BUTTON_LMASK ? 1 : 0; + input->mouse.middle = mb & SDL_BUTTON_MMASK ? 1 : 0; + input->mouse.right = mb & SDL_BUTTON_RMASK ? 1 : 0; } }