Changes

Jump to navigation Jump to search
21 bytes removed ,  23:17, 29 June 2010
m
no edit summary
Line 15: Line 15:  
}}
 
}}
   −
It is a current "driver" for the Wii remote. Not many software packages can use a [[Wiimote]] input data so GlovePie works by taking input from one device (example Wiimote) and translates it into fake inputs from another input device (example mouse). It uses a language much like [http://en.wikipedia.org/wiki/BASIC_programming_language basic].
+
It is a current "driver" for the [[Wiimote]]. Not many software packages can use a Wiimote input data so GlovePIE works by taking input from one device (e.g. Wiimote) and translates it into fake inputs from another input device (e.g. mouse). It uses a language much like [http://en.wikipedia.org/wiki/BASIC_programming_language basic].
 
Example code:
 
Example code:
 
  Mouse.RightButton = Wiimote.A
 
  Mouse.RightButton = Wiimote.A
That code tells the computer this: when ever the Wii Remote's "A" button is pressed down it will have the same effect as pressing the right mouse button. This doesn't work in reverse. Here is a truth table for that code:
+
That code tells the computer this: when ever the Wiimote's "A" button is pressed down it will have the same effect as pressing the right mouse button. This doesn't work in reverse. Here is a truth table for that code:
 
<table Border=2>
 
<table Border=2>
 
<tr>
 
<tr>
 
<td><big><b>If...</b></big></td>
 
<td><big><b>If...</b></big></td>
<td><b>The computer thinks that "A" on the Wii Remote is pressed:</b></td>
+
<td><b>The computer thinks that "A" on the Wiimote is pressed:</b></td>
<td><b>The Wii Remote has "A" pressed:</b></td>
+
<td><b>The Wiimote has "A" pressed:</b></td>
 
<td><b>The computer thinks that the right mouse button is pressed:</b></td>
 
<td><b>The computer thinks that the right mouse button is pressed:</b></td>
 
<td><b>The right mouse button is pressed:</b></td>
 
<td><b>The right mouse button is pressed:</b></td>
 
</tr><tr>
 
</tr><tr>
<td><b>The Wii Remote has "A" pressed:</b></td>
+
<td><b>The Wiimote has "A" pressed:</b></td>
 
<td>True</td>
 
<td>True</td>
 
<td>True</td>
 
<td>True</td>
1,140

edits

Navigation menu