Skip to content

Commit

Permalink
relax type constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Aug 23, 2020
1 parent 5273d9a commit 8b4b1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glfw3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}()
Expand Down

0 comments on commit 8b4b1e8

Please sign in to comment.