More fixes to key config

This commit is contained in:
pelya
2010-07-09 18:19:09 +03:00
parent 048735ac4a
commit db8de81f7c
2 changed files with 5 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ void MenuArcadeMode::draw() {
r.h = heavyFighterIcon1->h;
SDL_BlitSurface( heavyFighterIcon1, 0, screen, &r );
}
fontHighlighted->drawStr( screen, 100, 400, "Press \"1\"", FONT_ALIGN_CENTERED );
fontHighlighted->drawStr( screen, 100, 400, "Press \"Volume Up\"", FONT_ALIGN_CENTERED );
fontHighlighted->drawStr( screen, 100, 430, "To Change", FONT_ALIGN_CENTERED );
SDL_Flip( screen );
@@ -164,7 +164,7 @@ void MenuArcadeMode::handleEvents( GameStates &gameState ) {
switch(event.type) {
case SDL_KEYDOWN: {
switch ( event.key.keysym.sym ) {
case SDLK_1: {
case SDLK_PAGEUP: {
playerOneLightFighter = !playerOneLightFighter;
break;
}

View File

@@ -73,12 +73,14 @@ SdlCompat_AcceleratedSurface *Video::init(){
void Video::clearScreen() {
// clear the screen
/*
SDL_Rect r;
r.x = 0;
r.y = 0;
r.w = screen->w;
r.h = screen->h;
SDL_FillRect(screen, &r, SDL_MapRGB(screen->format, 0, 0, 0) );
*/
SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0) );
}
void Video::toggleFullscreen() {