mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
input_common: Add missing override specifiers
This commit is contained in:
parent
5e658efdb8
commit
8ce104f0a0
@ -14,7 +14,7 @@ public:
|
||||
explicit KeyButton(std::shared_ptr<KeyButtonList> key_button_list_)
|
||||
: key_button_list(key_button_list_) {}
|
||||
|
||||
~KeyButton();
|
||||
~KeyButton() override;
|
||||
|
||||
bool GetStatus() const override {
|
||||
return status.load();
|
||||
|
@ -133,7 +133,7 @@ public:
|
||||
device = std::make_shared<MotionEmuDevice>(update_millisecond, sensitivity, tilt_clamp);
|
||||
}
|
||||
|
||||
std::tuple<Math::Vec3<float>, Math::Vec3<float>> GetStatus() const {
|
||||
std::tuple<Math::Vec3<float>, Math::Vec3<float>> GetStatus() const override {
|
||||
return device->GetStatus();
|
||||
}
|
||||
|
||||
|
@ -314,10 +314,6 @@ namespace Polling {
|
||||
|
||||
class SDLPoller : public InputCommon::Polling::DevicePoller {
|
||||
public:
|
||||
SDLPoller() = default;
|
||||
|
||||
~SDLPoller() = default;
|
||||
|
||||
void Start() override {
|
||||
// SDL joysticks must be opened, otherwise they don't generate events
|
||||
SDL_JoystickUpdate();
|
||||
@ -341,10 +337,6 @@ private:
|
||||
|
||||
class SDLButtonPoller final : public SDLPoller {
|
||||
public:
|
||||
SDLButtonPoller() = default;
|
||||
|
||||
~SDLButtonPoller() = default;
|
||||
|
||||
Common::ParamPackage GetNextInput() override {
|
||||
SDL_Event event;
|
||||
while (SDL_PollEvent(&event)) {
|
||||
@ -364,10 +356,6 @@ public:
|
||||
|
||||
class SDLAnalogPoller final : public SDLPoller {
|
||||
public:
|
||||
SDLAnalogPoller() = default;
|
||||
|
||||
~SDLAnalogPoller() = default;
|
||||
|
||||
void Start() override {
|
||||
SDLPoller::Start();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user