尝试使用GlovePIE脚本通过Nunchuck控制鼠标。

huangapple go评论49阅读模式
英文:

trying to control mouse with nunchuck using glove pie script

问题

我一直在尝试使用GlovePIE控制我的Nunchuck,并希望将其用作鼠标。现在我的主要问题在于两个Nunchuck按钮,C和Z按钮,我希望的是:
Z按钮是左键单击
C按钮是右键单击
但我使用的代码似乎在我按下Nunchuck上的Z或C按钮时同时执行右键单击和左键单击,尽管脚本中没有这样的操作。

英文:

I have been trying to control my nunchuck using glove pie and I want to use it as a mouse. Now my main problem is with the 2 nunchuck buttons the C and Z buttons, what I want to happen is:
the z button would be left click
the c button would be right click
yet the code I used seemed to make whenever I press the Z or C button on the nunchuck it does both right click and left click at the same time despite that not being in the script

答案1

得分: 0

由于您没有包含任何代码,我无法了解您的确切问题。我建议您尝试使用以下代码:

Mouse.LeftButton = Wiimote.Nunchuk.CButton
Mouse.RightButton = Wiimote.Nunchuk.ZButton


<details>
<summary>英文:</summary>

Since you didnt include any code I can&#39;t know your exact problem. I would recommend you try using this:

Mouse.LeftButton = Wiimote.Nunchuk.CButton
Mouse.RightButton = Wiimote.Nunchuk.ZButton


</details>



huangapple
  • 本文由 发表于 2023年5月14日 14:36:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76246161.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定