mirror-kde-plasma-desktop/kcms/gamecontroller/kcm.h
Yelsin Sepulveda 7493110869 kcms/gamecontroller: Add switch for KWin "gamecontroller" plugin
Add the ability to enable/disable the new KWin "gamecontroller"
plugin from KWin commit 3110eaef. The new UI element will be
added as part of the existing gamecontroller KCM.

This plugin provides some integration for game controllers.
While no other process is using a given controller device, it
translates controller inputs to keyboard and mouse events, to
make the device useful for input on the desktop.
It also prevents the system from going idle (turning the screen
off or going to standby) while any gamepad is used.

BUG: 328987
2026-01-03 00:00:58 +01:00

28 lines
812 B
C++

/*
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-FileCopyrightText: 2025 Yelsin Sepulveda <yelsin.sepulveda@kdemail.net>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <KQuickConfigModule>
class KCMGameController : public KQuickConfigModule
{
Q_OBJECT
Q_PROPERTY(bool pluginEnabled READ isPluginEnabled WRITE setPluginEnabled NOTIFY pluginEnabledChanged FINAL)
public:
KCMGameController(QObject *parent, const KPluginMetaData &metaData);
~KCMGameController() override;
bool isPluginEnabled() const;
void setPluginEnabled(bool enabled);
Q_SIGNALS:
void pluginEnabledChanged();
};