mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
We can control shell vibrations from here, which can be replaced once there is a mechanism to control system-wide vibrations for QtFeedback.
18 lines
270 B
C++
18 lines
270 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
class Haptics : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static Haptics *self();
|
|
|
|
Q_INVOKABLE void buttonVibrate();
|
|
};
|