Skip to content

Commit 1c847b3

Browse files
committed
fix build
1 parent 69af1b8 commit 1c847b3

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

SerialPrograms/Source/Controllers/Controller.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ class AbstractController{
207207
virtual void keyboard_press(const QKeyEvent& event){}
208208
virtual void keyboard_release(const QKeyEvent& event){}
209209

210-
virtual void add_keyboard_listener(KeyboardEventHandler::KeyboardListener& keyboard_listener) = 0;
211-
virtual void remove_keyboard_listener(KeyboardEventHandler::KeyboardListener& keyboard_listener) = 0;
210+
virtual void add_keyboard_listener(KeyboardEventHandler::KeyboardListener& keyboard_listener){};
211+
virtual void remove_keyboard_listener(KeyboardEventHandler::KeyboardListener& keyboard_listener){};
212212
};
213213

214214

SerialPrograms/Source/Controllers/ControllerTypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ enum class ControllerCategory{
4949
LEFT_JOYCON,
5050
RIGHT_JOYCON,
5151
PRO_CONTROLLER,
52+
KEYBOARD,
5253
};
5354

5455

SerialPrograms/Source/Controllers/KeyboardInput/KeyboardInput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ControllerState{
3939

4040
virtual bool is_neutral() const = 0;
4141

42-
virtual JsonObject serialize_state() const = 0;
42+
virtual JsonObject serialize_state() const {return JsonObject();};
4343
};
4444

4545

SerialPrograms/Source/Controllers/StandardHid/StandardHid_Keyboard_SerialPABotBase.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class SerialPABotBase_Keyboard final :
5353
virtual ControllerType controller_type() const override{
5454
return ControllerType::HID_Keyboard;
5555
}
56+
virtual ControllerCategory controller_category() const override{
57+
return ControllerCategory::KEYBOARD;
58+
}
5659
virtual ControllerPerformanceClass performance_class() const override{
5760
return ControllerPerformanceClass::SerialPABotBase_Wired;
5861
}

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_ControllerButtons.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "NintendoSwitch_ControllerButtons.h"
88
#include "Common/Cpp/EnumStringMap.h"
99
#include "Common/Cpp/StringTools.h"
10-
#include "NintendoSwitch_ControllerState.h"
1110

1211
namespace PokemonAutomation{
1312
namespace NintendoSwitch{

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_Joycon.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include "Common/Cpp/Containers/Pimpl.h"
1111
#include "NintendoSwitch_ControllerButtons.h"
12-
#include "NintendoSwitch_ControllerState.h"
1312
#include "Controllers/ControllerTypes.h"
1413
#include "Controllers/Controller.h"
1514

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_ProController.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define PokemonAutomation_NintendoSwitch_Controller_H
1111

1212
#include "Common/Cpp/Containers/Pimpl.h"
13-
#include "NintendoSwitch_ControllerState.h"
1413
#include "Controllers/ControllerTypes.h"
1514
#include "Controllers/Controller.h"
1615
#include "NintendoSwitch_ControllerButtons.h"

0 commit comments

Comments
 (0)