PistonDevelopers / glfw-rs

GLFW3 bindings and idiomatic wrapper for Rust.
Apache License 2.0
645 stars 123 forks source link

Improved error, monitor and joystick callbacks #545

Closed bohdloss closed 1 year ago

bohdloss commented 1 year ago

Now set_error_callback(), set_monitor_callback() and set_joystick_callback() accept FnMut's as arguments as opposed to having to initialize a struct with a function and user data. They now also have corresponding unset functions: unset_error_callback(), unset_monitor_callback() and unset_joystick_callback().

bohdloss commented 1 year ago

Rebased

bvssvni commented 1 year ago

Merging

bvssvni commented 1 year ago

Thanks!