Difference between revisions of "Wiimote"
Tuhoojabotti (talk | contribs) (→Programs you will need) |
Wiki.xmoto (talk | contribs) m (Reverted edits by Opofefemucu (Talk) to last revision by Redhot) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== Programs you will need == | == Programs you will need == | ||
− | You will need IVT Bluesoleil bluetooth | + | You will probably need IVT Bluesoleil bluetooth software, depending on your Bluetooth Adapter. |
*Get it!-[http://www.ivtcorporation.com/download/downloadfile/BlueSoleil_2.3_standard_Release_060728.zip Bluesoleil] | *Get it!-[http://www.ivtcorporation.com/download/downloadfile/BlueSoleil_2.3_standard_Release_060728.zip Bluesoleil] | ||
− | + | You will also need GlovePIE Programmable input emulator. | |
− | *Get it!-[http://carl.kenner.googlepages.com/ | + | *Get it!-[http://carl.kenner.googlepages.com/glovepie_download GlovePIE] |
− | Now we can start connecting your wiimote to your | + | Now we can start connecting your wiimote to your Windows PC. |
− | ==Connecting wiimote to your | + | ==Connecting wiimote to your Windows PC== |
− | Open IVT Bluesoleil left | + | Open IVT Bluesoleil by left clicking the System tray icon and choosing "Display". |
− | Press the Big orange ball (My device)then put your wiimote | + | Press the Big orange ball (My device) then put your wiimote in "discovery mode" by pressing buttons 1 and 2 simultaneously. Then wait and press the buttons again if the "discovery mode" (blinking of the LEDs) ends. Then when the wiimote has been found, it's name should be something like Nintendo RVL-CNT-01, left click the image of it and choose "Refresh Services" and put your wiimote in discovery mode again. When the connection has been made you can open GlovePIE. |
− | ==Scripting with | + | |
+ | ==Scripting with GlovePIE== | ||
The Getting started at Help->Getting Started is good. And after that you can take a look at the preliminary documentations at Help->Preliminary Documentations. | The Getting started at Help->Getting Started is good. And after that you can take a look at the preliminary documentations at Help->Preliminary Documentations. | ||
− | If you are lazy and | + | If you are lazy and want get to the action now, here's some basic code for playing x-moto with the D-Pad of a Wiimote, which you can modify and copy freely. |
The script: | The script: | ||
− | + | /*Wiimote script for X-Moto Version 0.1.0 | |
_________________ | _________________ | ||
| | | | | | ||
Line 27: | Line 28: | ||
Pad: | Pad: | ||
Up = Accelerate | Up = Accelerate | ||
− | + | Down = Brake | |
Left = Lift left wheel | Left = Lift left wheel | ||
− | + | Right = Lift right wheel | |
Buttons: | Buttons: | ||
A = Enter | A = Enter | ||
Line 37: | Line 38: | ||
2 = Accelerate (Too!) | 2 = Accelerate (Too!) | ||
B = Change direction | B = Change direction | ||
+ | |||
*/ | */ | ||
Line 81: | Line 83: | ||
endif | endif | ||
− | The | + | The LED script is copied from another open source script. |
==Enjoy== | ==Enjoy== | ||
− | + | Code your own scripts for other games (and other stuff) and check the script samples in the samples folder in the GlovePIE installation folder. |
Latest revision as of 11:21, 26 November 2010
Contents
Okay Let's Get working!
Programs you will need
You will probably need IVT Bluesoleil bluetooth software, depending on your Bluetooth Adapter.
- Get it!-Bluesoleil
You will also need GlovePIE Programmable input emulator.
- Get it!-GlovePIE
Now we can start connecting your wiimote to your Windows PC.
Connecting wiimote to your Windows PC
Open IVT Bluesoleil by left clicking the System tray icon and choosing "Display". Press the Big orange ball (My device) then put your wiimote in "discovery mode" by pressing buttons 1 and 2 simultaneously. Then wait and press the buttons again if the "discovery mode" (blinking of the LEDs) ends. Then when the wiimote has been found, it's name should be something like Nintendo RVL-CNT-01, left click the image of it and choose "Refresh Services" and put your wiimote in discovery mode again. When the connection has been made you can open GlovePIE.
Scripting with GlovePIE
The Getting started at Help->Getting Started is good. And after that you can take a look at the preliminary documentations at Help->Preliminary Documentations. If you are lazy and want get to the action now, here's some basic code for playing x-moto with the D-Pad of a Wiimote, which you can modify and copy freely.
The script:
/*Wiimote script for X-Moto Version 0.1.0 _________________ | | | Controls: | |_________________| ----------------------------------------------------------- Notice that the controls are designed for horizontal usage! ----------------------------------------------------------- Pad: Up = Accelerate Down = Brake Left = Lift left wheel Right = Lift right wheel Buttons: A = Enter + = Menu/Pause (ESC) Home = Windows 1 = Brake (Too!) 2 = Accelerate (Too!) B = Change direction */ //Buttons and matching keys keyboard.Up = wiimote.Two keyboard.Down = wiimote.One keyboard.Left = wiimote.Up keyboard.Right = wiimote.Down keyboard.Enter = wiimote.A keyboard.Escape = wiimote.Plus keyboard.Windows = wiimote.Home keyboard.Up = wiimote.Right keyboard.Down = wiimote.Left keyboard.Space = wiimote.B //LEDs look somewhat like KITT's grill from Knight Rider ;) if 0 = 0 then if var.kitt = 0 then wiimote.Leds = 1 endif if var.kitt = 1 then wiimote.Leds = 3 endif if var.kitt = 2 then wiimote.Leds = 6 endif if var.kitt = 3 then wiimote.Leds = 12 endif if var.kitt = 4 then wiimote.Leds = 8 endif if var.kitt = 5 then wiimote.Leds = 12 endif if var.kitt = 6 then wiimote.Leds = 6 endif if var.kitt = 7 then wiimote.Leds = 3 endif wait 200 ms var.kitt = (var.kitt + 1) % 8 endif
The LED script is copied from another open source script.
Enjoy
Code your own scripts for other games (and other stuff) and check the script samples in the samples folder in the GlovePIE installation folder.