private static void MouseClick(NunchukState nunchukState) { if (!state.NunchukState.Z && nunchukState.Z) { MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftDown | MouseOperations.MouseEventFlags.LeftUp); } }
private static void MouseClick(ButtonState buttonState) { if (!state.ButtonState.A && buttonState.A) { MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftDown | MouseOperations.MouseEventFlags.LeftUp); } if (!state.ButtonState.B && buttonState.B) { MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.RightDown | MouseOperations.MouseEventFlags.RightUp); } }