public bool IsNunchuckButtonPressed(NunchuckButtons nunchuckButtons) { UInt16 value = (UInt16)nunchuckButtons; UInt16 orig = (UInt16)Nunchuck.Buttons; return((orig & value) == value); }
public bool button_down(NunchuckButtons b) { return(data.IsNunchuckButtonPressed(b)); }
public bool button_down(NunchuckButtons b) { return data.IsNunchuckButtonPressed(b); }
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); }