mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
XWayland and moved managers
This commit is contained in:
27
src/managers/InputManager.hpp
Normal file
27
src/managers/InputManager.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "../defines.hpp"
|
||||
#include <deque>
|
||||
#include "../helpers/WLClasses.hpp"
|
||||
|
||||
class CInputManager {
|
||||
public:
|
||||
|
||||
void onMouseMoved(wlr_event_pointer_motion*);
|
||||
void onMouseWarp(wlr_event_pointer_motion_absolute*);
|
||||
void onKeyboardKey(wlr_event_keyboard_key*);
|
||||
void onKeyboardMod(void*);
|
||||
|
||||
void newKeyboard(wlr_input_device*);
|
||||
|
||||
Vector2D getMouseCoordsInternal();
|
||||
|
||||
private:
|
||||
Vector2D m_vMouseCoords = Vector2D(0,0);
|
||||
Vector2D m_vWLRMouseCoords = Vector2D(0,0);
|
||||
|
||||
std::deque<SKeyboard> m_dKeyboards;
|
||||
|
||||
};
|
||||
|
||||
inline std::unique_ptr<CInputManager> g_pInputManager;
|
Reference in New Issue
Block a user