stbte_mouse_sdl function
if you're using SDL, call the next function for SDL_MOUSEMOTION, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_MOUSEWHEEL; the transformation lets you scale from SDL mouse coords to stb_tilemap_editor coords
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Pointer<stbte_tilemap>,
ffi.Pointer<ffi.Void>,
ffi.Float,
ffi.Float,
ffi.Int,
ffi.Int,
)
>()
external void stbte_mouse_sdl(
ffi.Pointer<stbte_tilemap> tm,
ffi.Pointer<ffi.Void> sdl_event,
double xscale,
double yscale,
int xoffset,
int yoffset,
);