英文:
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't know your exact problem. I would recommend you try using this:
Mouse.LeftButton = Wiimote.Nunchuk.CButton
Mouse.RightButton = Wiimote.Nunchuk.ZButton
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论