From 6bfeb5cbc20e3336d8e2a2147b02b380e2d50378 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Wed, 15 Sep 2021 17:05:53 +0700 Subject: Tweak control system to mirror Overgrowth --- src/Support.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/Support.cpp') diff --git a/src/Support.cpp b/src/Support.cpp index fc2b0ac..f7e726a 100644 --- a/src/Support.cpp +++ b/src/Support.cpp @@ -21,20 +21,6 @@ int Random() #endif } -void GetMouse(Point *p) -{ - double xpos, ypos; - glfwGetCursorPos(glfwGetCurrentContext(), &xpos, &ypos); - p->h = floor(xpos); - p->v = floor(ypos); -} - -int Button(void) -{ - const auto window = glfwGetCurrentContext(); - return glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_LEFT) == GLFW_PRESS; -} - bool IsKeyDown(int key) { const auto window = glfwGetCurrentContext(); -- cgit 1.4.1