Skip to content

Commit

Permalink
[GUI] Add new setting for disabling Joystick with iMON
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlson2k committed Oct 1, 2012
1 parent 86bf90f commit 2d2e9b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -10823,11 +10823,17 @@ msgstr ""

#empty strings from id 35010 to 35099

#: xbmc/settings/GUISettings.cpp
msgctxt "#35100"
msgid "Enable joystick and gamepad support"
msgstr ""

#empty strings from id 35101 to 35499
#: xbmc/settings/GUISettings.cpp
msgctxt "#35101"
msgid "Disable joystick when iMON is present"
msgstr ""

#empty strings from id 35102 to 35499

msgctxt "#35500"
msgid "Location"
Expand Down
2 changes: 2 additions & 0 deletions xbmc/settings/GUISettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ void CGUISettings::Initialize()
#endif
#if defined(HAS_SDL_JOYSTICK)
AddBool(in, "input.enablejoystick", 35100, true);
AddBool(in, "input.disablejoystickwithimon", 35101, true);
GetSetting("input.disablejoystickwithimon")->SetVisible(false);
#endif

CSettingsCategory* net = AddCategory(SETTINGS_SYSTEM, "network", 798);
Expand Down

0 comments on commit 2d2e9b8

Please sign in to comment.