summaryrefslogtreecommitdiff
path: root/src/joystick.h
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-12-31 17:42:24 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-12-31 17:42:24 +0000
commit768cf33e1b66994379ac757aae0589bee83a2e7f (patch)
tree73b4b157e6a389da21742f9005ffa507e5ace509 /src/joystick.h
parentf131ed7e4341ef1b1845641a70eb70c5823afe47 (diff)
downloadmana-768cf33e1b66994379ac757aae0589bee83a2e7f.tar.gz
mana-768cf33e1b66994379ac757aae0589bee83a2e7f.tar.bz2
mana-768cf33e1b66994379ac757aae0589bee83a2e7f.tar.xz
mana-768cf33e1b66994379ac757aae0589bee83a2e7f.zip
Enumerations do not need out-of-class definitions.
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.