For keyboards without numpad.
@@ -60,27 +60,39 @@ int main ( int argc, char** argv )
case SDLK_ESCAPE:
done = true;
break;
+ case SDLK_a:
case SDLK_KP7:
+ case SDLK_7:
ubr = true;
dbr = false;
+ case SDLK_q:
case SDLK_KP1:
+ case SDLK_1:
ubr = false;
dbr = true;
+ case SDLK_z:
case SDLK_KP8:
+ case SDLK_8:
ubg = true;
dbg = false;
+ case SDLK_s:
case SDLK_KP2:
+ case SDLK_2:
ubg = false;
dbg = true;
+ case SDLK_e:
case SDLK_KP9:
+ case SDLK_9:
ubb = true;
dbb = false;
+ case SDLK_d:
case SDLK_KP3:
+ case SDLK_3:
ubb = false;
dbb = true;
@@ -92,27 +104,39 @@ int main ( int argc, char** argv )
case SDL_KEYUP:
switch ( event.key.keysym.sym )
{