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

Method acquire

Engine/source/platformWin32/winDirectInput.cpp:215–232  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

213
214//------------------------------------------------------------------------------
215bool 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//------------------------------------------------------------------------------
235void DInputManager::unacquire( U8 deviceType, U8 deviceID )

Callers 6

waitForResultMethod · 0.45
pushFrameMethod · 0.45
runMethod · 0.45
TESTFunction · 0.45
body1Method · 0.45
body2Method · 0.45

Calls 4

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

Tested by 3

TESTFunction · 0.36
body1Method · 0.36
body2Method · 0.36