2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2018-12-01 13:52:47 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2018 Martin Flöser <mgraesslin@kde.org>
|
2018-12-01 13:52:47 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2018-12-01 13:52:47 +00:00
|
|
|
#pragma once
|
|
|
|
#include "input_event_spy.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2021-11-29 14:49:38 +00:00
|
|
|
class HideCursorSpy : public InputEventSpy
|
2018-12-01 13:52:47 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
void pointerEvent(KWin::MouseEvent *event) override;
|
|
|
|
void wheelEvent(KWin::WheelEvent *event) override;
|
2022-12-21 00:55:20 +00:00
|
|
|
void touchDown(qint32 id, const QPointF &pos, std::chrono::microseconds time) override;
|
2021-11-29 14:49:38 +00:00
|
|
|
void tabletToolEvent(TabletEvent *event) override;
|
2018-12-01 13:52:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void showCursor();
|
|
|
|
void hideCursor();
|
|
|
|
|
|
|
|
bool m_cursorHidden = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|