mirror of https://github.com/stella-emu/stella.git
Fixed issue with number of lines that are scrolled when using a scroll-
button on a mouse. I could never figure out why it was moving 4 lines when I only specified 2. Still TODO is make this configurable from UIDialog. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1344 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
3993576dfc
commit
7ebe5185c0
|
@ -14,7 +14,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: EventHandler.cxx,v 1.204 2007-07-31 15:46:20 stephena Exp $
|
||||
// $Id: EventHandler.cxx,v 1.205 2007-08-13 19:45:42 stephena Exp $
|
||||
//============================================================================
|
||||
|
||||
#include <sstream>
|
||||
|
@ -896,10 +896,12 @@ void EventHandler::handleMouseButtonEvent(SDL_Event& event, int state)
|
|||
button = state ? EVENT_RBUTTONDOWN : EVENT_RBUTTONUP;
|
||||
break;
|
||||
case SDL_BUTTON_WHEELDOWN:
|
||||
button = EVENT_WHEELDOWN;
|
||||
if(state) button = EVENT_WHEELDOWN;
|
||||
else return;
|
||||
break;
|
||||
case SDL_BUTTON_WHEELUP:
|
||||
button = EVENT_WHEELUP;
|
||||
if(state) button = EVENT_WHEELUP;
|
||||
else return;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: ScrollBarWidget.cxx,v 1.18 2007-08-12 23:05:12 stephena Exp $
|
||||
// $Id: ScrollBarWidget.cxx,v 1.19 2007-08-13 19:45:42 stephena Exp $
|
||||
//
|
||||
// Based on code from ScummVM - Scumm Interpreter
|
||||
// Copyright (C) 2002-2004 The ScummVM project
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#define UP_DOWN_BOX_HEIGHT 10
|
||||
#define WHEEL_LINES 2
|
||||
#define WHEEL_LINES 4
|
||||
|
||||
// Up arrow
|
||||
static unsigned int up_arrow[8] = {
|
||||
|
|
Loading…
Reference in New Issue