EventReceiver error in CodeBlock

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
paio458
Posts: 2
Joined: Sat May 23, 2009 5:00 pm

EventReceiver error in CodeBlock

Post by paio458 »

forgive my bad English


class MyEventReceiver : public IEventReceiver
{
public:

virtual bool OnEvent(const SEvent& event)
{
if (event.EventType == irr::EET_KEY_INPUT_EVENT)
KeyIsDown[event.SKeyInput.Key] = event.SKeyInput.PressedDown;
return false;
}


I'm using codeblock and Irrlichter 1.5
when compiling the example 4 gives me this error:


In member function `virtual bool MyEventReceiver::OnEvent(const irr::SEvent&)':|
C:\irrlicht-1.5\mios\moverpsj\main.cpp|18|error: invalid use of `struct irr::SEvent::SKeyInput'
C:\irrlicht-1.5\mios\moverpsj\main.cpp|18|error: invalid use of `struct irr::SEvent::SKeyInput'
=== Build finished: 2 errors, 0 warnings ===


any idea why the error
seventhtear
Posts: 11
Joined: Sat May 23, 2009 11:39 am
Location: Poland

Post by seventhtear »

Not SKeyInput but KeyInput
paio458
Posts: 2
Joined: Sat May 23, 2009 5:00 pm

Post by paio458 »

thanks
Fixed and running
Post Reply