mirror of https://github.com/stella-emu/stella.git
Refactoring: remove obsolete 'myEvent' from PKeyboardHandler.
This commit is contained in:
parent
168833e000
commit
4ae491dd6c
|
@ -42,14 +42,12 @@ static constexpr int MOD3 = KBDM_ALT;
|
|||
#endif
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
PhysicalKeyboardHandler::PhysicalKeyboardHandler(
|
||||
OSystem& system, EventHandler& handler, Event& event)
|
||||
PhysicalKeyboardHandler::PhysicalKeyboardHandler(OSystem& system, EventHandler& handler)
|
||||
: myOSystem(system),
|
||||
myHandler(handler),
|
||||
#ifdef BSPF_UNIX
|
||||
myAltKeyCounter(0),
|
||||
myHandler(handler)
|
||||
#ifdef BSPF_UNIX // FIXME - this may no longer be relevant
|
||||
, myAltKeyCounter(0)
|
||||
#endif
|
||||
myEvent(event)
|
||||
{
|
||||
Int32 version = myOSystem.settings().getInt("event_ver");
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
class OSystem;
|
||||
class EventHandler;
|
||||
class Event;
|
||||
|
||||
#include "bspf.hxx"
|
||||
#include "EventHandlerConstants.hxx"
|
||||
|
@ -46,7 +45,7 @@ class PhysicalKeyboardHandler
|
|||
{
|
||||
public:
|
||||
|
||||
PhysicalKeyboardHandler(OSystem& system, EventHandler& handler, Event& event);
|
||||
PhysicalKeyboardHandler(OSystem& system, EventHandler& handler);
|
||||
|
||||
void setDefaultMapping(Event::Type type, EventMode mode, bool updateDefaults = false);
|
||||
|
||||
|
@ -108,7 +107,6 @@ class PhysicalKeyboardHandler
|
|||
|
||||
OSystem& myOSystem;
|
||||
EventHandler& myHandler;
|
||||
Event& myEvent;
|
||||
|
||||
// Hashmap of key events
|
||||
KeyMap myKeyMap;
|
||||
|
|
|
@ -70,7 +70,7 @@ EventHandler::EventHandler(OSystem& osystem)
|
|||
myIs7800(false)
|
||||
{
|
||||
// Create keyboard handler (to handle all physical keyboard functionality)
|
||||
myPKeyHandler = make_unique<PhysicalKeyboardHandler>(osystem, *this, myEvent);
|
||||
myPKeyHandler = make_unique<PhysicalKeyboardHandler>(osystem, *this);
|
||||
|
||||
// Create joystick handler (to handle all physical joystick functionality)
|
||||
myPJoyHandler = make_unique<PhysicalJoystickHandler>(osystem, *this, myEvent);
|
||||
|
|
Loading…
Reference in New Issue