cursor
BlitzMax Forums/BlitzMax Programming/cursor
| ||
is it possible to replace the mouse cursor without using cls? |
| ||
Do you mean the command MoveMouse x,y? |
| ||
the code would normally be like this: I'm trying to do it without Cls. |
| ||
Ok. Now I understand. You want to use a own cursor image...(I suspect in Bmax standard, not with MaxGUI) I'm sorry but I think that you need a cls/flip to update the cursor movement without drawing it on screen. Or you could redraw all the screen ONLY when you move the mouse, but is the same story... |
| ||
maybe it can help you, but the correct way is to draw all the screen.HideMouse Xold=MouseX(); Yold=MouseY() GrabImage restoreback,Xold,Yold While Not KeyDown(key_escape) DrawImage restoreback,Xold,Yold '. '. '. '. Xold=MouseX(); Yold=MouseY() GrabImage restoreback,Xold,Yold DrawImage newcursor, Xold,Yold Flip Wend |