Search the Community
Showing results for tags 'Cursor'.
-
Hi all! I have a custom Cursor class written in C++. The image (a *.tex file) is being drawn multiple times across the window as I move the mouse. How can I draw it only where the mouse is, and avoid it being drawn all over the place? I have this for drawing: context->SetBlendMode(Leadwerks::Blend::Alpha); context->DrawImage(cursorImage, (mousePosition.x - cursorOffset.x), (mousePosition.y - cursorOffset.y)); context->SetBlendMode(Leadwerks::Blend::Solid); I've attempted clearing the context - which resolves this issue - but other drawn images do not display, as the cursor is the last thing to be drawn. Many thanks
-
I've gotten my text entry function almost finished but I need to add a cursor to it which seems tricker than I first thought. When using Context:DrawText are there any special characters in the same way as ASCII control chars, things like blink or reverse or do I have to emulate them? Assuming the latter is there an easy way to get how many pixels a text stream took to be displayed or is there a way to effectively append more text in a second DrawText Command.