Example #1
0
 /**
  * Either show an existing cursor or load a new one.
  *
  * @param Graphic The image you want to use for the cursor.
  * @param Scale Change the size of the cursor. Default = 1, or native size. 2 = 2x as big, 0.5 =
  *     half size, etc.
  * @param XOffset The number of pixels between the mouse's screen position and the graphic's top
  *     left corner.
  * @param YOffset The number of pixels between the mouse's screen position and the graphic's top
  *     left corner.
  */
 public void show(String Graphic, float Scale, int XOffset, int YOffset) {
   _cursorContainer.visible = true;
   if (Graphic != null) load(Graphic, Scale, XOffset, YOffset);
   else if (_cursor == null) load();
 }
Example #2
0
 /** Hides the mouse cursor */
 public void hide() {
   _cursorContainer.visible = false;
 }