mirror of https://github.com/stella-emu/stella.git
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:
parent
d275773413
commit
791c908d8c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue