/* Copyright (c) 2013-2023 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include #include #include "input/InputDriver.h" namespace QGBA { class InputSource : public QObject { Q_OBJECT public: InputSource(InputDriver* driver, QObject* parent = nullptr); virtual ~InputSource() = default; InputDriver* driver() { return m_driver; } uint32_t type() { return m_driver->type(); } virtual QString name() const = 0; virtual QString visibleName() const = 0; virtual QString serial() const = 0; protected: InputDriver* const m_driver; }; }