Skip to content
Myr

Update stb_tilemap_editor.h

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sherjil Ozair · committed by GitHub · parent a20ccd4 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:stb_tilemap_editor.h+3 added-1 removed
394 unmodified lines
395//396// user input397//398399// if you're using SDL, call the next function for SDL_MOUSEMOVE, SDL_MOUSEBUTTON, SDL_MOUSEWHEEL;399// if you're using SDL, call the next function for SDL_MOUSEMOTION, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_MOUSEWHEEL;400// the transformation lets you scale from SDL mouse coords to stb_tilemap_editor coords401extern void stbte_mouse_sdl(stbte_tilemap *tm, const void *sdl_event, float xscale, float yscale, int xoffset, int yoffset);402403// otherwise, hook these up explicitly:404extern void stbte_mouse_move(stbte_tilemap *tm, int x, int y, int shifted, int scrollkey);405extern void stbte_mouse_button(stbte_tilemap *tm, int x, int y, int right, int down, int shifted, int scrollkey);406extern void stbte_mouse_wheel(stbte_tilemap *tm, int x, int y, int vscroll);407408// note: at the moment, mouse wheel events (SDL_MOUSEWHEEL) are ignored.409410// for keyboard, define your own mapping from keys to the following actions.411// this is totally optional, as all features are accessible with the mouse412enum stbte_action413{
3761 unmodified lines