------------------------------------------------------------------------------
| 206 | |
| 207 | //------------------------------------------------------------------------------ |
| 208 | bool DInputManager::acquire( U8 deviceType, U8 deviceID ) |
| 209 | { |
| 210 | bool anyActive = false; |
| 211 | DInputDevice* dptr; |
| 212 | for ( iterator ptr = begin(); ptr != end(); ptr++ ) |
| 213 | { |
| 214 | dptr = dynamic_cast<DInputDevice*>( *ptr ); |
| 215 | if ( dptr |
| 216 | && ( ( deviceType == SI_ANY ) || ( dptr->getDeviceType() == deviceType ) ) |
| 217 | && ( ( deviceID == SI_ANY ) || ( dptr->getDeviceID() == deviceID ) ) ) |
| 218 | { |
| 219 | if ( dptr->acquire() ) |
| 220 | anyActive = true; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | return anyActive; |
| 225 | } |
| 226 | |
| 227 | //------------------------------------------------------------------------------ |
| 228 | void DInputManager::unacquire( U8 deviceType, U8 deviceID ) |