[sdl2] add '=' as a + key so that I can up the contrast on my laptop without keypad

This commit is contained in:
Gwenhael Le Moine 2024-10-09 20:40:36 +02:00
parent 5714377466
commit 517c6d3d3d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -361,6 +361,7 @@ static int sdlkey_to_hpkey( SDL_Keycode k )
case SDLK_PLUS:
return ( config.model == MODEL_49G ? HP49_KEY_PLUS : HP48_KEY_PLUS );
case SDLK_KP_PLUS:
case SDLK_EQUALS:
return ( config.model == MODEL_49G ? HP49_KEY_PLUS : HP48_KEY_PLUS );
case SDLK_MINUS:
return ( config.model == MODEL_49G ? HP49_KEY_MINUS : HP48_KEY_MINUS );
@ -397,7 +398,6 @@ static int sdlkey_to_hpkey( SDL_Keycode k )
return ( config.model == MODEL_49G ? HP49_KEY_ALPHA : HP48_KEY_ALPHA );
case SDLK_F7:
case SDLK_F10:
// please_exit = true;
close_and_exit();
return -1;
default: