示例#1
0
 private static void MouseClick(NunchukState nunchukState)
 {
     if (!state.NunchukState.Z && nunchukState.Z)
     {
         MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftDown | MouseOperations.MouseEventFlags.LeftUp);
     }
 }
示例#2
0
        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);
            }
        }