Vivid
Loading...
Searching...
No Matches
InputHandler.h
1#pragma once
2
3#include "common/maths/Vec.h"
4#include "GLFW/glfw3.h"
5#include <map>
6#include "editor/camera/movable/EditorCamera.h"
7#include "common/maths/Vec.h"
8
14namespace InputHandler
15{
22 bool IsKeyPressed(int key);
23
30
37
44 bool IsMouseButtonPressed(int button);
45};
A namespace that contains functions to handle input.
bool IsMouseButtonPressed(int button)
Checks if a mouse button is pressed or not.
Vivid::Maths::Vec2 GetMousePositionOnViewport()
Gets the mouse position on the viewport.
bool IsKeyPressed(int key)
Checks if a key is pressed or not.
Definition: InputHandler.cpp:5
Vivid::Maths::Vec2 GetMousePosition()
Gets the mouse position.
Contains a 2D vector.
Definition: Vec.h:108