mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
mousewheel control for circle points insertion
git-svn-id: https://svn.eduke32.com/eduke32@758 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
53577209f5
commit
34b7ac0714
1 changed files with 17 additions and 12 deletions
|
@ -4475,6 +4475,23 @@ void overheadeditor(void)
|
|||
posy = mousyplc;
|
||||
}
|
||||
|
||||
if (circlewall != -1 && (keystatus[0x4a] || (bstatus&32 && !(keystatus[0x1d]|keystatus[0x9d])))) // -
|
||||
{
|
||||
if (circlepoints > 1)
|
||||
circlepoints--;
|
||||
keystatus[0x4a] = 0;
|
||||
mouseb &= ~32;
|
||||
bstatus &= ~32;
|
||||
}
|
||||
if (circlewall != -1 && (keystatus[0x4e] || (bstatus&16 && !(keystatus[0x1d]|keystatus[0x9d])))) // +
|
||||
{
|
||||
if (circlepoints < 63)
|
||||
circlepoints++;
|
||||
keystatus[0x4e] = 0;
|
||||
mouseb &= ~16;
|
||||
bstatus &= ~16;
|
||||
}
|
||||
|
||||
if ((keystatus[buildkeys[BK_MOVEUP]] || (bstatus&16)) && (zoom < 16384))
|
||||
{
|
||||
zoom += synctics*(zoom>>4);
|
||||
|
@ -4821,18 +4838,6 @@ void overheadeditor(void)
|
|||
}
|
||||
keystatus[0x2e] = 0;
|
||||
}
|
||||
if (keystatus[0x4a]) // -
|
||||
{
|
||||
if (circlepoints > 1)
|
||||
circlepoints--;
|
||||
keystatus[0x4a] = 0;
|
||||
}
|
||||
if (keystatus[0x4e]) // +
|
||||
{
|
||||
if (circlepoints < 63)
|
||||
circlepoints++;
|
||||
keystatus[0x4e] = 0;
|
||||
}
|
||||
|
||||
bad = (keystatus[0x39]); //Gotta do this to save lots of 3 spaces!
|
||||
|
||||
|
|
Loading…
Reference in a new issue