BASIC

Author Topic: mouse cursor  (Read 3637 times)

Guest

  • Guest
mouse cursor
« on: 2004-Apr-04 »
Hello,

      The mouse works fine, except I can't see the cursor.  How can I display the cursor?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
mouse cursor
« Reply #1 on: 2004-Apr-05 »
Either draw a sprite or print somethins to the mouse location:

Code: GLBasic [Select]
LOADSPRITE "MyPointer.bmp", 12
start:
MOUSESTATE mx, my, b1, b2
SPRITE 12, mx, my
SHOWSCREEN
GOTO start
 

or:

Code: GLBasic [Select]
start:
MOUSESTATE mx, my, b1, b2
PRINT "X", mx, my
SHOWSCREEN
GOTO start
 

Have fun,
Gernot