mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
added an ui option for inp_grab
This commit is contained in:
parent
6cb1eb4fed
commit
c4d46668dc
|
@ -116,7 +116,7 @@ float CMenus::RenderSettingsControlsMovement(CUIRect View, void *pUser)
|
|||
}
|
||||
}
|
||||
|
||||
int NumOptions = 7;
|
||||
int NumOptions = 8;
|
||||
float ButtonHeight = 20.0f;
|
||||
float Spaceing = 2.0f;
|
||||
float BackgroundHeight = (float)NumOptions*ButtonHeight+(float)NumOptions*Spaceing;
|
||||
|
@ -127,6 +127,13 @@ float CMenus::RenderSettingsControlsMovement(CUIRect View, void *pUser)
|
|||
CUIRect Button;
|
||||
View.HSplitTop(Spaceing, 0, &View);
|
||||
View.HSplitTop(ButtonHeight, &Button, &View);
|
||||
static int s_ButtonInpGrab = 0;
|
||||
if(pSelf->DoButton_CheckBox(&s_ButtonInpGrab, Localize("Use OS mouse acceleration"), !g_Config.m_InpGrab, &Button))
|
||||
{
|
||||
g_Config.m_InpGrab ^= 1;
|
||||
}
|
||||
View.HSplitTop(Spaceing, 0, &View);
|
||||
View.HSplitTop(ButtonHeight, &Button, &View);
|
||||
pSelf->DoScrollbarOption(&g_Config.m_InpMousesens, &g_Config.m_InpMousesens, &Button, Localize("Ingame mouse sens."), 5, 500);
|
||||
View.HSplitTop(Spaceing, 0, &View);
|
||||
View.HSplitTop(ButtonHeight, &Button, &View);
|
||||
|
|
Loading…
Reference in a new issue