Created
August 7, 2012 03:06
-
-
Save jeffomatic/3280983 to your computer and use it in GitHub Desktop.
blog: jl_signal, code: id-based event example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExampleObserver : public EventObserver | |
{ | |
... | |
virtual void HandleEvent( Event e ) | |
{ | |
switch ( e.id ) | |
{ | |
case eAppEvent_Click: | |
... | |
break; | |
case eAppEvent_WindowClose: | |
... | |
break; | |
... | |
... | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment