diff --git a/xormod.c b/xormod.c index 18164fe..1a7ffc3 100644 --- a/xormod.c +++ b/xormod.c @@ -39,16 +39,16 @@ int main() { if (keys[SDL_SCANCODE_ESCAPE] || keys[SDL_SCANCODE_Q]) { break; } - if (keys[SDL_SCANCODE_LEFT]) { + if (keys[SDL_SCANCODE_LEFT] || keys[SDL_SCANCODE_A]) { f.offset.x -= 16; } - if (keys[SDL_SCANCODE_RIGHT]) { + if (keys[SDL_SCANCODE_RIGHT] || keys[SDL_SCANCODE_D]) { f.offset.x += 16; } - if (keys[SDL_SCANCODE_UP]) { + if (keys[SDL_SCANCODE_UP] || keys[SDL_SCANCODE_W]) { f.offset.y -= 16; } - if (keys[SDL_SCANCODE_DOWN]) { + if (keys[SDL_SCANCODE_DOWN] || keys[SDL_SCANCODE_S]) { f.offset.y += 16; }