From 8b4b1e844bd482c7c6f90018d212e9c76f6af26a Mon Sep 17 00:00:00 2001 From: F Freyer Date: Sun, 23 Aug 2020 15:53:43 +0200 Subject: [PATCH] relax type constraint --- src/glfw3.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glfw3.jl b/src/glfw3.jl index 3f9b280..85fab60 100644 --- a/src/glfw3.jl +++ b/src/glfw3.jl @@ -641,7 +641,7 @@ function GetKeyName(key, scancode=0) end GetKey(window::Window, key) = Bool(ccall((:glfwGetKey, libglfw), Cint, (Window, Cint), window, key)) -GetMouseButton(window::Window, button::MouseButton) = Bool(ccall((:glfwGetMouseButton, libglfw), Cint, (Window, Cint), window, button)) +GetMouseButton(window::Window, button) = Bool(ccall((:glfwGetMouseButton, libglfw), Cint, (Window, Cint), window, button)) function GetCursorPos(window::Window) x, y = Ref{Cdouble}(), Ref{Cdouble}()