mirror of https://github.com/stella-emu/stella.git
Added default axis events in UI mode.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1110 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
21ebade382
commit
8c7469c0ce
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: OSystem.cxx,v 1.69 2006-05-15 12:24:09 stephena Exp $
|
// $Id: OSystem.cxx,v 1.70 2006-06-10 13:27:23 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@ -482,7 +482,10 @@ void OSystem::setDefaultJoyAxisMap()
|
||||||
myEventHandler->setDefaultJoyAxisMapping(Event::JoystickOneDown, mode, 1, 1, 1);
|
myEventHandler->setDefaultJoyAxisMapping(Event::JoystickOneDown, mode, 1, 1, 1);
|
||||||
|
|
||||||
mode = kMenuMode; // Default menu/UI events
|
mode = kMenuMode; // Default menu/UI events
|
||||||
// FIXME - add UI events
|
myEventHandler->setDefaultJoyAxisMapping(Event::UILeft, mode, 0, 0, 0);
|
||||||
|
myEventHandler->setDefaultJoyAxisMapping(Event::UIRight, mode, 0, 0, 1);
|
||||||
|
myEventHandler->setDefaultJoyAxisMapping(Event::UIUp, mode, 0, 1, 0);
|
||||||
|
myEventHandler->setDefaultJoyAxisMapping(Event::UIDown, mode, 0, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue