MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / ProcessInput

Method ProcessInput

deps/SDL2/src/hidapi/android/hid.cpp:497–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 }
496
497 void ProcessInput( const uint8_t *pBuf, size_t nBufSize )
498 {
499 hid_mutex_guard l( &m_dataLock );
500
501 size_t MAX_REPORT_QUEUE_SIZE = 16;
502 if ( m_vecData.size() >= MAX_REPORT_QUEUE_SIZE )
503 {
504 m_vecData.pop_front();
505 }
506 m_vecData.emplace_back( pBuf, nBufSize );
507 }
508
509 int GetInput( unsigned char *data, size_t length )
510 {

Calls 3

sizeMethod · 0.45
pop_frontMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected