allow InputDeviceHandlers to provide a device-specific input string for displaying
This commit is contained in:
@@ -29,6 +29,9 @@ public:
|
|||||||
virtual ~InputHandler() { }
|
virtual ~InputHandler() { }
|
||||||
virtual void Update( float fDeltaTime ) { }
|
virtual void Update( float fDeltaTime ) { }
|
||||||
virtual void GetDevicesAndDescriptions( vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut ) = 0;
|
virtual void GetDevicesAndDescriptions( vector<InputDevice>& vDevicesOut, vector<CString>& 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.
|
/* In Windows, some devices need to be recreated if we recreate our main window.
|
||||||
* Override this if you need to do that. */
|
* Override this if you need to do that. */
|
||||||
|
|||||||
Reference in New Issue
Block a user