Tweak some touch device params.
Better on 5'', worse on 10''... Can be changed in options anyway.
This commit is contained in:
parent
704d3ea9d9
commit
2fdb33990e
@ -431,13 +431,13 @@ namespace UserConfigParams
|
|||||||
"considered as centered in steering button."));
|
"considered as centered in steering button."));
|
||||||
|
|
||||||
PARAM_PREFIX FloatUserConfigParam m_multitouch_deadzone_edge
|
PARAM_PREFIX FloatUserConfigParam m_multitouch_deadzone_edge
|
||||||
PARAM_DEFAULT( FloatUserConfigParam(0.25f, "multitouch_deadzone_edge",
|
PARAM_DEFAULT( FloatUserConfigParam(0.1f, "multitouch_deadzone_edge",
|
||||||
&m_multitouch_group,
|
&m_multitouch_group,
|
||||||
"A parameter in range [0, 0.5] that determines the zone that is "
|
"A parameter in range [0, 0.5] that determines the zone that is "
|
||||||
"considered as max value in steering button."));
|
"considered as max value in steering button."));
|
||||||
|
|
||||||
PARAM_PREFIX FloatUserConfigParam m_multitouch_scale
|
PARAM_PREFIX FloatUserConfigParam m_multitouch_scale
|
||||||
PARAM_DEFAULT( FloatUserConfigParam(1.0f, "multitouch_scale",
|
PARAM_DEFAULT( FloatUserConfigParam(1.1f, "multitouch_scale",
|
||||||
&m_multitouch_group,
|
&m_multitouch_group,
|
||||||
"A parameter in range [0.5, 1.5] that determines the scale of the "
|
"A parameter in range [0.5, 1.5] that determines the scale of the "
|
||||||
"multitouch interface."));
|
"multitouch interface."));
|
||||||
|
@ -114,19 +114,21 @@ void RaceGUIMultitouch::initMultitouchSteering()
|
|||||||
|
|
||||||
float first_column_x = w - 2 * col_size;
|
float first_column_x = w - 2 * col_size;
|
||||||
float second_column_x = w - 1 * col_size;
|
float second_column_x = w - 1 * col_size;
|
||||||
float steering_btn_x = 0.5f * margin;
|
float steering_btn_margin = 0.6f * margin;
|
||||||
|
float steering_btn_x = steering_btn_margin;
|
||||||
|
float steering_btn_y = h - steering_btn_margin - btn2_size;
|
||||||
|
|
||||||
if (UserConfigParams::m_multitouch_inverted)
|
if (UserConfigParams::m_multitouch_inverted)
|
||||||
{
|
{
|
||||||
first_column_x = margin + 1 * col_size;
|
first_column_x = margin + 1 * col_size;
|
||||||
second_column_x = margin;
|
second_column_x = margin;
|
||||||
steering_btn_x = w - btn2_size - 0.5f * margin;
|
steering_btn_x = w - btn2_size - steering_btn_margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_minimap_bottom = (unsigned int)(h - 2 * col_size);
|
m_minimap_bottom = (unsigned int)(h - 2 * col_size);
|
||||||
|
|
||||||
m_device->addButton(BUTTON_STEERING,
|
m_device->addButton(BUTTON_STEERING,
|
||||||
int(steering_btn_x), int(h - 0.5f * margin - btn2_size),
|
int(steering_btn_x), int(steering_btn_y),
|
||||||
int(btn2_size), int(btn2_size));
|
int(btn2_size), int(btn2_size));
|
||||||
m_device->addButton(BUTTON_ESCAPE,
|
m_device->addButton(BUTTON_ESCAPE,
|
||||||
int(margin_top), int(margin_small),
|
int(margin_top), int(margin_small),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user