NUM_InputDevice

This commit is contained in:
Glenn Maynard
2006-09-26 21:08:50 +00:00
parent 0b7b6b6f9f
commit 361f8f4e01
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -46,10 +46,10 @@ enum InputDevice
DEVICE_PUMP1,
DEVICE_PUMP2,
DEVICE_MIDI,
NUM_INPUT_DEVICES, // leave this at the end
NUM_InputDevice, // leave this at the end
DEVICE_NONE // means this is NULL
};
#define FOREACH_InputDevice( i ) FOREACH_ENUM( InputDevice, NUM_INPUT_DEVICES, i )
#define FOREACH_InputDevice( i ) FOREACH_ENUM( InputDevice, NUM_InputDevice, i )
const RString& InputDeviceToString( InputDevice i );
InputDevice StringToInputDevice( const RString& s );
inline bool IsJoystick( InputDevice id ) { return DEVICE_JOY1 <= id && id < DEVICE_JOY1+NUM_JOYSTICKS; }