This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/include/tinyengine/event.hpp

19 lines
426 B
C++
Raw Normal View History

2022-01-30 21:24:16 +08:00
#pragma once
#include "renderer.hpp"
void OnWindowResize(GLFWwindow* window, int width, int height);
bool IsKeyPressing(int key);
2022-02-15 22:50:31 +08:00
void InitEvent(const Size& windowInitSize);
bool IsLeftPressing();
bool IsRightPressing();
2022-02-15 22:50:31 +08:00
bool IsLeftPressed();
bool IsRightPressed();
Point GetMousePosition();
Point GetMousePositionMapped();
2022-02-15 22:50:31 +08:00
void EventUpdate();
void MouseBtnCallback(GLFWwindow* window, int button, int action, int mods);