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

add mouse support #23

Merged
merged 5 commits into from
Aug 25, 2022
Merged

add mouse support #23

merged 5 commits into from
Aug 25, 2022

Conversation

elringus
Copy link
Owner

Resolves #19.

@elringus elringus merged commit ad5eef6 into master Aug 25, 2022
@elringus elringus deleted the feat/mouse branch August 25, 2022 17:23
@eschewary
Copy link

Ok, thank you for your work. I actually need mouse buttons 4 and 5 to work too, I'm sorry I should have specified it. I did some digging after integrating your additions. These buttons are included in the RAWMOUSE structure documentation mentioned in my issue #19 as the 'RI_MOUSE_BUTTON_4' and 'RI_MOUSE_BUTTON_5'. They're defined, I guess together, as 0x020B (Down) and 0x020C (Up).

I added them into RawMouseState.cs:

image

but it's not functioning. Is there a way to add these buttons?

Also is there a way to use that whole 'typedef struct tagRAWMOUSE' from here? It looks like it already has separate definitions for XBUTTON1/XBUTTON2 down/up:

image

@elringus
Copy link
Owner Author

Here are the supported events: https://www.pinvoke.net/default.aspx/Constants/WM.html Both xbutton 1 and 2 are unfortunately mapped to a single event, so I'm not sure if it's possible to sample them individually. I've pushed 1.3 release with xbutton support.

@elringus elringus mentioned this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add raw mouse button input functionality
3 participants