Contents
To reassign a button across all applications
- Using the mouse that you want to configure, start Microsoft Mouse and Keyboard Center.
- Select basic settings.
- Select the button that you want to reassign.
- In the list of the button that you want to reassign, select a command. To disable a button, select Disable this button.
To change how the mouse buttons work In the search box, type mouse, and then click Mouse. Click the Buttons tab, and then do any of the following: To swap the functions of the right and left mouse buttons, under Button configuration, select the Switch primary and secondary buttons check box.
How to remap XInput inputs to other keys?
Xinput detects the tablet and it’s keys being pressed. the problem is their default behavior isn’t any good. so I need a way (or tool) to remap these keys to something like ctrl+z instead of right click. every tool I saw works specifically for mouse/keyboard keys. So they couldn’t solve my problem.
How do I automatically remap buttons on my Mouse?
Now that you know its name, you can use xinput test to figure out which key to remap. Press the mouse buttons you want to map from and to, in order to get their indices. (For reference, 1, 2, and 3 “always” (i.e., usually) refer to the left, middle, and right buttons of a 3-button mouse.
How to set temporary session variable in XInput?
The first line here sets a temporary session variable equal to the ID of the mouse as reported by xinput. This is done by grep ing for the known name of the mouse in the report from xinput, then using sed to extract the ID number from that id=xxx token in the report.
Your mouse will have a different name; figuring that out is left as an exercise for the reader. While you still know the ID of the device in this session, find out how many buttons the input handler thinks your mouse has, by using xinput list deviceID. This may be different from the number of buttons that is apparent on the device.