right : right shift | debug 3 : 3
left : left shift | debug 4 : 4
+ This mapping is defined in `src/keys.h'.
+
More
There is a project page online with issue tracker and wiki at
`http://luke.redirectme.net/redmine/projects/l2e'.
#define L2E_KEYS_H_
#include "app/Input.h"
+#include <SDL.h>
inline void MapKeys(app::Input &input) {
+#ifdef PANDORA
+ input.MapKey(SDLK_UP, app::Input::PAD_UP);
+ input.MapKey(SDLK_RIGHT, app::Input::PAD_RIGHT);
+ input.MapKey(SDLK_DOWN, app::Input::PAD_DOWN);
+ input.MapKey(SDLK_LEFT, app::Input::PAD_LEFT);
+ input.MapKey(SDLK_END, app::Input::ACTION_A);
+ input.MapKey(SDLK_PAGEDOWN, app::Input::ACTION_B);
+ input.MapKey(SDLK_PAGEUP, app::Input::ACTION_X);
+ input.MapKey(SDLK_HOME, app::Input::ACTION_Y);
+ input.MapKey(SDLK_RALT, app::Input::START);
+ input.MapKey(SDLK_RCTRL, app::Input::SELECT);
+ input.MapKey(SDLK_LCTRL, app::Input::SHOULDER_RIGHT);
+ input.MapKey(SDLK_LSHIFT, app::Input::SHOULDER_LEFT);
+#else
input.MapKey(SDLK_w, app::Input::PAD_UP);
input.MapKey(SDLK_d, app::Input::PAD_RIGHT);
input.MapKey(SDLK_s, app::Input::PAD_DOWN);
input.MapKey(SDLK_SPACE, app::Input::SELECT);
input.MapKey(SDLK_RSHIFT, app::Input::SHOULDER_RIGHT);
input.MapKey(SDLK_LSHIFT, app::Input::SHOULDER_LEFT);
+#endif
input.MapKey(SDLK_1, app::Input::DEBUG_1);
input.MapKey(SDLK_2, app::Input::DEBUG_2);