Merge remote-tracking branch 'alexis/various-fixes-for-games'
authorJean Privat <jean@pryen.org>
Tue, 4 Mar 2014 16:31:09 +0000 (11:31 -0500)
committerJean Privat <jean@pryen.org>
Tue, 4 Mar 2014 16:31:09 +0000 (11:31 -0500)
Latest additions to the standard library for Round'n Round.

The Float::abs implemetation corrects a bug present in master.

1  2 
lib/mnit_linux/linux_opengles1.nit
lib/mnit_linux/sdl.nit

Simple merge
@@@ -127,9 -136,9 +136,9 @@@ extern SDLDisplay in "C" `{SDL_Surface 
                                                   event.motion.x, event.motion.y);
        #endif
  
 -                                      return SDLMouseMotionEvent_as_nullable_InputEvent(
 +                                      return SDLMouseMotionEvent_as_nullable_IE(
                                                        new_SDLMouseMotionEvent( event.motion.x, event.motion.y,
-                                                               event.motion.xrel, event.motion.yrel ) );
+                                                               event.motion.xrel, event.motion.yrel, SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(1)) );
  
                                case SDL_MOUSEBUTTONDOWN:
                                case SDL_MOUSEBUTTONUP: