Main forum > GLBasic - en

mouse cursor

(1/1)

Guest:
Hello,

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

Kitty Hello:
Either draw a sprite or print somethins to the mouse location:


--- Code: (glbasic) ---LOADSPRITE "MyPointer.bmp", 12
start:
MOUSESTATE mx, my, b1, b2
SPRITE 12, mx, my
SHOWSCREEN
GOTO start

--- End code ---

or:


--- Code: (glbasic) ---start:
MOUSESTATE mx, my, b1, b2
PRINT "X", mx, my
SHOWSCREEN
GOTO start

--- End code ---

Have fun,
Gernot

Navigation

[0] Message Index

Go to full version