Fixes issue #38
Showing the changes to src (1 of 1 file). Show all
Unified · Split
| @@ -118,7 +118,15 @@ static bool testEditKeys(SDL_Scancode scancode, SDL_Keycode keycode) · 117 unmodified lines | |||
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | if (i == KEY2VOL_ENTRIES) | 120 | if (i == KEY2VOL_ENTRIES) |
| 121 | i = -1; // invalid key for slot | 121 | { |
| 122 | // volume column key not found, let's try a hack for '-' and '+' keys first | ||
| 123 | if (scancode == SDL_SCANCODE_MINUS) | ||
| 124 | i = 5; | ||
| 125 | else if (scancode == SDL_SCANCODE_EQUALS) | ||
| 126 | i = 6; | ||
| 127 | else | ||
| 128 | i = -1; // invalid key for slot | ||
| 129 | } | ||
| 122 | } | 130 | } |
| 123 | else if (cursor.object == CURSOR_EFX0) | 131 | else if (cursor.object == CURSOR_EFX0) |
| 124 | { | 132 | { |