SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
SPDX-FileCopyrightText: 2023 Jeremy Whiting <jpwhiting@kde.org>
SPDX-FileCopyrightText: 2023 NiccolΓ² Venerandi <niccolo@venerandi.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "kcm.h"
#include <KPluginFactory>
#include "axesmodel.h"
#include "axesproxymodel.h"
#include "buttonmodel.h"
#include "devicemodel.h"
#include "hatmodel.h"
K_PLUGIN_CLASS_WITH_JSON(KCMGameController, "kcm_gamecontroller.json")
KCMGameController::KCMGameController(QObject *parent, const KPluginMetaData &metaData)
: KQuickManagedConfigModule(parent, metaData)
{
setButtons(Help);
constexpr const char *uri{"org.kde.plasma.gamecontroller.kcm"};
qmlRegisterType<DeviceModel>(uri, 1, 0, "DeviceModel");
qmlRegisterType<AxesModel>(uri, 1, 0, "AxesModel");
qmlRegisterType<AxesProxyModel>(uri, 1, 0, "AxesProxyModel");
qmlRegisterType<ButtonModel>(uri, 1, 0, "ButtonModel");
qmlRegisterType<HatModel>(uri, 1, 0, "HatModel");
}
KCMGameController::~KCMGameController()
{
}
#include "kcm.moc"
#include "moc_kcm.cpp"