diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-09 02:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-09 03:02:42 +0300 |
commit | 274737b8d9b46dfcf6fc696123e869bbf6adaaf6 (patch) | |
tree | 08bfff598179dd6083a38599811054f50e6a4e97 /src/gui/setup_joystick.h | |
parent | 0260dcea2e9fbd06ba2ee166862d089dc72516f4 (diff) | |
download | mv-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.tar.gz mv-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.tar.bz2 mv-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.tar.xz mv-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.zip |
Add support for joystick selection.
Fix enable/disable joystick support.
Increase max joystick buttons number to 64.
Prevent joystick usage without calibration.
Diffstat (limited to 'src/gui/setup_joystick.h')
-rw-r--r-- | src/gui/setup_joystick.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/setup_joystick.h b/src/gui/setup_joystick.h index d18d5a7fb..e0a3a143f 100644 --- a/src/gui/setup_joystick.h +++ b/src/gui/setup_joystick.h @@ -29,21 +29,31 @@ #include <guichan/actionlistener.hpp> +class DropDown; +class NamesModel; + class Setup_Joystick : public SetupTab { public: Setup_Joystick(); + ~Setup_Joystick(); + void apply(); + void cancel(); void action(const gcn::ActionEvent &event); + void setTempEnabled(bool sel); + private: gcn::Label *mCalibrateLabel; gcn::Button *mCalibrateButton; bool mOriginalJoystickEnabled; gcn::CheckBox *mJoystickEnabled; + NamesModel *mNamesModel; + DropDown *mNamesDropDown; }; #endif |