Change signature of event_command too

This commit is contained in:
twinaphex 2015-04-20 18:40:46 +02:00
parent 98ade89759
commit fb4f5c9331
2 changed files with 4 additions and 2 deletions

View File

@ -936,7 +936,7 @@ static bool event_update_system_info(struct retro_system_info *_info,
*
* Returns: true (1) on success, otherwise false (0).
**/
bool event_command(unsigned cmd)
bool event_command(enum event_command cmd)
{
unsigned i = 0;
bool boolean = false;
@ -1614,6 +1614,8 @@ bool event_command(unsigned cmd)
case EVENT_CMD_VOLUME_DOWN:
event_set_volume(-0.5f);
break;
case EVENT_CMD_NONE:
break;
}
return true;

View File

@ -247,7 +247,7 @@ void event_disk_control_append_image(const char *path);
*
* Returns: true (1) on success, otherwise false (0).
**/
bool event_command(unsigned action);
bool event_command(enum event_command action);
#ifdef __cplusplus
}