From 456b12a55598afff387edf5339f5ea658a444f87 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 17 Aug 2005 07:45:54 +0000 Subject: [PATCH] allow InputDeviceHandlers to provide a device-specific input string for displaying --- stepmania/src/arch/InputHandler/InputHandler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/arch/InputHandler/InputHandler.h b/stepmania/src/arch/InputHandler/InputHandler.h index 8d9cfb9c3e..f2b6ccd3c1 100644 --- a/stepmania/src/arch/InputHandler/InputHandler.h +++ b/stepmania/src/arch/InputHandler/InputHandler.h @@ -29,6 +29,9 @@ public: virtual ~InputHandler() { } virtual void Update( float fDeltaTime ) { } virtual void GetDevicesAndDescriptions( vector& vDevicesOut, vector& vDescriptionsOut ) = 0; + + // override to return a pretty string that's specific to the controller type + virtual CString GetDeviceSpecificInputString( const DeviceInput &di ) { return di.toString(); } /* In Windows, some devices need to be recreated if we recreate our main window. * Override this if you need to do that. */