Posts: 152
Threads: 20
Joined: Jul 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
i have a funny little problem. i bought myself a gamer mouse (gigabyte) and of course it has more than just 5 buttons. but the problem is i can't bind all of them. ok left, right click and wheel is working perfectly whilw my other 2 buttons can't be both binded. I've managed to bind 1 (mouse8) but when i bind mouse 7 (bind "MOUSE7" echo test) i dont get any result out. it is also not mouse 9 since the game says there isn't any mouse9 key. but that button (which can not be binded) IS working outside the game (mozilla, UrT...)
i'm lookin forward for replies :)
Posts: 890
Threads: 16
Joined: Jun 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
15 Dec 11, 03:37PM
(This post was last modified: 15 Dec 11, 03:47PM by Mael.)
Just for fun try binding MOUSE4/MOUSE8.
Edit: I see you bound MOUSE8 and it worked? MOUSE4 or MOUSE16 should do it I would think. My guess is mouse buttons work similar to modifier keys(Shift, Alt, Control). Each of these keys is assigned a value(As are all keyboard keys); Shift is 1, Control is 2, and Alt is 4. The sum of the values of each key pressed produces a single value that represents the states of each button.
0 - No button is pressed
1 - Shift
2 - Control
3 - Shift+Control
4 - Alt
5 - Shift+Alt
6 - Control+Alt
7 - Shift+Control+Alt
8 - Hankaku(IIRC)
If mouse buttons work similarly, binding MOUSE7 would actually bind something like MOUSE1+MOUSE2+MOUSE4; you would have to press those three keys simultaneously for it to work.
Posts: 3,780
Threads: 33
Joined: Jun 2010
Thanks: 0
Given 7 thank(s) in 6 post(s)
Well, the keys are all mapped up to MOUSE8...
I would imagine MOUSE9 would be
[cubescript]
keymap -9 MOUSE9
[/cubescript]
And so on.
Posts: 152
Threads: 20
Joined: Jul 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
15 Dec 11, 09:56PM
(This post was last modified: 15 Dec 11, 10:00PM by Milandrag.)
EDITED: i just tried V-Man's suggestion and now it works... appereantly the nonworking key is mouse9 and the mouse7 is the dpi change button :)
thanks v-man :) (clap) (bow)
Posts: 3,780
Threads: 33
Joined: Jun 2010
Thanks: 0
Given 7 thank(s) in 6 post(s)
I still want you to try Mael's experiment and tell us how it goes.
Posts: 152
Threads: 20
Joined: Jul 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
nope i couldn't get to work what mael suggested :(
Posts: 152
Threads: 20
Joined: Jul 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
your assumption is wrong....
ubuntu 11.10 with gnome3