From WiiLi
///2 buttons 3 functions
if (Wiimote1.One and Wiimote1.Two)then //if both buttoms are presed
Key.S= true //third function
else //if not
Key.S= false //disarm third function
wait 100ms /// dellay between pressing one buttom and pressing both
if (Wiimote1.One and not(Wiimote1.Two)) then // if after the delay the first byuttom is pressed, but not the second one
Key.A =true //function one
key.D = false //disarm function two
elseif (Wiimote1.Two and not(Wiimote1.One)) // if instead the second buttom is pressed, but not the first one
Key.A= false ///disarm function one
key.D = true //arm function two
else //if no buttom is pressed
Key.A= false //disarm function one
key.D = false //disarm function 2
endif
endif