mirror of https://github.com/stella-emu/stella.git
Fixed joystick axis bug in UI events whereby zeroing the axis was being
treated as an 'axis down' event. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1106 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
e327a773c4
commit
7c4cb48c2e
|
@ -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: Dialog.cxx,v 1.46 2006-05-15 16:21:27 stephena Exp $
|
||||
// $Id: Dialog.cxx,v 1.47 2006-05-25 19:03:57 stephena Exp $
|
||||
//
|
||||
// Based on code from ScummVM - Scumm Interpreter
|
||||
// Copyright (C) 2002-2004 The ScummVM project
|
||||
|
@ -420,7 +420,7 @@ void Dialog::handleJoyAxis(int stick, int axis, int value)
|
|||
{
|
||||
if(_focusedWidget->wantsRaw() || e == Event::NoType)
|
||||
_focusedWidget->handleJoyAxis(stick, axis, value);
|
||||
else
|
||||
else if(value != 0)
|
||||
_focusedWidget->handleEvent(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue