Fixed bug in mouse scrolling due to differences in handle mouse

scroll events from SDL1 to SDL2.

Bumped version #.  It looks like the current code is now bug-fixed
and equivalent to release 3.9.3.  Now on to committing some backlogged
patches and adding new functionality.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2920 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2014-06-13 14:49:01 +00:00
parent d275773413
commit 791c908d8c
2 changed files with 5 additions and 3 deletions

View File

@ -111,10 +111,12 @@ void EventHandlerSDL2::pollEvent()
case SDL_MOUSEWHEEL:
{
int x, y;
SDL_GetMouseState(&x, &y); // we need mouse position too
if(myEvent.wheel.y < 0)
handleMouseButtonEvent(EVENT_WHEELDOWN, 0, myEvent.wheel.y);
handleMouseButtonEvent(EVENT_WHEELDOWN, x, y);
else if(myEvent.wheel.y > 0)
handleMouseButtonEvent(EVENT_WHEELUP, 0, myEvent.wheel.y);
handleMouseButtonEvent(EVENT_WHEELUP, x, y);
break;
}

View File

@ -22,7 +22,7 @@
#include <cstdlib>
#define STELLA_VERSION "3.9.120_svn"
#define STELLA_VERSION "3.9.200_svn"
#define STELLA_BUILD atoi("$Rev$" + 6)
#endif