FacticiusVir / SharpVk

C# Bindings for the Vulkan API & SPIR-V
MIT License
147 stars 18 forks source link

Added GLFW Callbacks for Mouse Events #46

Closed sebastianulm closed 5 years ago

sebastianulm commented 5 years ago

Hello!

I would like to use callback based Mouse Input (which I need to port over some of my projects to SharpVk). I tried to add some testing to the best of my abilities and it works for me. (tested with arch linux/dotnet core) Please let me know if this needs improvement or why it can't be merged.

In case you decide to merge it, i suggest squashing it, as I committed some silly stuff in between.

FacticiusVir commented 5 years ago

Thanks for the new callbacks! Of course, now that I've merged the PR I've spotted some copypasta errors in the delegate comments :-S but that's no worries; I'll tidy those up when I merge back to my Azure DevOps repo.

FacticiusVir commented 5 years ago

Tidied up the comments & added some notes from the GLFW docs, and I added a MouseButton enum which was overdue anyway. Thanks again, and hope this works well for your projects!