summaryrefslogtreecommitdiff
path: root/src/joystick.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-20 13:24:20 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-20 13:24:20 +0000
commita84133850af6d348c0c4e252b26618148702153b (patch)
treef4b8d7c9bbdeecd9c1976bdc3d3806909a25cd28 /src/joystick.h
parent1afcf2608c0a466d2df21faea1530955cc8061fc (diff)
downloadmana-a84133850af6d348c0c4e252b26618148702153b.tar.gz
mana-a84133850af6d348c0c4e252b26618148702153b.tar.bz2
mana-a84133850af6d348c0c4e252b26618148702153b.tar.xz
mana-a84133850af6d348c0c4e252b26618148702153b.zip
Merged a bunch of small changes from trunk to 0.0 and set svn:eol-style
to native for some files that were still missing this property. This is a feeble attempt to reduce the amount of conflicts for future merges.
Diffstat (limited to 'src/joystick.h')
-rw-r--r--src/joystick.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/joystick.h b/src/joystick.h
index f0759add..321e3e7d 100644
--- a/src/joystick.h
+++ b/src/joystick.h
@@ -32,15 +32,12 @@ class Joystick
/**
* Number of buttons we can handle.
*/
- static const unsigned char MAX_BUTTONS = 6;
+ enum { MAX_BUTTONS = 6 };
/**
* Directions, to be used as bitmask values.
*/
- static const char UP = 1;
- static const char DOWN = 2;
- static const char LEFT = 4;
- static const char RIGHT = 8;
+ enum { UP = 1, DOWN = 2, LEFT = 4, RIGHT = 8 };
/**
* Initializes the joystick subsystem.