示例#1
0
        private static ButtonState SelectState(MouseState ms, MKeys k)
        {
            switch (k)
            {
            case MKeys.Left:
                return(ms.LeftButton);

            case MKeys.Right:
                return(ms.RightButton);

            default:
                return(ms.MiddleButton);
            }
        }
示例#2
0
 public static bool IsBeingHeldUp(MKeys k) => MIsBeingHeldUp[k]();
示例#3
0
 public static bool IsBeingHeldDown(MKeys k) => MIsBeingHeldDown[k]();
示例#4
0
 public static bool IsBeingReleased(MKeys k) => MIsBeingReleased[k]();
示例#5
0
 public static bool IsBeingPressed(MKeys k) => MIsBeingPressed[k]();
示例#6
0
 public static bool IsPKUp(MKeys k) => MPIsReleased[k]();
示例#7
0
 public static bool IsPKDown(MKeys k) => MPIsPressed[k]();
示例#8
0
 public static bool IsCKUp(MKeys k) => MCIsPressed[k]();