From 47404534d0cf94b969daee5e0e4dc20c65c35fb2 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 9 Jun 2022 12:46:55 +0200 Subject: added tablet v2 support (alpha alpha) --- src/managers/InputManager.hpp | 50 ------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/managers/InputManager.hpp (limited to 'src/managers/InputManager.hpp') diff --git a/src/managers/InputManager.hpp b/src/managers/InputManager.hpp deleted file mode 100644 index a6f436da..00000000 --- a/src/managers/InputManager.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include "../defines.hpp" -#include -#include "../helpers/WLClasses.hpp" -#include "../Window.hpp" - -class CInputManager { -public: - - void onMouseMoved(wlr_pointer_motion_event*); - void onMouseWarp(wlr_pointer_motion_absolute_event*); - void onMouseButton(wlr_pointer_button_event*); - void onKeyboardKey(wlr_keyboard_key_event*, SKeyboard*); - void onKeyboardMod(void*, SKeyboard*); - - void newKeyboard(wlr_input_device*); - void newMouse(wlr_input_device*); - void destroyKeyboard(SKeyboard*); - void destroyMouse(wlr_input_device*); - - void constrainMouse(SMouse*, wlr_pointer_constraint_v1*); - void recheckConstraint(SMouse*); - - Vector2D getMouseCoordsInternal(); - void refocus(); - - void setKeyboardLayout(); - - void updateDragIcon(); - - - // for dragging floating windows - CWindow* currentlyDraggedWindow = nullptr; - int dragButton = -1; - - SDrag m_sDrag; - - std::list m_lConstraints; - std::list m_lKeyboards; - std::list m_lMice; - - SKeyboard* m_pActiveKeyboard = nullptr; - - private: - - void mouseMoveUnified(uint32_t, bool refocus = false); -}; - -inline std::unique_ptr g_pInputManager; \ No newline at end of file -- cgit v1.2.3