1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 00:17:39 +00:00

line/circle tools added to the texture editor; grid color changing in texture editor

This commit is contained in:
Zeno Rogue
2018-01-04 12:25:02 +01:00
parent 454e1909d1
commit 3412a50b3d
6 changed files with 136 additions and 21 deletions

View File

@@ -663,6 +663,7 @@ void mainloopiter() {
mousepressed = ev.type == SDL_MOUSEBUTTONDOWN;
if(mousepressed) flashMessages();
mousing = true;
bool was_holdmouse = holdmouse;
holdmouse = false;
bool act = false;
@@ -675,7 +676,10 @@ void mainloopiter() {
actonrelease = ev.type == SDL_MOUSEBUTTONDOWN;
}
if(ev.type != SDL_MOUSEMOTION) fix_mouseh();
fix_mouseh();
if(was_holdmouse && ev.type == SDL_MOUSEBUTTONUP)
sym = uni = PSEUDOKEY_RELEASE;
if(!act) ;