Irrlicht SDK : from click to IEventReceiver

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Kaki
Posts: 41
Joined: Thu Oct 12, 2006 12:19 pm
Location: France

Irrlicht SDK : from click to IEventReceiver

Post by Kaki »

Hello

I search in the Irrlicht SDK how a simple click on the scene is transformed by Irrlicht ?

In code we use an IEventReceiver class. But what happens between the click and IEventReceiver::Event(SEvent event) ?

This question is crucial for a project who links Irrlicht and an other language.
Saturn
Posts: 418
Joined: Mon Sep 25, 2006 5:58 pm

Post by Saturn »

Create irrlicht from source. Set a breakpoint in your event handler. Look at the stack trace. Rejoice in Irrlicht's open source nature.
Kaki
Posts: 41
Joined: Thu Oct 12, 2006 12:19 pm
Location: France

Post by Kaki »

Well, I set a breakpoint in my event handler. And I look at the Call Stack window.
But this is what i see :

Point_and_click.exe!MyEventReceiverADB::OnEvent(irr::SEvent event={...}) Line 99 C++
Irrlicht.dll!100a3eeb()
/* other dll references */
Point_and_click.exe!irr::core::irrAllocator<wchar_t>::internal_delete(void * ptr=0x00000000) Line 65 + 0x10 bytes C++
/* other dll references */
Are you sure that it's the good way ?
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Kaki wrote:Well, I set a breakpoint in my event handler. And I look at the Call Stack window.
But this is what i see :

Point_and_click.exe!MyEventReceiverADB::OnEvent(irr::SEvent event={...}) Line 99 C++
Irrlicht.dll!100a3eeb()
/* other dll references */
Point_and_click.exe!irr::core::irrAllocator<wchar_t>::internal_delete(void * ptr=0x00000000) Line 65 + 0x10 bytes C++
/* other dll references */
Are you sure that it's the good way ?
Did you build the Debug version of the dll?
Saturn
Posts: 418
Joined: Mon Sep 25, 2006 5:58 pm

Post by Saturn »

Yep, debug version and be sure to not relocate irrlicht directory after compilation. Else the DLL won't find the PDBs, with the debug symbols.
Post Reply