]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Slider for mouse acceleration factor replacing the pointless checkbox terencehill/menu_mouse_accel_factor
authorterencehill <piuntn@gmail.com>
Thu, 13 Feb 2020 16:09:12 +0000 (17:09 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 13 Feb 2020 16:09:12 +0000 (17:09 +0100)
qcsrc/menu/xonotic/dialog_settings_input.qc

index b025c3aff7c7c2c5927dd9605f9704a815cefc95..a2d197987a43cf80cf5f8def7ba7fe7b3737b8db 100644 (file)
@@ -72,7 +72,8 @@ void XonoticInputSettingsTab_fill(entity me)
                        e.onClick = CheckBox_Click_Redisplay;
                        e.onClickEntity = e;
        me.TR(me);
-               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "m_accelerate", _("Enable built in mouse acceleration")));
+               me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Acceleration factor:")));
+               me.TD(me, 1, 2, e = makeXonoticSlider(1, 4, 0.1, "m_accelerate"));
        me.TR(me);
                if(cvar_type("vid_dgamouse") & CVAR_TYPEFLAG_ENGINE)
                {