theShrimp
01-21-2011, 04:27 PM
Hey there,
I just bought a new mouse, the Logitech G700.
It works pretty well under Ubuntu 11.04.
The mouse has following buttons:
All those work with HoN:
Leftclick
Rightclick
Middleclick
Wheelup
Wheeldown
Wheelleft (tilt)
Wheelright (tilt)
G4 (aka MouseX1 in HoN)
G5 (aka MouseX2 in HoN)
Those don't:
G6
G7
(G8 - G11 are used for DPI, profile change and battery status)
I would like to use G6 and G7 in HoN! So I decided to use "xbindkeys" (on a certain event it runs a command) in combination with "xvkbd" (this emulates keyboard presses) to map some keyboard-button-combinations to those two keys.
This works pretty well. I mapped the letter "k" to G7 and "l" to G7. That's my "~/.xbindkeysrc" config:
#G7 B11 front
"/usr/bin/X11/xvkbd -xsendevent -text "k""
m:0x0 + b:11
#G6 B10 back
"/usr/bin/X11/xvkbd -xsendevent -text "l""
m:0x0 + b:10
When I press G7 now in for example "gedit" it writes the letter "k". Working as intended.
My only problem is, all that stops working as soon as I maximize HoN! I can't bind "k" to an itemslot and use it with my mouse. I can't write the letter "k" into the chat with pressing the G7 button. Is there a workaround/fix avail? Maybe some "anticheat" machanism blocks it. idk
SHORT, what I try to do:
Map a keyboard-letter to a G# button -> press that G# button ingame -> do an action ingame using the redirected keyboard-button
Thanks for any respons and sorry for my bad english.
edit: There is an other tool called xdotool, works like xvkbd, it simulates keyboard presses. Doesn't work as well.
edit2: http://picfu.net/db2cea/original.png -- this is the G6 button event that happens when I press the button
edit3: This work when I play in window mode.
I just bought a new mouse, the Logitech G700.
It works pretty well under Ubuntu 11.04.
The mouse has following buttons:
All those work with HoN:
Leftclick
Rightclick
Middleclick
Wheelup
Wheeldown
Wheelleft (tilt)
Wheelright (tilt)
G4 (aka MouseX1 in HoN)
G5 (aka MouseX2 in HoN)
Those don't:
G6
G7
(G8 - G11 are used for DPI, profile change and battery status)
I would like to use G6 and G7 in HoN! So I decided to use "xbindkeys" (on a certain event it runs a command) in combination with "xvkbd" (this emulates keyboard presses) to map some keyboard-button-combinations to those two keys.
This works pretty well. I mapped the letter "k" to G7 and "l" to G7. That's my "~/.xbindkeysrc" config:
#G7 B11 front
"/usr/bin/X11/xvkbd -xsendevent -text "k""
m:0x0 + b:11
#G6 B10 back
"/usr/bin/X11/xvkbd -xsendevent -text "l""
m:0x0 + b:10
When I press G7 now in for example "gedit" it writes the letter "k". Working as intended.
My only problem is, all that stops working as soon as I maximize HoN! I can't bind "k" to an itemslot and use it with my mouse. I can't write the letter "k" into the chat with pressing the G7 button. Is there a workaround/fix avail? Maybe some "anticheat" machanism blocks it. idk
SHORT, what I try to do:
Map a keyboard-letter to a G# button -> press that G# button ingame -> do an action ingame using the redirected keyboard-button
Thanks for any respons and sorry for my bad english.
edit: There is an other tool called xdotool, works like xvkbd, it simulates keyboard presses. Doesn't work as well.
edit2: http://picfu.net/db2cea/original.png -- this is the G6 button event that happens when I press the button
edit3: This work when I play in window mode.