MrTanoshii / rusty-autoclicker

A pure Rust portable auto clicker built for Linux, macOS & Windows.
Creative Commons Zero v1.0 Universal
71 stars 12 forks source link

Dynamic "button pressed" UI String #18

Closed cph-w closed 1 year ago

cph-w commented 1 year ago

On MacOS the device_query::mouse_state::MouseState struct returns buttons_pressed with less values than are accessed by index for the buttons pressed UI string. This leads to a program panic.

The solution is to dynamically append to this string starting at extra mouse buttons.

(#17)

MrTanoshii commented 1 year ago

Sorry it took me a while to review it, that's a really neat way of doing things and I didn't know about it.

I'm really impressed, thanks for the contribution!

cph-w commented 1 year ago

@MrTanoshii Not a problem, thank you for creating this software :)