1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

invslider fixup

This commit is contained in:
Zeno Rogue 2022-10-21 18:49:33 +02:00
parent 9ab7bfeaae
commit 5c507e58fd

View File

@ -26,6 +26,7 @@ EX bool holdmouse;
EX int getcstat, lgetcstat;
EX ld getcshift;
EX bool inslider;
EX bool invslider;
EX int slider_x;
EX function <void(int sym, int uni)> keyhandler = [] (int sym, int uni) {};
@ -1113,6 +1114,7 @@ EX void handle_event(SDL_Event& ev) {
which_pointer = 0;
bool was_holdmouse = holdmouse;
holdmouse = false;
invslider = false;
bool down = ev.type == SDL_MOUSEBUTTONDOWN SDL12(, || ev.type == SDL_MOUSEWHEEL);
bool up = ev.type == SDL_MOUSEBUTTONUP;