Irrdriver no more has a method to receive events from irrlicht. anyway it did nothing with them so that was just uselessly confusing.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5206 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -149,8 +149,7 @@ void IrrDriver::initDevice()
|
||||
bits, //bits per pixel
|
||||
UserConfigParams::m_fullscreen,
|
||||
false, // stencil buffers
|
||||
false, // vsync
|
||||
this // event receiver
|
||||
false // vsync
|
||||
);
|
||||
if(m_device) break;
|
||||
} // for bits=24, 16
|
||||
@@ -857,37 +856,6 @@ void IrrDriver::update(float dt)
|
||||
//printRenderStats();
|
||||
} // update
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Irrlicht Event handler.
|
||||
bool IrrDriver::OnEvent(const irr::SEvent &event)
|
||||
{
|
||||
switch (event.EventType)
|
||||
{
|
||||
case irr::EET_KEY_INPUT_EVENT: {
|
||||
printf("key input event\n");
|
||||
break;
|
||||
} // keyboard
|
||||
case irr::EET_GUI_EVENT: {
|
||||
return false; }
|
||||
case irr::EET_MOUSE_INPUT_EVENT: {
|
||||
return false; }
|
||||
case irr::EET_LOG_TEXT_EVENT:
|
||||
{
|
||||
// Ignore 'normal' messages
|
||||
if(event.LogEvent.Level>0)
|
||||
{
|
||||
printf("Level %d: %s\n",
|
||||
event.LogEvent.Level,event.LogEvent.Text);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
printf("Event: %d -> ",event.EventType);
|
||||
return false;
|
||||
} // switch
|
||||
return false;
|
||||
} // OnEvent
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if 0
|
||||
|
||||
@@ -37,7 +37,7 @@ struct VideoMode
|
||||
int width, height;
|
||||
};
|
||||
|
||||
class IrrDriver : public IEventReceiver
|
||||
class IrrDriver
|
||||
{
|
||||
private:
|
||||
/** The irrlicht device. */
|
||||
@@ -89,7 +89,6 @@ public:
|
||||
/** Returns the gui environment, used to add widgets to a screen. */
|
||||
gui::IGUIEnvironment *getGUI() const { return m_gui_env; }
|
||||
//irr::gui::IGUIFont *getRaceFont() const { return m_race_font; }
|
||||
bool OnEvent(const irr::SEvent &event);
|
||||
void setAmbientLight(const video::SColor &light);
|
||||
video::ITexture *getTexture(const std::string &filename);
|
||||
scene::IMesh *createQuadMesh(const video::SMaterial *material=NULL,
|
||||
|
||||
Reference in New Issue
Block a user