If you have a spare Nintendo Wii remote with the Motion Plus add-on, you can use it to control your Windows PC from across the room. Here’s how to get it working in a couple of easy steps.

如果您有带Motion Plus附加组件的备用Nintendo Wii遥控器,则可以使用它在整个房间内控制Windows PC。 这是通过几个简单的步骤使其运行的方法。

Using the Wii’s Motion Plus add-on and some software, you can easily control presentations or your home theater PC.  You will need:

使用Wii的Motion Plus附加组件和某些软件,您可以轻松控制演示文稿或家庭影院PC。 你会需要:

  1. A Wii remote (obviously) Wii遥控器(显然)
  2. The Motion Plus add-on Motion Plus附加组件
  3. Windows XP, Vista, or 7 Windows XP,Vista或7
  4. A Bluetooth dongle for your PC 适用于PC的蓝牙加密狗
  5. The WIDCOMM Bluetooth stack (from Broadcom’s website) (version 6.2.1.100 at the time of writing)

    WIDCOMM蓝牙堆栈(来自Broadcom的网站) (在撰写本文时为版本6.2.1.100)

  6. GlovePIE with Emotiv support (from the GlovePIE Project website) (version 0.43 at the time of writing)

    在Emotiv支持下的GlovePIE(来自GlovePIE Project网站) (撰写本文时为0.43版)

软体 (The Software)

The WIDCOMM Bluetooth stack allows you to pair your computer with the Wii remote without using a code.  That’s the key piece to getting it working, and although the BlueSoleil stack can do this as well if not better, it’s not free.  After the pairing is complete, the GlovePIE application will run a script that takes your controller input and translate that into mouse emulation.  With some tweaking, you can extend the functionality of your makeshift mouse and even use it as a joystick/gamepad.

WIDCOMM蓝牙堆栈使您无需使用代码即可将计算机与Wii遥控器配对 这是使其正常工作的关键,尽管BlueSoleil堆栈即使不是更好也可以做到这一点,但它不是免费的。 配对完成后,GlovePIE应用程序将运行一个脚本,该脚本接受您的控制器输入并将其转换为鼠标仿真。 通过一些调整,您可以扩展临时鼠标的功能,甚至可以将其用作操纵杆/游戏手柄。

硬体 (The Hardware)

You need a compatible Bluetooth dongle to communicate with your Wii remote, and they can be found cheaply online if your computer doesn’t have one built-in already.  Using an alternative Bluetooth stack actually allows a wider compatibility with adapters, a very useful side-effect.  You can even use one that’s meant for wireless headphones or the like, as long as it uses Bluetooth.

您需要一个兼容的蓝牙加密狗才能与Wii遥控器进行通信,如果您的计算机尚没有内置的加密狗,可以在网上便宜地找到它们。 实际上,使用备用蓝牙堆栈可以实现与适配器的广泛兼容性,这是非常有用的副作用。 您甚至可以使用无线耳机之类的耳机,只要它使用蓝牙即可。

Strictly speaking, you don’t need the Motion Plus add-on.  GlovePIE can take Wii remote input and use the pitch and yaw to move the cursor, but this doesn’t work very fluidly.  The controller can also use two IR light sources as an absolute reference point, which is how it works with the Wii itself, and get a more fluid movement.  You can even use two candles to get the same effect.  What makes the Motion Plus approach worthwhile is that you get a more fluid movement than using just the controller, while simultaneously not having to rely on the IR sources.  This makes it ideal for a quick setup for presentations, or when you’ve got daylight streaming in on your home theater setup.

严格来说,您不需要Motion Plus附加组件。 GlovePIE可以接受Wii远程输入,并使用音高和偏航来移动光标,但这并不是很流畅。 控制器还可以使用两个IR光源作为绝对参考点,这就是它与Wii本身一起工作的方式,并获得了更加流畅的运动。 您甚至可以使用两支蜡烛来获得相同的效果。 使Motion Plus方法值得的是,与仅使用控制器相比,您获得了更多的流畅运动,同时又不必依赖红外光源。 这使得它非常适合用于演示文稿的快速设置,或者在家庭影院设置中有日光流进时。

安装软件 (Installing the Software)

First, get your Bluetooth dongle plugged in and enabled.  This will vary from computer to computer and dongle to dongle, but you can skip installing drivers and extra software if you only want to use it for this, as the WIDCOMM stack includes its own drivers.

首先,插入并启用蓝牙加密狗。 这将因计算机的不同而有所不同,从软件狗到软件狗也有所不同,但是如果您只想为此使用驱动程序和其他软件,则可以跳过安装驱动程序和其他软件的步骤,因为WIDCOMM堆栈包括其自己的驱动程序。

Next, download the WIDCOMM Bluetooth stack and double-click to install it.  Accept the license agreement and agree when it prompts you to install software.

接下来,下载WIDCOMM蓝牙堆栈并双击以安装它。 接受许可协议并在提示您安装软件时同意。

After the installation is finished, you should see a Bluetooth icon in your system tray, like so:

安装完成后,您应该在系统托盘中看到一个蓝牙图标,如下所示:

That takes care of half of the software.  Next, download GlovePIE (with Emotiv support) and unzip the file.  Inside the folder you’ve just created, you’ll see a file called GlovePIE, which is what we’ll use to script the inputs.

这将处理一半的软件。 接下来,下载GlovePIE(具有Emotiv支持)并解压缩文件。 在刚创建的文件夹中,您会看到一个名为GlovePIE的文件,这是我们用来编写输入脚本的文件。

连接Wii遥控器 (Connecting the Wii Remote)

Right-click on the system tray icon, and go to “Add a Device.”

右键单击系统任务栏图标,然后转到“添加设备”。

Next up, you’ll see a screen that says it’s searching for Bluetooth-enabled devices.  Hit the 1 + 2 buttons on your Wii remote now.

接下来,您将看到一个屏幕,显示正在搜索支持蓝牙的设备。 立即点击Wii遥控器上的1 + 2按钮。

You’ll see an input device named “Nintendo RVL-CNT-01” pop up in the window.  Select it and hit Next.

您会在窗口中看到一个名为“ Nintendo RVL-CNT-01”的输入设备。 选择它,然后单击下一步。

In the next pane, you’ll be asked how you’d like to pair with the device.  Choose “Pair without using a code.”

在下一个窗格中,将询问您如何与设备配对。 选择“无需使用代码即可配对”。

You should then see a screen that says it’s been paired and Windows is installing the necessary drivers for the device.

然后,您应该看到一个屏幕,上面显示已配对,并且Windows正在为设备安装必要的驱动程序。

GlovePIE设置 (GlovePIE Setup)

Open up GlovePIE with a quick double-click, and hit “Yes” at the security prompt.  You’ll see a complicated looking window like this:

快速双击打开GlovePIE,然后在安全提示下单击“是”。 您会看到一个看起来很复杂的窗口,如下所示:

Don’t let that intimidate you!  Just go to File > Open, navigate into your GlovePIE folder, and head into the “WiimoteScripts” folder.

不要让那吓到你! 只需转到“文件”>“打开”,导航到您的GlovePIE文件夹,然后转到“ WiimoteScripts”文件夹。

Choose the “lednerg WiiMotion Plus Mouse.PIE” script, and click Open.  You’ll see the main GlovePIE window displaying the script.

选择“ lednerg WiiMotion Plus Mouse.PIE”脚本,然后单击“打开”。 您将看到GlovePIE主窗口显示该脚本。

Click on the “Run” button to execute the script.  You should see your Wii remote’s LEDs change configuration, from 1 and 4 being lit, to 2 and 3 being lit, and finally, only 1 will be lit.

单击“运行”按钮执行脚本。 您应该看到Wii遥控器的LED更改配置,从1和4点亮到2和3点亮,最后只有1点亮。

If you see a little sign next to the “Run” button that says “Motion Plus not detected!” just click “Stop,” make sure it’s inserted properly into the Wii remote, and try again.  It may take one or two tries but soon it’ll be properly interfacing with GlovePIE.

如果您在“运行”按钮旁边看到一个小标志,上面写着“未检测到Motion Plus!” 只需单击“停止”,确保将其正确插入Wii遥控器,然后重试。 可能需要一两次尝试,但很快它将与GlovePIE正确连接。

使用陀螺仪鼠标 (Using Your Gyroscopic Mouse)

The “B” button on the bottom of the controller enables the cursor to move.  If you let go of it and reposition the controller, when you hit B next, it will continue holding the cursor from that position.  The movement sort of like using a touchpad on a laptop, where holding “B” is like having your finger touch the pad.  Sometimes, you’ve moved too far on the pad and need to lift your finger and move it to continue pushing the cursor.

控制器底部的“ B”按钮使光标移动。 如果放开它并重新定位控制器,则当下次按下B时,它将继续从该位置保持光标。 动作就像在笔记本电脑上使用触摸板一样,按住“ B”就像是用手指触摸触摸板一样。 有时,您在垫板上的移动距离过长,需要抬起手指并移动它才能继续按光标。

The “A” button acts as a left-click, the “Plus” button acts as a right-click, and “Down” on the directional pad acts as a middle-click.  The buttons work just like mouse buttons; they click when you push down on the button and unclick when you let go.

“ A”按钮充当左键单击,“ Plus”按钮充当右键单击,方向盘上的“ Down”充当中键单击。 这些按钮的工作方式类似于鼠标按钮。 当您按下按钮时它们会单击,放开时它们会单击取消。

Almost happy with the script, I’ve ended up tweaking it to my favor.  After the first block of text, you can insert the following lines:

我几乎对脚本感到满意,但最终对其进行了调整,使其对我有利。 在第一段文本之后,您可以插入以下行:

mouse.WheelUp = wiimote.Onemouse.WheelDown = wiimote.Two

mouse.WheelUp = wiimote.Onemouse.WheelDown = wiimote.Two

It should look like this:

它看起来应该像这样:

When this is run, you’ll get the added benefit of being able to use the 1 and 2 buttons to scroll up and down, respectively.  If you want to disconnect your controller, hold the power button until the LEDs turn off, and to reconnect, just hold down the 1 + 2 buttons to auto-pair with your PC.

运行此命令时,您将获得额外的好处,即能够分别使用1和2按钮上下滚动。 如果要断开控制器的连接,请按住电源按钮直到LED熄灭,然后重新连接,只需按住1 + 2按钮即可与PC自动配对。

Come up with clever uses of your own, or have a favorite GlovePIE script?  Be sure to share with us in the comments.

想出自己的聪明用法,还是喜欢一个GlovePIE脚本? 请务必在评论中与我们分享。

翻译自: https://www.howtogeek.com/howto/35470/how-to-use-your-wii-remote-as-a-gyroscopic-mouse/

如何将Wii遥控器用作陀螺仪鼠标相关推荐

  1. 安卓TV开发(九) Android模拟事件 遥控器变身成鼠标来操作TV

    本文出处:http://blog.csdn.net/sk719887916/article/details/40348853,作者:skay      阅读此文建议先阅读 安卓Tv开发(二)移动智能电 ...

  2. Android 手机遥控器添加模拟鼠标功能

    手机遥控器要求有模拟鼠标功能,之前别人做的模拟鼠标是用service加上自己画的图标来实现的,不能像真正鼠标一样方便,而且实现比较难.网上查找资料发现可以通过UInput来实现这个功能. Uinput ...

  3. sudo dolphin_如何使用Dolphin在PC上玩Wii和GameCube游戏

    sudo dolphin Ever wish you could play Wii and GameCube games on your PC? Just like your favorite ret ...

  4. 遥控器从红外线向RF发展

    索尼公司业务执行董事.SVP电视业务本部长福田隆志表示:"遥控器的通信方式从红外线改为RF以后,人们在使用遥控器时就不用再考虑电视的位置和遥控器的指向了." 很长时间以来,电视遥控 ...

  5. 鼠标和按键在android 上的识别和区别

    引子:  拿到一个蓝牙遥控器,连上后,按确认(OK)键的时候显示鼠标.导致遥控器不能正常使用. 测试过程: 1 换此蓝牙遥控器在其他产品上,并没出现鼠标.(由此richard 帮忙找到rk 代码加的东 ...

  6. android如何编程红外遥控,全志A20[android教程]-红外遥控器调试

    第1章 前言 要在树莓派3 (A20)android系统上实现红外遥控器,因为super3上有红外接收头,所以可以直接支持红外遥控器,可以把树莓派3应用到家庭控制当中.当作网络机顶盒用 树莓派3的 ...

  7. 【手势交互】10. Wii Remote

    Wii Remote(昵称:Wiimote.Wii遥控器)是任天堂游戏主机Wii的主要控制器.2005年9月在东京电玩展上发布,Wii Remote的主要特色是动作侦测,玩者可以透过移动和指向来与电视 ...

  8. 如何使用电视或遥控器来控制Apple TV

    The Apple TV remote works well enough but many people detest having multiple remote controls and pre ...

  9. 如何为家用游戏和DVD播放破解Wii

    Want to play emulated games on your Wii?  How about DVD playback?  Here's how to use the SmashStack ...

最新文章

  1. Echache整合Spring缓存实例讲解
  2. Python修行之字符串(一):连接、切割、大小写、排版
  3. 5.Boost之“资源申请即初始化” RAII
  4. netcore一键nssm发布为windows服务
  5. 网页html 图片横向摆放,css实现多张图片横向居中显示的方法
  6. 解决 VUE: 本地运行和服务器上运行样式不一致,run、build 运行时样式有出入
  7. python-web自动化-元素定位
  8. 中文HanLp分词入门
  9. ThreadPool中变量ctl的分析
  10. 你为什么当不了高管?几张图看懂高级经理人与普通管理者的区别
  11. 一文读懂全球CTRM市场的前世今生
  12. 计算机网络自顶向下方法 笔记 第一章:计算机网络和因特网
  13. 手工做迷宫_手工DIY好玩双人大型立体迷宫玩具
  14. LARS算法---十折交叉验证
  15. WIN10桌面美化(折腾)
  16. 嵌入式系统概述3-嵌入式系统的开发流程和学习基础、方法
  17. SQLMAP参数中文详解(看过来)!
  18. 微信邮箱格式是什么意思?为什么我们都在使用微信邮箱?
  19. 拥有数据报表模板,不再愁如何制作数据报表
  20. 战双帕弥什登入显示服务器错误,战双帕弥什无法登陆怎么办 进不了游戏解决方法...

热门文章

  1. MySQL索引和SQL调优手册
  2. 入门前端学习路线图【送书】
  3. GitLab 在多分支中的一个push
  4. OSChina 周日乱弹 —— 我叫张一条
  5. 深入理解javascript原型和闭包
  6. 系统架构师 项目经理 哪个更有前景_中央空调加地暖与五恒系统,哪个更省钱?...
  7. iOS开发 CGAffineTransform 让图片旋转, 旋转后获得图片旋转的角度
  8. LeetCode 581. 最短无序连续子数组(Shortest Unsorted Continuous Subarray)
  9. pycharm中如何正确配置pyqt5
  10. Python 项目实践三(Web应用程序)第四篇