最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

logitech - Lua: Toggling the primary click in G Hub doesn't work - Stack Overflow

programmeradmin0浏览0评论

My script in G Hub looks like the follows:

function OnEvent(event, arg)
    if (event == "G_PRESSED" and arg == 7) then
        if not IsMouseButtonPressed(1) then
            PressMouseButton(1);
            OutputLCDMessage("Button 1 toggle on.");
        else
            ReleaseMouseButton(1);
            OutputLCDMessage("Button 1 toggle off.");
        end
    end
end

However, it doesn't seem like anything happens when I press G7. Did I do anything wrong?

发布评论

评论列表(0)

  1. 暂无评论