add controller rumble to menu

This commit is contained in:
Alug committed 2024-08-03 21:26:08 +02:00
1 parent 352b958da1
commit 23596d2516
1 file changed
+20 -12
+20 -12
View File
@@ -1217,11 +1217,13 @@ static menuitem_t OP_Joystick1Menu[] =
{IT_STRING | IT_CVAR, NULL, "Use Item" , &cv_fireaxis , 80},
{IT_STRING | IT_CVAR, NULL, "Look Backward" , &cv_lookbackaxis , 90},
{IT_STRING | IT_CVAR, NULL, "Spec. Look Up/Down" , &cv_lookaxis , 100},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis , 130},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis , 130},
{IT_STRING | IT_CVAR, NULL, "X deadzone" , &cv_xdeadzone , 140},
{IT_STRING | IT_CVAR, NULL, "Y deadzone" , &cv_ydeadzone , 150},
{IT_STRING | IT_CVAR, NULL, "Controller Rumble" , &cv_rumble[0] , 170},
};
static menuitem_t OP_Joystick2Menu[] =
@@ -1235,11 +1237,13 @@ static menuitem_t OP_Joystick2Menu[] =
{IT_STRING | IT_CVAR, NULL, "Use Item" , &cv_fireaxis2 , 80},
{IT_STRING | IT_CVAR, NULL, "Look Backward" , &cv_lookbackaxis2 , 90},
{IT_STRING | IT_CVAR, NULL, "Spec. Look Up/Down" , &cv_lookaxis2 , 100},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis2 , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis2 , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis2 , 130},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis2 , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis2 , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis2 , 130},
{IT_STRING | IT_CVAR, NULL, "X deadzone" , &cv_xdeadzone2 , 140},
{IT_STRING | IT_CVAR, NULL, "Y deadzone" , &cv_ydeadzone2 , 150},
{IT_STRING | IT_CVAR, NULL, "Controller Rumble" , &cv_rumble[1] , 170},
};
static menuitem_t OP_Joystick3Menu[] =
@@ -1253,11 +1257,13 @@ static menuitem_t OP_Joystick3Menu[] =
{IT_STRING | IT_CVAR, NULL, "Use Item" , &cv_fireaxis3 , 80},
{IT_STRING | IT_CVAR, NULL, "Look Backward" , &cv_lookbackaxis3 , 90},
{IT_STRING | IT_CVAR, NULL, "Spec. Look Up/Down" , &cv_lookaxis3 , 100},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis3 , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis3 , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis3 , 130},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis3 , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis3 , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis3 , 130},
{IT_STRING | IT_CVAR, NULL, "X deadzone" , &cv_xdeadzone3 , 140},
{IT_STRING | IT_CVAR, NULL, "Y deadzone" , &cv_ydeadzone3 , 150},
{IT_STRING | IT_CVAR, NULL, "Controller Rumble" , &cv_rumble[2] , 170},
};
static menuitem_t OP_Joystick4Menu[] =
@@ -1271,11 +1277,13 @@ static menuitem_t OP_Joystick4Menu[] =
{IT_STRING | IT_CVAR, NULL, "Use Item" , &cv_fireaxis4 , 80},
{IT_STRING | IT_CVAR, NULL, "Look Backward" , &cv_lookbackaxis4 , 90},
{IT_STRING | IT_CVAR, NULL, "Spec. Look Up/Down" , &cv_lookaxis4 , 100},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis4 , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis4 , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis4 , 130},
{IT_STRING | IT_CVAR, NULL, "Custom Button 1" , &cv_custom1axis4 , 110},
{IT_STRING | IT_CVAR, NULL, "Custom Button 2" , &cv_custom2axis4 , 120},
{IT_STRING | IT_CVAR, NULL, "Custom Button 3" , &cv_custom3axis4 , 130},
{IT_STRING | IT_CVAR, NULL, "X deadzone" , &cv_xdeadzone4 , 140},
{IT_STRING | IT_CVAR, NULL, "Y deadzone" , &cv_ydeadzone4 , 150},
{IT_STRING | IT_CVAR, NULL, "Controller Rumble" , &cv_rumble[3] , 170},
};
static menuitem_t OP_JoystickSetMenu[] =