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

18 lines
394 B
C++

#pragma once
#include "renderer.hpp"
void OnWindowResize(GLFWwindow* window, int width, int height);
bool IsKeyPressing(int key);
void InitEvent(const Size& windowInitSize);
bool IsLeftPressing();
bool IsRightPressing();
bool IsLeftPressed();
bool IsRightPressed();
Point GetMousePosition();
void EventUpdate();
void MouseBtnCallback(GLFWwindow* window, int button, int action, int mods);