Mercurial > sdl-ios-xcode
annotate EXCLUDE/GLIMM/include/Window_Listener.hpp @ 4753:11b0a6a3eb4d
Changed Start/StopTextInput back to not take any parameters.
We call SDL_GetKeyboardFocus internally now.
author | dewyatt |
---|---|
date | Mon, 12 Jul 2010 14:17:43 -0400 |
parents | 0aaa54fbd2bc |
children |
rev | line source |
---|---|
4741 | 1 #ifndef WINDOW_LISTENER_HPP |
2 #define WINDOW_LISTENER_HPP | |
3 | |
4745
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
4 enum Mouse_Button |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
5 { |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
6 Mouse_Button_Left, |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
7 Mouse_Button_Right |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
8 }; |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
9 |
4741 | 10 class Window_Listener |
11 { | |
12 public: | |
13 virtual void On_Close(){} | |
14 virtual void On_Key_Down(int Key){} | |
15 virtual void On_Key_Up(int Key){} | |
16 virtual void On_Char(unsigned int Char){} | |
17 virtual void On_Resized(unsigned int Width, unsigned int Height){} | |
4745
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
18 virtual void On_Mouse_Button_Down(Mouse_Button Button){} |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
19 virtual void On_Mouse_Button_Up(Mouse_Button Button){} |
0aaa54fbd2bc
Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
dewyatt
parents:
4741
diff
changeset
|
20 |
4741 | 21 }; |
22 | |
23 #endif |