Definition at line 9 of file KeyControl.h.
Public Member Functions | |
| KeyControl () | |
| Default control are arrows. | |
| void | setUp (SDLKey key) |
| void | setDown (SDLKey key) |
| void | setLeft (SDLKey key) |
| void | setRight (SDLKey key) |
| SDLKey | getUp () const |
| SDLKey | getDown () const |
| SDLKey | getLeft () const |
| SDLKey | getRight () const |
|
|
Default control are arrows.
Definition at line 16 of file KeyControl.cpp. 00017 {
00018 m_up = SDLK_UP;
00019 m_down = SDLK_DOWN;
00020 m_left = SDLK_LEFT;
00021 m_right = SDLK_RIGHT;
00022 }
|
|
|
Definition at line 23 of file KeyControl.h. 00023 { return m_down; }
|
|
|
Definition at line 24 of file KeyControl.h. 00024 { return m_left; }
|
|
|
Definition at line 25 of file KeyControl.h. 00025 { return m_right; }
|
|
|
Definition at line 22 of file KeyControl.h. 00022 { return m_up; }
|
|
|
Definition at line 18 of file KeyControl.h. 00018 { m_down = key; }
|
|
|
Definition at line 19 of file KeyControl.h. 00019 { m_left = key; }
|
|
|
Definition at line 20 of file KeyControl.h. 00020 { m_right = key; }
|
|
|
Definition at line 17 of file KeyControl.h. 00017 { m_up = key; }
|
1.4.2