#include <MenuManager.h>
Inheritance diagram for Menu::KeyInputter:


Public Methods | |
| KeyInputter (const std::string &name, SDLKey &key, const SDL_Color &selected=DEFAULT_SELECTED_COL, const SDL_Color &unselected=DEFAULT_DESELECTED_COL, const SDL_Color &active=DEFAULT_ACTIVE_COL) | |
| MenuHandleResult | handleEvent (SDL_Event *e) |
| virtual void | draw (SDL_Surface *surf, TTF_Font *font, int centerX, int centerY) |
Definition at line 206 of file MenuManager.h.
|
||||||||||||||||||||||||
|
Definition at line 222 of file MenuManager.cpp. |
|
||||||||||||||||||||
|
render name centered at (centerX, centerY), render key name at (centerX + INPUT_HORIZ_SPACE, centerY) Reimplemented from Menu::DefaultMenuItem. Definition at line 228 of file MenuManager.cpp. |
|
|
if isActive() and escape not pressed, change key to the currently pressed key, else if key is enter, become active, if key not enter, pass the event Reimplemented from Menu::InputGetter. Definition at line 250 of file MenuManager.cpp. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001