MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / acquire

Method acquire

Engine/source/platformWin32/winDirectInput.cpp:208–225  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

206
207//------------------------------------------------------------------------------
208bool 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//------------------------------------------------------------------------------
228void DInputManager::unacquire( U8 deviceType, U8 deviceID )

Callers 4

runMethod · 0.45
TESTFunction · 0.45
body1Method · 0.45
body2Method · 0.45

Calls 4

beginFunction · 0.85
endFunction · 0.85
getDeviceTypeMethod · 0.45
getDeviceIDMethod · 0.45

Tested by 3

TESTFunction · 0.36
body1Method · 0.36
body2Method · 0.36