TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Libretro: no cursor despite `mouse_cursor = "arrow"`

Open Des-Nerger opened this issue 1 year ago • 4 comments

I've done some tests and now suspect it's the whole drawing mechanism inside void tic80_libretro_mousecursor(...) of tic80_libretro.c that isn't working:

tic_mem* tic = (tic_mem*)state->tic;
...
switch (cursortype) {
...
	case MOUSE_CURSOR_ARROW:
	        // Seems to draw into where nothing is seen.
	        // Even though mouseX, mouseY and mouseCursorColor looked correct.
	        // Perhaps it's the var "tic" that is to blame here.
		tic_api_tri(tic, state->mouseX, state->mouseY, state->mouseX + 3, state->mouseY, state->mouseX, state->mouseY + 3, state->mouseCursorColor);
		tic_api_line(tic, state->mouseX + 3, state->mouseY, state->mouseX, state->mouseY + 3, tic_color_black);

Des-Nerger avatar Feb 28 '23 12:02 Des-Nerger