Clicked

Clicked

294k Downloads

Support more than five mouse buttons

Dairyman opened this issue ยท 2 comments

commented

Is your feature request related to a problem?

Mouse buttons 6 and counting do not work on unit frames.

Describe the solution you'd like

Button 6 and etc to work on unit frames.

Additional context

Seems the mouse button handling here checks only to Button5

local function Keybinding_OnMouseDown(frame, button)
if button == "LeftButton" then
button = "BUTTON1"
elseif button == "RightButton" then
button = "BUTTON2"
elseif button == "MiddleButton" then
button = "BUTTON3"
elseif button == "Button4" then
button = "BUTTON4"
elseif button == "Button5" then
button = "BUTTON5"
end
Keybinding_OnKeyDown(frame, button)
end

commented

Interesting, which mouse do you have that has a mouse button 6? Can you confirm that it does work when using the standard keybind interface in esc->keybinds?

commented

A Logitech G700s which has 11 mouse buttons ๐Ÿ˜„ .
Works with standard keybinds and clique. If I change the value in the DB from Button6 to BUTTON6 it works.