File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
SerialPrograms/Source/Controllers/KeyboardInput Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1111#include " Common/Cpp/Containers/Pimpl.h"
1212#include " Common/Cpp/Time.h"
1313#include " Common/Cpp/LifetimeSanitizer.h"
14- #include " NintendoSwitch/Controllers/NintendoSwitch_VirtualControllerState.h"
1514
1615namespace PokemonAutomation {
1716
17+ namespace NintendoSwitch {
18+ class ProControllerState ; // forward declaration to avoid circular dependency
19+ }
20+
1821class KeyboardEventHandler {
1922public:
2023 KeyboardEventHandler ();
Original file line number Diff line number Diff line change 1414#include " Common/Cpp/Concurrency/SpinLock.h"
1515#include " Controllers/Controller.h"
1616#include " Controllers/KeyboardInput/GlobalQtKeyMap.h"
17+ #include " KeyboardEventHandler.h"
1718#include " KeyboardStateTracker.h"
1819
1920class QKeyEvent ;
@@ -86,7 +87,7 @@ class KeyboardInputController{
8687
8788
8889template <typename StateType, typename DeltaType>
89- class KeyboardManager : public KeyboardInputController {
90+ class KeyboardManager : public KeyboardInputController , public KeyboardEventHandler {
9091public:
9192 KeyboardManager (Logger& logger, AbstractController& controller)
9293 : KeyboardInputController(logger, true )
You can’t perform that action at this time.
0 commit comments