Skip to content
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

[Feature Request] Support other mouse buttons #818

Open
MisustinIvan opened this issue Jul 9, 2024 · 2 comments
Open

[Feature Request] Support other mouse buttons #818

MisustinIvan opened this issue Jul 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@MisustinIvan
Copy link
Contributor

Related problem

No response

Your request

Currently there is only left, right and middle mouse button. It would be nice to have support for the other buttons.

Alternative solution

No response

Additional context

No response

@MisustinIvan MisustinIvan added the enhancement New feature or request label Jul 9, 2024
@MisustinIvan
Copy link
Contributor Author

If someone points me in the right direction, I could work on this.

@gucio321
Copy link
Collaborator

I've just checked and it seems that Dear ImGui does not support other mouse buttons...

from cimgui_enums.go:

// Identify a mouse button.
// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience.
// original name: ImGuiMouseButton_
type MouseButton int32

const (
        MouseButtonLeft   MouseButton = 0
        MouseButtonRight  MouseButton = 1
        MouseButtonMiddle MouseButton = 2
        MouseButtonCOUNT  MouseButton = 5
)

Maybe, according to comment, other buttons will just have greater numbers?

tbh, first of all you'd need to check in Dear ImGui's code first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants