input basics
This commit is contained in:
parent
52090853da
commit
cf51ab71a2
17 changed files with 459 additions and 19 deletions
17
src/input/InputManager.hpp
Normal file
17
src/input/InputManager.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include "../defines.hpp"
|
||||
|
||||
class CInputManager {
|
||||
public:
|
||||
|
||||
void onMouseMoved(wlr_event_pointer_motion*);
|
||||
void onMouseButton(int);
|
||||
|
||||
private:
|
||||
Vector2D m_vMouseCoords = Vector2D(0,0);
|
||||
Vector2D m_vWLRMouseCoords = Vector2D(0,0);
|
||||
|
||||
};
|
||||
|
||||
inline std::unique_ptr<CInputManager> g_pInputManager;
|
||||
Loading…
Add table
Add a link
Reference in a new issue