-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5 button mouse support and more #312
Comments
Hi, As minifb is mainly a prototyping library supporting all of this feels a bit out of scope for the library. In your case maybe something like |
I love |
The |
Cool. Yeah, but what should the value for the |
My understanding is that most operating systems give key codes, typically 2 or 4 bytes, to the program. If |
I moved to
rust_minifb
frompiston_window
, but am missing its extensive button system. There are an awful lot of obscure key codes, but it would be nice to support as many as possible in one fell swoop. One thing I have available is a 5 button mouse, but only 3 buttons are currently available in the mouse enum.What I would recommend is:
Unknown(u32)
variant (and not justUnknown
) that includes a field for codes we missClone
,Copy
,Debug
,Eq
,Hash
, andOrd
for all the enums so that I can use them in hashmaps and the likeget_buttons_pressed
or other unifications so that we don't need to poll all buttons with theget_mouse_down
functionThe text was updated successfully, but these errors were encountered: