blob: c7ff40eea4f86a927b8ceeffaf99390ceb020372 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/in_sdl.c b/in_sdl.c
index a84c781..22d3b01 100644
--- a/in_sdl.c
+++ b/in_sdl.c
@@ -476,10 +476,8 @@ static int in_sdl_menu_translate(void *drv_data, int keycode, char *charcode)
else
{
for (i = 0; i < map_len; i++) {
- if (map[i].key == keycode) {
- ret = map[i].pbtn;
- break;
- }
+ if (map[i].key == keycode)
+ return map[i].pbtn;
}
if (charcode != NULL && (unsigned int)keycode < SDLK_LAST &&
|