add InputDevice::DevicesChanged

This commit is contained in:
Chris Danford
2005-12-18 03:08:12 +00:00
parent 3b9479e271
commit c95a5dc8e5
8 changed files with 147 additions and 96 deletions
+11
View File
@@ -34,6 +34,17 @@ void RageInput::Update( float fDeltaTime )
m_pDevices[i]->Update( fDeltaTime );
}
bool RageInput::DevicesChanged()
{
/* Update optional devices. */
for( unsigned i = 0; i < m_pDevices.size(); ++i )
{
if( m_pDevices[i]->DevicesChanged() )
return true;
}
return false;
}
void RageInput::GetDevicesAndDescriptions( vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut )
{
for( unsigned i = 0; i < m_pDevices.size(); ++i )