如何將Wii遙控器用作陀螺儀鼠標

pair wiimote banner

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藍牙堆棧并雙擊以安裝它。 接受許可協議并在提示您安裝軟件時同意。

Installation screen
Software installation.

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

安裝完成后,您應該在系統托盤中看到一個藍牙圖標,如下所示:

System Tray Icon

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的文件,這是我們用來編寫輸入腳本的文件。

GlovePIE 0.43 with Emotiv, unzipped

連接Wii遙控器 (Connecting the Wii Remote)

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

右鍵單擊系統任務欄圖標,然后轉到“添加設備”。

sshot-63

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按鈕。

pair wiimote

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”的輸入設備。 選擇它,然后單擊下一步。

add input device "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.”

在下一個窗格中,將詢問您如何與設備配對。 選擇“無需使用代碼即可配對”。

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正在為設備安裝必要的驅動程序。

Device has successfully been added to this computer

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,然后在安全提示下單擊“是”。 您會看到一個看起來很復雜的窗口,如下所示:

GlovePIE bare

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

不要讓那嚇到你! 只需轉到“文件”>“打開”,導航到您的GlovePIE文件夾,然后轉到“ WiimoteScripts”文件夾。

choosing the script.

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主窗口顯示該腳本。

sshot-70

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點亮。

paired wii remote

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:

它看起來應該像這樣:

with the tweak

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/

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/279013.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279013.shtml
英文地址,請注明出處:http://en.pswp.cn/news/279013.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

68.iOS設備尺寸及型號代碼(iPhoneXR/XS)

所有設備型號官網地址: https://www.theiphonewiki.com/wiki/Models iPhone: 機型像素比例像素密度屏幕尺寸機型代碼發布日期iPhone 2g4803203:2163ppi3.5iPhone1,12008.01iPhone 3g4803203:2163ppi3.5iPhone1,22008.06iPhone 3gs4803203:2163ppi3.5iPhone2,12009.0…

php 自帶 web server 如何重寫 rewrite .htaccess

為什么80%的碼農都做不了架構師&#xff1f;>>> <?php // filename: route.php if (preg_match(/\.(?:png|jpg|jpeg|gif|css|js)$/, $_SERVER["REQUEST_URI"])) {return false; } else {include __DIR__ . /index.php; } 更好的寫法&#xff1a; &l…

oracle11g導入錯誤,oracle 11g導入到10g引起的錯誤

環境介紹老環境新環境操作系統&#xff1a;redhat5.8 64位redhat6.4 64位數據庫版本&#xff1a;oracle 10.2.0.4 64位oracle 11.2.0.4 64位背景&#xff1a;之前有一套老的數據庫rac是基于oracle10g搭建&#xff0c;跑了幾年了。現在前端應用程序準備升級&#xff0c;考慮到前…

sci-hub谷歌插件_Google Home Hub具有隱藏屏幕設置菜單

sci-hub谷歌插件You can adjust the brightness or set an alarm on your Google Home Hub with a voice command. But if you’re trying to be quiet or there’s a lot of background noise, you can also do these things using a hidden Screen Settings menu. 您可以使用…

二叉樹的前序、中序、后序遍歷與創建

#include <iostream> #include <string> #include <stack> using namespace std; struct node; typedef node *pNode; struct node { char data; pNode left, right; }; string line; string::iterator it; // 前序擴展序列建立二叉樹 void plan…

flex-2

1、 2、 justify&#xff1a;整理版面 3、 4、歸納 justify-content&#xff1a;flex-start&#xff08;默認&#xff09;、center、flex-end 下面還會提到剩下的兩種項目在主軸上對齊方式&#xff1a; space-between:兩端對齊&#xff08;項目間距離相等&#xff09; space-ar…

TextInput

TextInput /** TextInput 是一個允許用戶在應用中通過鍵盤輸入文本的基本組件* 本組件的屬性提供了多種特性的配置,如自動完成,自動大小寫,占位文字,鍵盤類型等* 常用:* placeholder 占位符* value 輸入框的值* password 是否密文輸入* editable 是否可編輯* retureKeyType …

如何使用oracle查詢,oracle 表查詢

Oracle 的 oracle 表查詢通過scott用戶下的表來演示如何使用select語句&#xff0c;接下來對emp、dept、salgrade表結構進行解說。emp 雇員表字段名稱 數據類型 是否為空 備注-------- ----------- -------- --------EMPNO NUMBER(4) 員工編…

火狐標簽在中間_在Firefox中保留未使用的標簽

火狐標簽在中間If you have a lot of content heavy webpages open in Firefox, it soon adds up on memory usage. The BarTab extension puts unused tabs on hold and keeps them unloaded until you are ready to access them. 如果您在Firefox中打開了大量內容繁重的網頁&…

[CQOI2012]模擬工廠 題解(搜索+貪心)

[CQOI2012]模擬工廠 題解(搜索貪心) 標簽&#xff1a;題解 閱讀體驗&#xff1a;https://zybuluo.com/Junlier/note/1327574 鏈接題目地址&#xff1a;洛谷P3161 BZOJ P2667 這個題練一練綜合思想還是不錯的。。。&#xff08;然而蒟蒻不會啊&#xff09; 做法 肯定是在能完成某…

上傳文件的input問題以及FormData特性

1.input中除了type"file"還要加上name"file"&#xff0c;否則$_FILES為空&#xff0c;input的name值就是為了區分每一個input的 2.var formdata new FormData($("#form")[0]); 或者var formdata new FormData(document.getElementById("f…

iphone手機備忘錄遷移_如何在iPhone和iPad上使用語音備忘錄

iphone手機備忘錄遷移Whether you’re recording a voice message as a reminder of that million dollar idea or catching a snippet of a new song you know you’ll forget, the iPhone and iPad’s Voice Memos app is the perfect tool. 無論您是錄制語音消息來提醒這一百…

php 執行文件tar打包,利用tar for windows對大量文件進行快速打包

近期將某些網站換服務器&#xff0c;由于網站數量巨大&#xff0c;加上附件和靜態頁&#xff0c;文件數量異常多&#xff0c;考慮先打包然后直接傳過去。起初嘗試用winrar打包&#xff0c;但是發現即使選擇”僅儲存”速度仍然慢到無法接受&#xff0c;后來想到了tar&#xff0c…

DDD~領域事件中使用分布式事務

對于一個聚合來說&#xff0c;它可能會被附加很多事件&#xff0c;這里我們叫它領域事務&#xff0c;因為一個聚會我們可以把它理解成一個領域&#xff0c;一個業務。對于領域事件不清楚的同學可以看看我的這篇文章《DDD~領域事件與事件總線》&#xff0c;里面有詳細的說明&…

如何在PowerPoint中制作打字機或命令行動畫

Adding quirky animations to your Microsoft PowerPoint presentation gives your slideshow a little extra life. Not only will adding a typewriter or command line animation entertain your audience, but it will also keep them focused on the text. 在您的Microsof…

oracle中spool卸數,數據卸載--spool的使用

&#xfeff;&#xfeff;引言在項目中&#xff0c;我們經常會遇到數據的卸載、裝載需求。卸載就是需要將數據從數據庫中導入到文本文件中的需求&#xff0c;這樣的方法有很多&#xff0c;比較常用的就是spool命令。裝載就是需要將數據從文本文件中導入到數據庫中。方法也有很多…

Objective-C中的@property

1.property是什么 Property是聲明屬性的語法&#xff0c;它可以快速方便的為實例變量創建存取器&#xff0c;并允許我們通過點語法使用存取器。 存取器&#xff08;accessor&#xff09;&#xff1a;指用于獲取和設置實例變量的方法。用于獲取實例變量值的存取器是getter&#…

Linux基礎命令---findfs

findfs 查找指定卷標或者UUID的文件系統對應的設備文件。findfs將搜索系統中的磁盤&#xff0c;尋找具有標簽匹配標簽或與UUID相等的文件系統。如果找到文件系統&#xff0c;文件系統的設備名稱將打印在stdout上。 此命令的適用范圍&#xff1a;RedHat、RHEL、Ubuntu、CentOS、…

canvas 平滑運動_什么是電視上的運動平滑?人們為什么討厭它?

canvas 平滑運動Willy Barton/Shutterstock.com威利巴頓/Shutterstock.comIf you’ve just bought a new TV, you might be wondering why everything you watch feels eerily sped up and smooth, like you’re watching a live broadcast all the time. You’re not imaginin…

linux guard什么進程,使用linux系統性能監控工具KSysguard監控遠端主機介紹

KDE System Guard默認的窗口前端圖形界面使用傳感器(sensors)獲得要顯示的信息。傳感器返回的可以是一個簡單的數值或更復雜的信息如表格。針對不同的信息類型都提供了一個或多個顯示界面。這些顯示界面被組織在多個工作表中&#xff0c;工作表可以獨立存儲和加載。KSysguard主…