change names to be less basic

This commit is contained in:
Alug committed 2024-05-23 19:25:04 +02:00
1 parent ecd6ef40ef
commit 4d68a5dc2b
3 files changed
+24 -24

No files matched your search

+6 -6
View File
@@ -776,7 +776,7 @@ void D_SRB2Loop(void)
#endif
// this is absolutely awful and i hate it lmao
if (menuactive && (UPKEY || DOWNKEY || LEFTKEY || RIGHTKEY))
if (menuactive && (DPADUPSCROLL || DPADDOWNSCROLL || DPADLEFTSCROLL || DPADRIGHTSCROLL))
{
event_t myev;
myev.type = ev_keydown;
@@ -785,24 +785,24 @@ void D_SRB2Loop(void)
{
menuInputDelayTimer++;
if (menuInputDelayTimer >= 19)
if (menuInputDelayTimer >= 19) // TICRATE * ( (k+2) (1 - [wz + h + j - q]^2 - [(gk + 2g + k + 1)(h + j) + h - z]^2 - [16(k + 1)^3(k + 2)(n + 1)^2 + 1 - f^2]^2 calculated by my butt
{
if (UPKEY)
if (DPADUPSCROLL)
{
myev.data1 = KEY_UPARROW;
M_Responder(&myev);
}
else if (DOWNKEY)
else if (DPADDOWNSCROLL)
{
myev.data1 = KEY_DOWNARROW;
M_Responder(&myev);
}
else if (LEFTKEY)
else if (DPADLEFTSCROLL)
{
myev.data1 = KEY_LEFTARROW;
M_Responder(&myev);
}
else if (RIGHTKEY)
else if (DPADRIGHTSCROLL)
{
myev.data1 = KEY_RIGHTARROW;
M_Responder(&myev);
+14 -14
View File
@@ -3433,10 +3433,10 @@ static void Command_Manual_f(void)
itemOn = 0;
}
boolean UPKEY = false;
boolean DOWNKEY = false;
boolean LEFTKEY = false;
boolean RIGHTKEY = false;
boolean DPADUPSCROLL = false;
boolean DPADDOWNSCROLL = false;
boolean DPADLEFTSCROLL = false;
boolean DPADRIGHTSCROLL = false;
//
// M_Responder
@@ -3497,37 +3497,37 @@ boolean M_Responder(event_t *ev)
break;
}
switch (ev->data1)
switch (ev->data1) // if you pressed it set those to true
{
case KEY_HAT1:
UPKEY = true;
DPADUPSCROLL = true;
break;
case KEY_HAT1 + 1:
DOWNKEY = true;
DPADDOWNSCROLL = true;
break;
case KEY_HAT1 + 2:
LEFTKEY = true;
DPADLEFTSCROLL = true;
break;
case KEY_HAT1 + 3:
RIGHTKEY = true;
DPADRIGHTSCROLL = true;
break;
}
}
else if (ev->type == ev_keyup)
{
switch (ev->data1)
switch (ev->data1) // if you let go of those set those to false
{
case KEY_HAT1:
UPKEY = false;
DPADUPSCROLL = false;
break;
case KEY_HAT1 + 1:
DOWNKEY = false;
DPADDOWNSCROLL = false;
break;
case KEY_HAT1 + 2:
LEFTKEY = false;
DPADLEFTSCROLL = false;
break;
case KEY_HAT1 + 3:
RIGHTKEY = false;
DPADRIGHTSCROLL = false;
break;
}
}
+4 -4
View File
@@ -74,10 +74,10 @@ typedef enum
} menumessagetype_t;
void M_StartMessage(const char *string, void *routine, menumessagetype_t itemtype);
extern boolean UPKEY;
extern boolean DOWNKEY;
extern boolean LEFTKEY;
extern boolean RIGHTKEY;
extern boolean DPADUPSCROLL;
extern boolean DPADDOWNSCROLL;
extern boolean DPADLEFTSCROLL;
extern boolean DPADRIGHTSCROLL;
typedef enum
{