Skip to content

Commit 5539335

Browse files
committed
Removing some unused parameters
1 parent 955452c commit 5539335

File tree

7 files changed

+15
-24
lines changed

7 files changed

+15
-24
lines changed

Src/DasherCore/AlternatingDirectMode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ using namespace Dasher;
1515

1616
static SModuleSettings sSettings[] = {
1717
/* TRANSLATORS: The number of time steps over which to perform the zooming motion in button mode. */
18-
{LP_ZOOMSTEPS, T_LONG, 1, 63, 1, 1, _("Frames over which to perform zoom")},
18+
{LP_ZOOMSTEPS, T_LONG, 1, 63, 1, 1, _("Frames over which to perform zoom")}
1919
/* TRANSLATORS: Intercept keyboard events for 'special' keys even when the Dasher window doesn't have keyboard focus.*/
20-
{BP_GLOBAL_KEYBOARD, T_BOOL, -1, -1, -1, -1, _("Global keyboard grab")}
20+
// {BP_GLOBAL_KEYBOARD, T_BOOL, -1, -1, -1, -1, _("Global keyboard grab")}
2121
};
2222

2323
CAlternatingDirectMode::CAlternatingDirectMode(CSettingsStore* pSettingsStore, CDasherInterfaceBase *pInterface)

Src/DasherCore/ButtonMode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ static SModuleSettings sSettings[] = {
2525
* however the code seems to use ratio = (129/127)^-r, instead of
2626
* ratio = exp(r/128) used in the design document
2727
*/
28-
{LP_R, T_LONG, -89, 89, 1, 10, _("Box non-uniformity")},
28+
{LP_R, T_LONG, -89, 89, 1, 10, _("Box non-uniformity")}
2929
/* TRANSLATORS: Intercept keyboard events for 'special' keys even when the Dasher window doesn't have keyboard focus.*/
30-
{BP_GLOBAL_KEYBOARD, T_BOOL, -1, -1, -1, -1, _("Global keyboard grab")}
30+
// {BP_GLOBAL_KEYBOARD, T_BOOL, -1, -1, -1, -1, _("Global keyboard grab")}
3131
};
3232

3333
void CButtonMode::GetUISettings(std::vector<Dasher::Parameter>& List) {

Src/DasherCore/CompassMode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ static SModuleSettings sSettings[] = {
1616
/* TRANSLATORS: The number of time steps over which to perform the zooming motion in button mode. */
1717
{LP_ZOOMSTEPS, T_LONG, 1, 63, 1, 1, _("Frames over which to perform zoom")},
1818
/* TRANSLATORS: The zoom factor per press when moving to the right in compass mode. */
19-
{LP_RIGHTZOOM, T_LONG, 1024, 10240, 1024, 1024, _("Right zoom")},
19+
{LP_RIGHTZOOM, T_LONG, 1024, 10240, 1024, 1024, _("Right zoom")}
2020
/* TRANSLATORS: Intercept keyboard events for 'special' keys even when the Dasher window doesn't have keyboard focus.*/
21-
{BP_GLOBAL_KEYBOARD, T_BOOL, -1, -1, -1, -1, _("Global keyboard grab")}
21+
// {BP_GLOBAL_KEYBOARD, T_BOOL, -1, -1, -1, -1, _("Global keyboard grab")}
2222
};
2323

2424
void CCompassMode::GetUISettings(std::vector<Dasher::Parameter>& List) {

Src/DasherCore/DasherButtons.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CDasherButtons::~CDasherButtons()
2121

2222
void CDasherButtons::GetUISettings(std::vector<Dasher::Parameter>& List) {
2323
CStaticFilter::GetUISettings(List);
24-
AddSettings(List, {LP_BUTTON_SCAN_TIME});
24+
if(m_bMenu) AddSettings(List, {LP_BUTTON_SCAN_TIME});
2525
}
2626

2727
void CDasherButtons::Activate() {

Src/DasherCore/Parameters.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ namespace Dasher{
2323
{BP_REMAP_XTREME , Parameter_Value{"RemapXtreme" , PARAM_BOOL, Persistence::PERSISTENT, false, "Pointer at extreme Y translates more and zooms less", "", Settings::UIControlType::Switch}},
2424
{BP_AUTO_SPEEDCONTROL , Parameter_Value{"AutoSpeedControl" , PARAM_BOOL, Persistence::PERSISTENT, true , "AutoSpeedControl", "", Settings::UIControlType::Switch}},
2525
{BP_LM_ADAPTIVE , Parameter_Value{"LMAdaptive" , PARAM_BOOL, Persistence::PERSISTENT, true , "Whether language model should learn as you enter text"}},
26-
{BP_SOCKET_DEBUG , Parameter_Value{"SocketInputDebug" , PARAM_BOOL, Persistence::PERSISTENT, false, "Print information about socket input processing to console"}},
2726
{BP_CIRCLE_START , Parameter_Value{"CircleStart" , PARAM_BOOL, Persistence::PERSISTENT, false, "Start on circle mode", "", Settings::UIControlType::Switch}},
28-
{BP_GLOBAL_KEYBOARD , Parameter_Value{"GlobalKeyboard" , PARAM_BOOL, Persistence::PERSISTENT, false, "Whether to assume global control of the keyboard"}},
2927
{BP_NONLINEAR_Y , Parameter_Value{"NonlinearY" , PARAM_BOOL, Persistence::PERSISTENT, true , "Apply nonlinearities to Y axis (i.e. compress top &amp; bottom)"}},
3028
{BP_STOP_OUTSIDE , Parameter_Value{"PauseOutside" , PARAM_BOOL, Persistence::PERSISTENT, false, "Whether to stop when pointer leaves canvas area", "", Settings::UIControlType::Switch}},
3129
#ifdef TARGET_OS_IPHONE
@@ -41,7 +39,6 @@ namespace Dasher{
4139
{BP_SPEAK_WORDS , Parameter_Value{"SpeakWords" , PARAM_BOOL, Persistence::PERSISTENT, false, "Speak words as they are written"}},
4240
{BP_GAME_HELP_DRAW_PATH , Parameter_Value{"GameDrawPath" , PARAM_BOOL, Persistence::PERSISTENT, true , "When we give help, show the shortest path to the target sentence"}},
4341
{BP_TWO_PUSH_RELEASE_TIME , Parameter_Value{"TwoPushReleaseTime" , PARAM_BOOL, Persistence::PERSISTENT, false, "Use push and release times of single press rather than push times of two presses", "", Settings::UIControlType::Switch}},
44-
{BP_SLOW_CONTROL_BOX , Parameter_Value{"SlowControlBox" , PARAM_BOOL, Persistence::PERSISTENT, true , "Slow down when going through control box" }},
4542
{BP_SIMULATE_TRANSPARENCY , Parameter_Value{"SimulateTransparency" , PARAM_BOOL, Persistence::PERSISTENT, false, "Enable the internal color mixing and thus the need to support alpha blending in the renderer." }},
4643

4744
{LP_ORIENTATION , Parameter_Value{ "ScreenOrientation" , PARAM_LONG, Persistence::PERSISTENT, -2l , "Screen Orientation"}},
@@ -52,7 +49,6 @@ namespace Dasher{
5249
{LP_MESSAGE_FONTSIZE , Parameter_Value{ "MessageFontSize" , PARAM_LONG, Persistence::PERSISTENT, 14l , "Size of font for messages (in points)"}},
5350
{LP_SHAPE_TYPE , Parameter_Value{ "RenderStyle" , PARAM_LONG, Persistence::PERSISTENT, static_cast<long>(Options::OVERLAPPING_RECTANGLE), "Shapes to render in (see Options::Rendering_Shape_Types)"}},
5451
{LP_UNIFORM , Parameter_Value{ "UniformTimes1000" , PARAM_LONG, Persistence::PERSISTENT, 50l , "UniformTimes1000"}},
55-
{LP_YSCALE , Parameter_Value{ "YScaling" , PARAM_LONG, Persistence::PERSISTENT, 0l , "YScaling"}},
5652
{LP_MOUSEPOSDIST , Parameter_Value{ "MousePositionBoxDistance" , PARAM_LONG, Persistence::PERSISTENT, 50l , "MousePositionBoxDistance"}},
5753
{LP_PY_PROB_SORT_THRES , Parameter_Value{ "PYProbabilitySortThreshold", PARAM_LONG, Persistence::PERSISTENT, 85l , "Sort converted syms in descending probability order up to this percentage"}},
5854
{LP_MESSAGE_TIME , Parameter_Value{ "MessageTime" , PARAM_LONG, Persistence::PERSISTENT, 2500l , "Time for which non-modal messages are displayed, in ms"}},
@@ -136,8 +132,6 @@ namespace Dasher{
136132
{ SP_COLOUR_ID , Parameter_Value{ "ColourID" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "ColourID" }},
137133
{SP_DASHER_FONT , Parameter_Value{ "DasherFont" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "DasherFont"}},
138134
{SP_GAME_TEXT_FILE , Parameter_Value{ "GameTextFile" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "User-specified file with strings to practice writing"}},
139-
{SP_SOCKET_INPUT_X_LABEL , Parameter_Value{ "SocketInputXLabel", PARAM_STRING, Persistence::PERSISTENT, std::string("x") , "Label preceding X values for network input"}},
140-
{SP_SOCKET_INPUT_Y_LABEL , Parameter_Value{ "SocketInputYLabel", PARAM_STRING, Persistence::PERSISTENT, std::string("y") , "Label preceding Y values for network input"}},
141135
#ifdef TARGET_OS_IPHONE
142136
{SP_INPUT_FILTER , Parameter_Value{ "InputFilter" , PARAM_STRING, Persistence::PERSISTENT, std::string("Stylus Control"), "Input filter used to provide the current control mode"}},
143137
#else
@@ -150,7 +144,6 @@ namespace Dasher{
150144
{SP_BUTTON_3 , Parameter_Value{ "Button3" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "Assignment to button 3"}},
151145
{SP_BUTTON_4 , Parameter_Value{ "Button4" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "Assignment to button 4"}},
152146
{SP_BUTTON_10 , Parameter_Value{ "Button10" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "Assignment to button 10"}},
153-
{SP_JOYSTICK_DEVICE , Parameter_Value{ "JoystickDevice" , PARAM_STRING, Persistence::PERSISTENT, std::string("/dev/input/js0"), "Joystick device"}}
154147
};
155148

156149
ParameterType GetParameterType(Parameter parameter) {

Src/DasherCore/Parameters.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ namespace Dasher
1212
enum Parameter{
1313
BP_DRAW_MOUSE_LINE, BP_DRAW_MOUSE, BP_CURVE_MOUSE_LINE,
1414
BP_START_MOUSE,
15-
BP_START_SPACE, BP_CONTROL_MODE, BP_SMOOTH_PRESS_MODE, BP_SMOOTH_ONLY_FORWARD, BP_SMOOTH_DRAW_MOUSE, BP_SMOOTH_DRAW_MOUSE_LINE,
15+
BP_START_SPACE, BP_SMOOTH_PRESS_MODE, BP_SMOOTH_ONLY_FORWARD, BP_SMOOTH_DRAW_MOUSE, BP_SMOOTH_DRAW_MOUSE_LINE,
1616
BP_MOUSEPOS_MODE,
1717
BP_PALETTE_CHANGE, BP_TURBO_MODE, BP_EXACT_DYNAMICS,
1818
BP_AUTOCALIBRATE, BP_REMAP_XTREME,
1919
BP_AUTO_SPEEDCONTROL,
20-
BP_LM_ADAPTIVE, BP_SOCKET_DEBUG,
21-
BP_CIRCLE_START, BP_GLOBAL_KEYBOARD, BP_NONLINEAR_Y,
20+
BP_LM_ADAPTIVE,
21+
BP_CIRCLE_START, BP_NONLINEAR_Y,
2222
BP_STOP_OUTSIDE, BP_BACKOFF_BUTTON,
2323
BP_TWOBUTTON_REVERSE, BP_2B_INVERT_DOUBLE, BP_SLOW_START,
2424
BP_COPY_ALL_ON_STOP, BP_SPEAK_ALL_ON_STOP, BP_SPEAK_WORDS,
2525
BP_GAME_HELP_DRAW_PATH, BP_TWO_PUSH_RELEASE_TIME,
26-
BP_SLOW_CONTROL_BOX, BP_SIMULATE_TRANSPARENCY,
26+
BP_SIMULATE_TRANSPARENCY,
2727
END_OF_BPS,
2828

2929
LP_ORIENTATION, LP_MAX_BITRATE, LP_FRAMERATE,
30-
LP_LANGUAGE_MODEL_ID, LP_DASHER_FONTSIZE, LP_DASHER_FONTSIZING, LP_MESSAGE_FONTSIZE, LP_SHAPE_TYPE,
31-
LP_UNIFORM, LP_YSCALE, LP_MOUSEPOSDIST, LP_PY_PROB_SORT_THRES, LP_MESSAGE_TIME,
30+
LP_LANGUAGE_MODEL_ID, LP_DASHER_FONTSIZE, LP_MESSAGE_FONTSIZE, LP_SHAPE_TYPE,
31+
LP_UNIFORM, LP_MOUSEPOSDIST, LP_PY_PROB_SORT_THRES, LP_MESSAGE_TIME,
3232
LP_LM_MAX_ORDER, LP_LM_EXCLUSION,
3333
LP_LM_UPDATE_EXCLUSION, LP_LM_ALPHA, LP_LM_BETA,
3434
LP_LM_MIXTURE, LP_LINE_WIDTH, LP_GEOMETRY,
@@ -47,11 +47,10 @@ namespace Dasher
4747
LP_GAME_HELP_DIST, LP_GAME_HELP_TIME,
4848
END_OF_LPS,
4949

50-
5150
SP_ALPHABET_ID, SP_ALPHABET_1, SP_ALPHABET_2, SP_ALPHABET_3, SP_ALPHABET_4,
5251
SP_COLOUR_ID, SP_DASHER_FONT, SP_GAME_TEXT_FILE,
53-
SP_SOCKET_INPUT_X_LABEL, SP_SOCKET_INPUT_Y_LABEL, SP_INPUT_FILTER, SP_INPUT_DEVICE,
54-
SP_BUTTON_0, SP_BUTTON_1, SP_BUTTON_2, SP_BUTTON_3, SP_BUTTON_4, SP_BUTTON_10, SP_JOYSTICK_DEVICE,
52+
SP_INPUT_FILTER, SP_INPUT_DEVICE,
53+
SP_BUTTON_0, SP_BUTTON_1, SP_BUTTON_2, SP_BUTTON_3, SP_BUTTON_4, SP_BUTTON_10,
5554
END_OF_SPS,
5655
PM_INVALID
5756
};

Src/DasherCore/UserLog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ static UserLogParamMask s_UserLogParamMaskTable [] = {
2222
userLogParamForceInTrial |
2323
userLogParamShortInCycle},
2424
{LP_UNIFORM, userLogParamOutputToSimple},
25-
{LP_YSCALE, userLogParamOutputToSimple},
2625
{LP_LANGUAGE_MODEL_ID, userLogParamOutputToSimple},
2726
{LP_LM_MAX_ORDER, userLogParamOutputToSimple},
2827
{LP_LM_EXCLUSION, userLogParamOutputToSimple},

0 commit comments

Comments
 (0)