From a3b00308c0e33f568bd642d27dc8c9859091842f Mon Sep 17 00:00:00 2001 From: stephena Date: Fri, 14 Oct 2005 14:07:24 +0000 Subject: [PATCH] Fixed lag in mouse/paddle emulation when grabmouse is enabled. In a future release, this should be configurable from within the GUI. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@832 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/emucore/EventHandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/emucore/EventHandler.cxx b/stella/src/emucore/EventHandler.cxx index b07b22b5f..9b9241cc9 100644 --- a/stella/src/emucore/EventHandler.cxx +++ b/stella/src/emucore/EventHandler.cxx @@ -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: EventHandler.cxx,v 1.104 2005-10-09 17:31:47 stephena Exp $ +// $Id: EventHandler.cxx,v 1.105 2005-10-14 14:07:24 stephena Exp $ //============================================================================ #include @@ -773,7 +773,7 @@ void EventHandler::handleMouseMotionEvent(SDL_Event& event) // Grabmouse introduces some lag into the mouse movement, // so we need to fudge the numbers a bit - // FIXME - possibly do x *= 1.5 ?? + if(myGrabMouseFlag) x = MIN(w, (int) (x * 1.5)); int resistance = (int)(1000000.0 * (w - x) / w); handleEvent(Paddle_Resistance[myPaddleMode], resistance);