mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Mapster32: add home/end modifier keys to 3d mode slope keys ([ and ]), plus a third increment modifier (home and end at the same time)
git-svn-id: https://svn.eduke32.com/eduke32@5823 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
47edac436b
commit
9d0916b6b7
1 changed files with 22 additions and 4 deletions
|
@ -5212,7 +5212,9 @@ static void Keys3d(void)
|
|||
}
|
||||
|
||||
|
||||
if (keystatus[KEYSC_HOME])
|
||||
if (keystatus[KEYSC_HOME] && keystatus[KEYSC_END])
|
||||
updownunits = 128;
|
||||
else if (keystatus[KEYSC_HOME])
|
||||
updownunits = 256;
|
||||
else if (keystatus[KEYSC_END])
|
||||
updownunits = 512;
|
||||
|
@ -5455,7 +5457,13 @@ static void Keys3d(void)
|
|||
if ((bstatus&(4|2|1))==4 && !unrealedlook) //PK
|
||||
Bsprintf(tempbuf,"VIEW");
|
||||
else if ((bstatus&(2|1))==2)
|
||||
Bsprintf(tempbuf,"Z%s", keystatus[KEYSC_HOME]?" 256":keystatus[KEYSC_END]?" 512":"");
|
||||
Bsprintf(tempbuf, "Z%s", keystatus[KEYSC_HOME] && keystatus[KEYSC_END]
|
||||
? " 128"
|
||||
: keystatus[KEYSC_HOME]
|
||||
? " 256"
|
||||
: keystatus[KEYSC_END]
|
||||
? " 512"
|
||||
: "");
|
||||
|
||||
if ((bstatus&(2|1))==1 || (keystatus[KEYSC_SPACE]))
|
||||
Bsprintf(tempbuf,"LOCK");
|
||||
|
@ -5863,8 +5871,18 @@ static void Keys3d(void)
|
|||
|
||||
// ----------
|
||||
i = 512;
|
||||
if (keystatus[KEYSC_RSHIFT]) i = 8;
|
||||
if (keystatus[KEYSC_LSHIFT]) i = 1;
|
||||
|
||||
if (keystatus[KEYSC_RSHIFT])
|
||||
i = 8;
|
||||
else if (keystatus[KEYSC_LSHIFT])
|
||||
i = 1;
|
||||
else if (keystatus[KEYSC_HOME] && keystatus[KEYSC_END])
|
||||
i = 64;
|
||||
else if (keystatus[KEYSC_HOME])
|
||||
i = 128;
|
||||
else if (keystatus[KEYSC_END])
|
||||
i = 256;
|
||||
|
||||
mouseaction=0;
|
||||
|
||||
if (eitherCTRL && !eitherSHIFT && (bstatus&1) && AIMING_AT_CEILING_OR_FLOOR)
|
||||
|
|
Loading…
Reference in a new issue