diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-15 17:05:53 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-16 00:12:44 +0700 |
| commit | 6bfeb5cbc20e3336d8e2a2147b02b380e2d50378 (patch) | |
| tree | 37149c46c84da45411b1b7f3322397c77980fa2e /src/Support.cpp | |
| parent | 662673fd3ceac4895769241c1b6836061738d46a (diff) | |
| download | blackshades-6bfeb5cbc20e3336d8e2a2147b02b380e2d50378.tar.gz | |
Tweak control system to mirror Overgrowth
Diffstat (limited to 'src/Support.cpp')
| -rw-r--r-- | src/Support.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
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(); |
