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