[fixed] gui event count

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Epi
Posts: 9
Joined: Wed Mar 04, 2009 4:27 am

[fixed] gui event count

Post by Epi »

hi guys,

just did some stuff with the event receiver and found that in the IEventReceiver.h is a counter for the mouseEvent but not for the guiEvents

line 74 - 104 in IEventReceiver.h

Code: Select all

enum EMOUSE_INPUT_EVENT
{
     //! Left mouse button was pressed down.
     EMIE_LMOUSE_PRESSED_DOWN = 0,

    ...

     //! No real event. Just for convenience to get number of events
     EMIE_COUNT
};
so i would add an EGET_COUNT in line 185 into the EGUI_EVENT_TYPE enumeration

i'm using 1.5.1 already
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Yeah, thanks, that sounds fine. I try to think of it next time I'm adding an event.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply