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
EventReceiver error in CodeBlock
-
- Posts: 11
- Joined: Sat May 23, 2009 11:39 am
- Location: Poland