--- a/tests/wiimote/plc.xml Wed May 29 11:08:00 2013 +0900
+++ b/tests/wiimote/plc.xml Wed May 29 11:09:05 2013 +0900
@@ -8,7 +8,7 @@
creationDateTime="2012-09-12T23:30:19"/>
<contentHeader name="Unnamed"
- modificationDateTime="2013-05-16T17:17:49">
+ modificationDateTime="2013-05-28T18:28:14"> @@ -37,14 +37,29 @@
@@ -61,12 +76,27 @@
<variable name="WiiNunchuckButtons">
<variable name="WiiButtons">
+ <variable name="WiiNunchuckAccX"> + <variable name="WiiNunchuckAccY"> + <variable name="WiiNunchuckAccZ"> @@ -145,6 +175,60 @@
<expression>b0</expression>
+ <inVariable localId="11" height="30" width="135"> + <position x="135" y="295"/> + <relPosition x="135" y="15"/> + <expression>WiiNunchuckAccX</expression> + <inVariable localId="12" height="30" width="135"> + <position x="135" y="340"/> + <relPosition x="135" y="15"/> + <expression>WiiNunchuckAccY</expression> + <inVariable localId="13" height="30" width="130"> + <position x="140" y="385"/> + <relPosition x="130" y="15"/> + <expression>WiiNunchuckAccZ</expression> + <outVariable localId="14" height="30" width="20"> + <position x="345" y="295"/> + <relPosition x="0" y="15"/> + <connection refLocalId="11"> + <position x="345" y="310"/> + <position x="270" y="310"/> + <expression>a</expression> + <outVariable localId="15" height="30" width="20"> + <position x="345" y="340"/> + <relPosition x="0" y="15"/> + <connection refLocalId="12"> + <position x="345" y="355"/> + <position x="270" y="355"/> + <expression>b</expression> + <outVariable localId="16" height="30" width="20"> + <position x="345" y="385"/> + <relPosition x="0" y="15"/> + <connection refLocalId="13"> + <position x="345" y="400"/> + <position x="270" y="400"/> + <expression>c</expression> --- a/tests/wiimote/py_ext_0@py_ext/pyfile.xml Wed May 29 11:08:00 2013 +0900
+++ b/tests/wiimote/py_ext_0@py_ext/pyfile.xml Wed May 29 11:09:05 2013 +0900
@@ -3,8 +3,11 @@
<variable name="WiiNunchuckStickX" type="INT"/>
<variable name="WiiNunchuckStickY" type="INT"/>
- <variable name="WiiNunchuckButtons" type="BYTE"/>
- <variable name="WiiButtons" type="BYTE"/>
+ <variable name="WiiNunchuckAccX" type="INT"/> + <variable name="WiiNunchuckAccY" type="INT"/> + <variable name="WiiNunchuckAccZ" type="INT"/> + <variable name="WiiNunchuckButtons" type="WORD"/> + <variable name="WiiButtons" type="WORD"/> @@ -24,6 +27,9 @@
PLCGlobals.WiiNunchuckButtons = nunchuck['buttons']
+ PLCGlobals.WiiNunchuckAccX = nunchuck['acc'][cwiid.X] + PLCGlobals.WiiNunchuckAccY = nunchuck['acc'][cwiid.Y] + PLCGlobals.WiiNunchuckAccZ = nunchuck['acc'][cwiid.Z] (PLCGlobals.WiiNunchuckStickX,