Ask Your Question
2

What is the process for activating a function by simultaneously pressing the right and left buttons using LUA with Logitech Gaming Software?

asked 2021-12-10 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-17 08:00:00 +0000

woof gravatar image

To activate a function by simultaneously pressing the right and left buttons using LUA with Logitech Gaming Software, you can follow these steps:

  1. Open Logitech Gaming Software and click on the gear icon on the top right corner to open the settings.

  2. Click on the 'Scripting' tab and select the profile you want to edit.

  3. In the Lua script editor, create a function that will be called when both right and left buttons are pressed simultaneously. For example:

function OnComboPress() -- code here end

  1. Use the 'OnEvent' function to detect when both buttons are pressed. For example:

function OnEvent(event, arg) if event == "MOUSEBUTTONPRESSED" and arg == 1 then pressedleft = true elseif event == "MOUSEBUTTONPRESSED" and arg == 2 then pressedright = true elseif event == "MOUSEBUTTONRELEASED" and arg == 1 then pressedleft = false elseif event == "MOUSEBUTTONRELEASED" and arg == 2 then pressedright = false end

if pressedleft and pressedright then OnComboPress() end end

  1. Save your Lua script and assign it to your desired button in your Logitech Gaming Software profile.

  2. Test the function by simultaneously pressing the right and left buttons on your mouse. The 'OnComboPress' function should be executed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-10 11:00:00 +0000

Seen: 11 times

Last updated: Apr 17 '21