32 , ProducerDevice( device )
72 : m_keyboards( input->GetKeyboardDevice() )
73 , m_mouses( input->GetMouseDevice() )
74 , m_joysticks( input->GetJoystickDevice() )
75 , m_nextTimestamp( 0 )
79 m_eventLeft += mouse->GetEventsQueue().EventsLeft();
82 m_eventLeft += keyboard->GetEventsQueue().EventsLeft();
85 m_eventLeft += joystick->GetEventsQueue().EventsLeft();
98 if( dispatched.ProducerDevice ==
nullptr )
101 assert( !
"Lost event ID" );
124 for(
int i = 0; i <
m_mouses.size(); i++ )
126 if(
m_mouses[ i ]->GetNextEvtTimestamp() == timestamp )
132 if(
m_keyboards[ i ]->GetNextEvtTimestamp() == timestamp )
138 if(
m_joysticks[ i ]->GetNextEvtTimestamp() == timestamp )
149 Timestamp minTimestamp = std::numeric_limits< Timestamp >::max();
152 for(
int i = 0; i <
m_mouses.size(); i++ )
154 if(
m_mouses[ i ]->GetNextEvtTimestamp() < minTimestamp )
155 minTimestamp =
m_mouses[ i ]->GetNextEvtTimestamp();
160 if(
m_keyboards[ i ]->GetNextEvtTimestamp() < minTimestamp )
161 minTimestamp =
m_keyboards[ i ]->GetNextEvtTimestamp();
166 if(
m_joysticks[ i ]->GetNextEvtTimestamp() < minTimestamp )
167 minTimestamp =
m_joysticks[ i ]->GetNextEvtTimestamp();
Definition: DirectInputModule.cpp:11
size_t Size
Definition: TypesDefinitions.h:35