[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Widgets' Events handling system
From: |
Nuage |
Subject: |
Re: [glob2-devel] Widgets' Events handling system |
Date: |
Thu, 27 Apr 2006 19:52:52 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051102 |
Sébastien wrote:
> Hi,
>
> I just commited the new Widgets' event handling system.
>
> Instead of having a single onSDLEvent method designed to handle all kind
> of event, we know have a specific method for each event
> (onSDLMouseMotion, onSDLKeyUp, etc.). This way instead of having a
> switch in every onSDLEvent method, we have a single switch inside
> Screen::dispatchEvents that call the appropriate method.
>
> Beware, onSDLEvent still exists but it is inly called for events that
> haven't a specific method.
Do you mind renaming it onSDLOtherEvent() ?
This will be a bit more explicit and avoid unwanted compilation compatibility.
So we can track any old fashion event use.
Thank you for the work!
Nuage