diff --git a/input.h b/input.h index 7c89bbd6a8..b8bd9ad2b0 100644 --- a/input.h +++ b/input.h @@ -87,14 +87,6 @@ public: * @return const QPointF& The current global pointer position */ const QPointF &globalPointer() const; - /** - * @brief The last known state of the @p button. If @p button is still unknown the state is - * @c PointerButtonReleased. - * - * @param button The button for which the last known state should be queried. - * @return KWin::InputRedirection::PointerButtonState - */ - PointerButtonState pointerButtonState(uint32_t button) const; Qt::MouseButtons qtButtonStates() const; Qt::KeyboardModifiers keyboardModifiers() const; @@ -358,17 +350,6 @@ const QPointF &InputRedirection::globalPointer() const return m_globalPointer; } -inline -InputRedirection::PointerButtonState InputRedirection::pointerButtonState(uint32_t button) const -{ - auto it = m_pointerButtons.constFind(button); - if (it != m_pointerButtons.constEnd()) { - return it.value(); - } else { - return KWin::InputRedirection::PointerButtonReleased; - } -} - template inline void InputRedirection::registerShortcut(const QKeySequence &shortcut, QAction *action, T *receiver, void (T::*slot)()) {