コード例 #1
0
 public static void Initialize()
 {
     TouchPanel.EnabledGestures = GestureType.None;
     TouchPanel.DisplayHeight   = RPGGame.GetClientBounds().Height;
     TouchPanel.DisplayWidth    = RPGGame.GetClientBounds().Width;
     _useMouse = !TouchPanel.GetCapabilities().IsConnected;
 }
コード例 #2
0
 private static bool CursorInWindow()
 {
     return(RPGGame.GetClientBounds().Contains(_nowMouseState.Position + RPGGame.GetClientBounds().Location));
 }