summaryrefslogtreecommitdiff
path: root/src/gui/setup_joystick.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-09 02:51:52 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-09 03:02:42 +0300
commit274737b8d9b46dfcf6fc696123e869bbf6adaaf6 (patch)
tree08bfff598179dd6083a38599811054f50e6a4e97 /src/gui/setup_joystick.h
parent0260dcea2e9fbd06ba2ee166862d089dc72516f4 (diff)
downloadmanaverse-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.tar.gz
manaverse-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.tar.bz2
manaverse-274737b8d9b46dfcf6fc696123e869bbf6adaaf6.tar.xz
manaverse-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.h10
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