IrrlichtBulletIntegration/InputEventHandler.cpp
bool InputEventHandler::OnEvent(const SEvent& event)
{
	// Remember whether each key is down or up
	if (event.EventType == irr::EET_KEY_INPUT_EVENT)
		KeyIsDown[event.KeyInput.Key] = event.KeyInput.PressedDown;

	return false;
}
// This is the one method that we have to implement
This is the one method that we have to implement
This is the one method that we have to implement
bool InputEventHandler::OnEvent(const SEvent& event)
{
	if (event.EventType == irr::EET_KEY_INPUT_EVENT)
		KeyIsDown[event.KeyInput.Key] = event.KeyInput.PressedDown;
	return false;
}
bool InputEventHandler :: OnEvent ( const SEvent & event ) { if ( event . EventType == irr :: EET_KEY_INPUT_EVENT ) KeyIsDown [ event . KeyInput . Key ] = event . KeyInput . PressedDown ; return false ; }
This is the one method that we have to implement
This is the one method that we have to implement
// Remember whether each key is down or up