More fixes to key config
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user