Added simple glfw input callbacks
This commit is contained in:
		@ -12,6 +12,13 @@ namespace BarinkEngine {
 | 
			
		||||
		void PollEvents();
 | 
			
		||||
		void attach(BarinkWindow* window);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		// GLFW Handlers
 | 
			
		||||
		static void KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
 | 
			
		||||
		static void CursorPositionCallback(GLFWwindow* window, double x, double y);
 | 
			
		||||
		static void CursorEnterCallback(GLFWwindow* window, int entered);
 | 
			
		||||
		static void MouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
 | 
			
		||||
		static void ScrollCallback(GLFWwindow* window, double xoffset, double yoffset);
 | 
			
		||||
	private:
 | 
			
		||||
		std::vector<BarinkWindow*> windows;
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user