You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
152 lines
3.2 KiB
152 lines
3.2 KiB
/******************************************************************** |
|
KWin - the KDE window manager |
|
This file is part of the KDE project. |
|
|
|
Copyright (C) 2016 Martin Gräßlin <mgraesslin@kde.org> |
|
|
|
This program is free software; you can redistribute it and/or modify |
|
it under the terms of the GNU General Public License as published by |
|
the Free Software Foundation; either version 2 of the License, or |
|
(at your option) any later version. |
|
|
|
This program is distributed in the hope that it will be useful, |
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
GNU General Public License for more details. |
|
|
|
You should have received a copy of the GNU General Public License |
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
*********************************************************************/ |
|
#include "input_event_spy.h" |
|
#include "input.h" |
|
|
|
#include <QPointF> |
|
#include <QSizeF> |
|
|
|
namespace KWin |
|
{ |
|
|
|
InputEventSpy::InputEventSpy() = default; |
|
|
|
InputEventSpy::~InputEventSpy() |
|
{ |
|
if (input()) { |
|
input()->uninstallInputEventSpy(this); |
|
} |
|
} |
|
|
|
void InputEventSpy::pointerEvent(MouseEvent *event) |
|
{ |
|
Q_UNUSED(event) |
|
} |
|
|
|
void InputEventSpy::wheelEvent(WheelEvent *event) |
|
{ |
|
Q_UNUSED(event) |
|
} |
|
|
|
void InputEventSpy::keyEvent(KeyEvent *event) |
|
{ |
|
Q_UNUSED(event) |
|
} |
|
|
|
void InputEventSpy::touchDown(qint32 id, const QPointF &point, quint32 time) |
|
{ |
|
Q_UNUSED(id) |
|
Q_UNUSED(point) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::touchMotion(qint32 id, const QPointF &point, quint32 time) |
|
{ |
|
Q_UNUSED(id) |
|
Q_UNUSED(point) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::touchUp(qint32 id, quint32 time) |
|
{ |
|
Q_UNUSED(id) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::pinchGestureBegin(int fingerCount, quint32 time) |
|
{ |
|
Q_UNUSED(fingerCount) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::pinchGestureUpdate(qreal scale, qreal angleDelta, const QSizeF &delta, quint32 time) |
|
{ |
|
Q_UNUSED(scale) |
|
Q_UNUSED(angleDelta) |
|
Q_UNUSED(delta) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::pinchGestureEnd(quint32 time) |
|
{ |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::pinchGestureCancelled(quint32 time) |
|
{ |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::swipeGestureBegin(int fingerCount, quint32 time) |
|
{ |
|
Q_UNUSED(fingerCount) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::swipeGestureUpdate(const QSizeF &delta, quint32 time) |
|
{ |
|
Q_UNUSED(delta) |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::swipeGestureEnd(quint32 time) |
|
{ |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::swipeGestureCancelled(quint32 time) |
|
{ |
|
Q_UNUSED(time) |
|
} |
|
|
|
void InputEventSpy::switchEvent(SwitchEvent *event) |
|
{ |
|
Q_UNUSED(event) |
|
} |
|
|
|
void InputEventSpy::tabletToolEvent(TabletEvent *event) |
|
{ |
|
Q_UNUSED(event) |
|
} |
|
|
|
void InputEventSpy::tabletToolButtonEvent(const QSet<uint> &pressedButtons) |
|
{ |
|
Q_UNUSED(pressedButtons) |
|
} |
|
|
|
void InputEventSpy::tabletPadButtonEvent(const QSet<uint> &pressedButtons) |
|
{ |
|
Q_UNUSED(pressedButtons) |
|
} |
|
|
|
void InputEventSpy::tabletPadStripEvent(int number, int position, bool isFinger) |
|
{ |
|
Q_UNUSED(number) |
|
Q_UNUSED(position) |
|
Q_UNUSED(isFinger) |
|
} |
|
|
|
void InputEventSpy::tabletPadRingEvent(int number, int position, bool isFinger) |
|
{ |
|
Q_UNUSED(number) |
|
Q_UNUSED(position) |
|
Q_UNUSED(isFinger) |
|
} |
|
}
|
|
|