ccdemos/common_sdl.h
branchpyrit
changeset 72 7c3f38dff082
parent 46 6493fb65f0b1
child 81 9dbb9c8c115b
equal deleted inserted replaced
71:4fedf7290929 72:7c3f38dff082
    92 					if (event.key.keysym.sym == SDLK_ESCAPE) {
    92 					if (event.key.keysym.sym == SDLK_ESCAPE) {
    93 						quit = true;
    93 						quit = true;
    94 						break;
    94 						break;
    95 					}
    95 					}
    96 					if (event.key.keysym.sym == SDLK_LEFT) {
    96 					if (event.key.keysym.sym == SDLK_LEFT) {
    97 						roty = -0.01;
    97 						roty = +0.01;
    98 						break;
    98 						break;
    99 					}
    99 					}
   100 					if (event.key.keysym.sym == SDLK_RIGHT) {
   100 					if (event.key.keysym.sym == SDLK_RIGHT) {
   101 						roty = +0.01;
   101 						roty = -0.01;
   102 						break;
   102 						break;
   103 					}
   103 					}
   104 					if (event.key.keysym.sym == SDLK_DOWN) {
   104 					if (event.key.keysym.sym == SDLK_DOWN) {
   105 						rotx = +0.01;
   105 						rotx = +0.01;
   106 						break;
   106 						break;