mirror of https://github.com/stella-emu/stella.git
Remove redundant variable.
This commit is contained in:
parent
cb5a4e210c
commit
22b4f36bbc
|
@ -31,10 +31,9 @@ static constexpr char CTRL_DELIM = '^';
|
|||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
PhysicalJoystickHandler::PhysicalJoystickHandler(
|
||||
OSystem& system, EventHandler& handler, Event& event)
|
||||
OSystem& system, EventHandler& handler)
|
||||
: myOSystem(system),
|
||||
myHandler(handler),
|
||||
myEvent(event)
|
||||
myHandler(handler)
|
||||
{
|
||||
Int32 version = myOSystem.settings().getInt("event_ver");
|
||||
// Load previously saved joystick mapping (if any) from settings
|
||||
|
|
|
@ -61,7 +61,7 @@ class PhysicalJoystickHandler
|
|||
};
|
||||
|
||||
public:
|
||||
PhysicalJoystickHandler(OSystem& system, EventHandler& handler, Event& event);
|
||||
PhysicalJoystickHandler(OSystem& system, EventHandler& handler);
|
||||
|
||||
/** Return stick ID on success, -1 on failure. */
|
||||
int add(PhysicalJoystickPtr stick);
|
||||
|
@ -112,7 +112,6 @@ class PhysicalJoystickHandler
|
|||
|
||||
OSystem& myOSystem;
|
||||
EventHandler& myHandler;
|
||||
Event& myEvent;
|
||||
|
||||
// Contains all joysticks that Stella knows about, indexed by name
|
||||
StickDatabase myDatabase;
|
||||
|
|
|
@ -73,7 +73,7 @@ EventHandler::EventHandler(OSystem& osystem)
|
|||
myPKeyHandler = make_unique<PhysicalKeyboardHandler>(osystem, *this);
|
||||
|
||||
// Create joystick handler (to handle all physical joystick functionality)
|
||||
myPJoyHandler = make_unique<PhysicalJoystickHandler>(osystem, *this, myEvent);
|
||||
myPJoyHandler = make_unique<PhysicalJoystickHandler>(osystem, *this);
|
||||
|
||||
// Erase the 'combo' array
|
||||
for(int i = 0; i < COMBO_SIZE; ++i)
|
||||
|
|
Loading…
Reference in New Issue