Exemplo n.º 1
0
        public bool IsNunchuckButtonPressed(NunchuckButtons nunchuckButtons)
        {
            UInt16 value = (UInt16)nunchuckButtons;
            UInt16 orig  = (UInt16)Nunchuck.Buttons;

            return((orig & value) == value);
        }
Exemplo n.º 2
0
 public bool button_down(NunchuckButtons b)
 {
     return(data.IsNunchuckButtonPressed(b));
 }
Exemplo n.º 3
0
 public bool button_down(NunchuckButtons b)
 {
     return data.IsNunchuckButtonPressed(b);
 }
Exemplo n.º 4
0
 public bool IsNunchuckButtonPressed(NunchuckButtons nunchuckButtons)
 {
     UInt16 value = (UInt16)nunchuckButtons;
     return (data.nunchuck.buttons & value) == value;
 }
        public bool IsNunchuckButtonPressed(NunchuckButtons nunchuckButtons)
        {
            UInt16 value = (UInt16)nunchuckButtons;

            return((data.nunchuck.buttons & value) == value);
        }