Simulate mouse click for side buttons
c#, c++, mouse
Solution
`mouse4` and `mouse5` in windows are named `xbutton1` and `xbutton2`
You can use these:
mouse_event(MOUSEEVENTF_XDOWN, NULL, NULL, XBUTTON1, NULL);
mouse_event(MOUSEEVENTF_XDOWN, NULL, NULL, XBUTTON2, NULL);
mouse_event(MOUSEEVENTF_XUP, NULL, NULL, XBUTTON1, NULL);
mouse_event(MOUSEEVENTF_XUP, NULL, NULL, XBUTTON2, NULL);
Problem
I am aware of how to use mouse_event to simulate a mouse click for the left or right buttons. What I would like to know is if this function or another in C#/C++ allows you to simulate the mouse4 or mouse5 buttons that gaming mice have?