Skip to content

Commit 5a42548

Browse files
committed
Adding X-Axis and Y-Axis parameter for joystick
1 parent 44e64e8 commit 5a42548

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Src/DasherCore/Parameters.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ namespace Dasher{
139139
#endif
140140
{SP_INPUT_DEVICE , Parameter_Value{ "InputDevice" , PARAM_STRING, Persistence::PERSISTENT, std::string("Mouse Input") , "Driver for the input device"}},
141141
{SP_BUTTON_MAPPINGS , Parameter_Value{ "ButtonMap" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "Button assignments used in UI"}},
142-
{SP_JOYSTICK_DEVICE , Parameter_Value{ "JoystickDevice" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "UUID of Joystick Device"}}
142+
{SP_JOYSTICK_XAXIS , Parameter_Value{ "JoystickXAxis" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "Joystick axis used for X-axis input"}},
143+
{SP_JOYSTICK_YAXIS , Parameter_Value{ "JoystickYAxis" , PARAM_STRING, Persistence::PERSISTENT, std::string("") , "Joystick axis used for Y-axis input"}}
143144
};
144145

145146
ParameterType GetParameterType(Parameter parameter) {

Src/DasherCore/Parameters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace Dasher
5050
SP_ALPHABET_ID, SP_ALPHABET_1, SP_ALPHABET_2, SP_ALPHABET_3, SP_ALPHABET_4,
5151
SP_COLOUR_ID, SP_DASHER_FONT, SP_GAME_TEXT_FILE,
5252
SP_INPUT_FILTER, SP_INPUT_DEVICE,
53-
SP_BUTTON_MAPPINGS, SP_JOYSTICK_DEVICE,
53+
SP_BUTTON_MAPPINGS, SP_JOYSTICK_XAXIS, SP_JOYSTICK_YAXIS,
5454
END_OF_SPS,
5555
PM_INVALID
5656
};

0 commit comments

Comments
 (0)