Skip to content

Commit 57df9c0

Browse files
Just set something in the return value.
1 parent ef5da42 commit 57df9c0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

runloop.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,15 +1401,20 @@ static void core_performance_counter_stop(struct retro_perf_counter *perf)
14011401
perf->total += cpu_features_get_perf_counter() - perf->start;
14021402
}
14031403

1404-
void rarch_query_input_device_id(rarch_system_info_t *system_info,
1405-
struct retro_get_extra_input_actions *idQuery) {
1404+
static void rarch_get_extra_input_actions(rarch_system_info_t *system_info,
1405+
struct retro_get_extra_input_actions *request) {
14061406

14071407
/* We only know about the joypad. */
1408-
if (idQuery->query.device != RETRO_DEVICE_JOYPAD) {
1409-
idQuery->response.known = false;
1408+
if (request->query.device != RETRO_DEVICE_JOYPAD) {
1409+
request->response.known = false;
14101410
}
14111411

14121412
/* TODO: Implement this. */
1413+
request->response.known = true;
1414+
request->response.num_extra = 1;
1415+
request->response.extra_start_id = 128;
1416+
1417+
RARCH_LOG("rarch_get_extra_input_actions(%p, %p)", system_info, request);
14131418
}
14141419

14151420
bool runloop_environment_cb(unsigned cmd, void *data)
@@ -3562,7 +3567,7 @@ bool runloop_environment_cb(unsigned cmd, void *data)
35623567
}
35633568
break;
35643569
case RETRO_ENVIRONMENT_GET_EXTRA_INPUT_ACTIONS:
3565-
rarch_query_input_device_id(sys_info, (struct retro_get_extra_input_actions*)data);
3570+
rarch_get_extra_input_actions(sys_info, (struct retro_get_extra_input_actions*)data);
35663571
break;
35673572

35683573
default:

0 commit comments

Comments
 (0)