new screen option sm::SHOWCURSOR

This commit is contained in:
Zeno Rogue 2022-04-30 12:02:05 +02:00
parent 59b11a74ad
commit 02d195ca0b
2 changed files with 2 additions and 0 deletions

View File

@ -736,6 +736,7 @@ EX void mainloopiter() {
mousepan = cmode & sm::NORMAL;
if((cmode & (sm::DRAW | sm::MAP)) && !hiliteclick) mousepan = true;
if(cmode & sm::SHOWCURSOR) mousepan = false;
mousepan = mousepan && mouseaiming(false) && mouseaim_sensitivity;
if(mousepan != oldmousepan) {
oldmousepan = mousepan;

View File

@ -5489,6 +5489,7 @@ namespace sm {
static const int EXPANSION = (1<<16);
static const int HEXEDIT = (1<<17);
static const int VR_MENU = (1<<18); // always show the menu in VR
static const int SHOWCURSOR = (1<<19); // despite MAP/DRAW always show the cursor, no panning
}
#endif