Difference between revisions of "Wiimote"

From X-Moto
Jump to: navigation, search
(Programs you will need)
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 sofware
+
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]
And you will need GlovePIE Programmable input emulator
+
You will also need GlovePIE Programmable input emulator.
*Get it!-[http://carl.kenner.googlepages.com/GlovePIE024.zip GlovePIE]
+
*Get it!-[http://carl.kenner.googlepages.com/glovepie_download GlovePIE]
Now we can start connecting your wiimote to your Win-PC
+
Now we can start connecting your wiimote to your Windows PC.
  
==Connecting wiimote to your Win-PC==
+
==Connecting wiimote to your Windows PC==
Open IVT Bluesoleil left click the System tray icon and choose "Display".
+
Open IVT Bluesoleil by left clicking the System tray icon and choosing "Display".
Press the Big orange ball (My device)then put your wiimote to "discovery mode" by pressing butoons: 1 and 2 simultaneously. Then wait and repeat pressing the buttons if the "discovery mode" ends. Then when the wiimote has been found it's name is something like Nintendo RVL-CNT-01 click left click the image of it and choose "Refresh Services" and put your wiimote to discovery mode again. When The Connection has been made then you can open Glove PIE.
+
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 PIE==
+
 
 +
==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 wanna get to the action now. Heres basic code for playing x-moto with Wiimote you can modify it and copy it freely
+
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
+
/*Wiimote script for X-Moto Version 0.1.0
 
   _________________
 
   _________________
 
  |                |
 
  |                |
Line 27: Line 28:
 
  Pad:
 
  Pad:
 
  Up = Accelerate
 
  Up = Accelerate
  down = Brake
+
  Down = Brake
 
  Left = Lift left wheel
 
  Left = Lift left wheel
  right = Lifht right 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 Led script is copied from another script that is opensourcecode too.
+
The LED script is copied from another open source script.
  
 
==Enjoy==
 
==Enjoy==
Do your own scripts for other things and games check the script samples at the folder ?:\?????????\????????\GlovePIE\
+
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

Okay Let's Get working!

Programs you will need

You will probably need IVT Bluesoleil bluetooth software, depending on your Bluetooth Adapter.

You will also need GlovePIE Programmable input emulator.

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.