query for InputDeviceState

This commit is contained in:
Chris Danford
2005-08-20 22:49:25 +00:00
parent 1ec41b3c47
commit 5351df6586
4 changed files with 32 additions and 1 deletions
@@ -30,9 +30,13 @@ public:
virtual void Update( float fDeltaTime ) { }
virtual void GetDevicesAndDescriptions( vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut ) = 0;
// override to return a pretty string that's specific to the controller type
// Override to return a pretty string that's specific to the controller type.
virtual CString GetDeviceSpecificInputString( const DeviceInput &di ) { return di.toString(); }
// Override to find out whether the controller is currently plugged in.
// Not all InputHandlers will support this. Not applicable to all InputHandlers.
virtual InputDeviceState GetInputDeviceState( InputDevice id ) { return InputDeviceState_Connected; }
/* In Windows, some devices need to be recreated if we recreate our main window.
* Override this if you need to do that. */
virtual void WindowReset() { }