

Public Member Functions | |
| CEventSDL (SDL_Event *e) | |
| int | is_ctrl_pressed () |
| char | get_key_ascii_value () |
| int | get_type () |
Definition at line 18 of file sdl_cevent.cpp.
|
|
Creates an event object. Used by CEventSystemSDL's get_next_event() method. Note that it is someone else's responsibility to delete the event it's given; ultimately this responsibility is handled by the CGame class during its event loop. Definition at line 28 of file sdl_cevent.cpp. |
|
|
If the event is of type TYPE_KEY_DOWN, returns the ASCII value of the key pressed. Implements CEvent. Definition at line 33 of file sdl_cevent.cpp. |
|
|
Returns the type of the event (one of the TYPE_* constants). Implements CEvent. Definition at line 36 of file sdl_cevent.cpp. References CEvent::TYPE_APPLICATION_EXIT, and CEvent::TYPE_KEY_DOWN. |
|
|
Returns whether the CTRL key modifier was pressed when the event occurred. Implements CEvent. Definition at line 30 of file sdl_cevent.cpp. |
1.3.3