From 315d2257246de4c5031748a8a3f99a15f3047b35 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Sep 2003 22:28:46 +0000 Subject: [PATCH] Add DeviceInput::IsJoystick. --- stepmania/src/RageInputDevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/RageInputDevice.h b/stepmania/src/RageInputDevice.h index 0c1f12b501..40cf81b78c 100644 --- a/stepmania/src/RageInputDevice.h +++ b/stepmania/src/RageInputDevice.h @@ -82,6 +82,8 @@ public: char ToChar() const; + bool IsJoystick() const { return DEVICE_JOY1 <= device && device <= DEVICE_JOY4; } + static int NumButtons(InputDevice device); };