mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
invslider fixup
This commit is contained in:
parent
9ab7bfeaae
commit
5c507e58fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user