From 4dd57b99bd4bcf555ec46742bf7a60e0e832d136 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 14 Sep 2006 06:06:53 +0000 Subject: [PATCH] Don't hard code joystick and pump numbers. --- stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp b/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp index 96fb2774a4..261500c621 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_Carbon.cpp @@ -158,9 +158,9 @@ static HIDDevice *MakeDevice( InputDevice id ) { if( id == DEVICE_KEYBOARD ) return new KeyboardDevice; - if( id <= DEVICE_JOY16 ) + if( IsJoystick(id) ) return new JoystickDevice; - if( id <= DEVICE_PUMP2 ) + if( IsPump(id) ) return new PumpDevice; return NULL; }