lib/sdl: fix right and middle mouse button id
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 17 Dec 2014 15:41:03 +0000 (10:41 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 14 Jan 2015 13:47:15 +0000 (08:47 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/sdl.nit

index 168f123..16695e2 100644 (file)
@@ -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