From: Alexis Laferrière Date: Wed, 17 Dec 2014 15:41:03 +0000 (-0500) Subject: lib/sdl: fix right and middle mouse button id X-Git-Tag: v0.7.1~20^2~1 X-Git-Url: http://nitlanguage.org lib/sdl: fix right and middle mouse button id Signed-off-by: Alexis Laferrière --- diff --git a/lib/sdl.nit b/lib/sdl.nit index 168f123..16695e2 100644 --- a/lib/sdl.nit +++ b/lib/sdl.nit @@ -310,10 +310,10 @@ class SDLMouseButtonEvent fun is_left_button: Bool do return button == 1 # Is this event raised by the right button? - fun is_right_button: Bool do return button == 2 + fun is_right_button: Bool do return button == 3 # Is this event raised by the middle button? - fun is_middle_button: Bool do return button == 3 + fun is_middle_button: Bool do return button == 2 # Is this event raised by the wheel going down? fun is_down_wheel: Bool do return button == 4