RetroArch
Classes | Typedefs | Enumerations | Functions
command.h File Reference
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "playlist.h"
Include dependency graph for command.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  command_handle
 

Typedefs

typedef typedefRETRO_BEGIN_DECLS struct command command_t
 
typedef struct command_handle command_handle_t
 

Enumerations

enum  event_command {
  CMD_EVENT_NONE = 0, CMD_EVENT_RESET, CMD_EVENT_SET_PER_GAME_RESOLUTION, CMD_EVENT_SET_FRAME_LIMIT,
  CMD_EVENT_LOAD_CORE, CMD_EVENT_LOAD_CORE_PERSIST, CMD_EVENT_UNLOAD_CORE, CMD_EVENT_LOAD_STATE,
  CMD_EVENT_UNDO_LOAD_STATE, CMD_EVENT_UNDO_SAVE_STATE, CMD_EVENT_SAVE_STATE, CMD_EVENT_SAVE_STATE_DECREMENT,
  CMD_EVENT_SAVE_STATE_INCREMENT, CMD_EVENT_TAKE_SCREENSHOT, CMD_EVENT_QUIT, CMD_EVENT_REINIT_FROM_TOGGLE,
  CMD_EVENT_REINIT, CMD_EVENT_CHEEVOS_HARDCORE_MODE_TOGGLE, CMD_EVENT_REWIND_DEINIT, CMD_EVENT_REWIND_INIT,
  CMD_EVENT_REWIND_TOGGLE, CMD_EVENT_AUTOSAVE_DEINIT, CMD_EVENT_AUTOSAVE_INIT, CMD_EVENT_AUTOSAVE_STATE,
  CMD_EVENT_AUDIO_STOP, CMD_EVENT_AUDIO_START, CMD_EVENT_AUDIO_MUTE_TOGGLE, CMD_EVENT_FPS_TOGGLE,
  CMD_EVENT_OVERLAY_INIT, CMD_EVENT_OVERLAY_DEINIT, CMD_EVENT_OVERLAY_SET_SCALE_FACTOR, CMD_EVENT_OVERLAY_SET_ALPHA_MOD,
  CMD_EVENT_OVERLAY_NEXT, CMD_EVENT_DSP_FILTER_INIT, CMD_EVENT_DSP_FILTER_DEINIT, CMD_EVENT_GPU_RECORD_DEINIT,
  CMD_EVENT_RECORD_INIT, CMD_EVENT_RECORD_DEINIT, CMD_EVENT_HISTORY_DEINIT, CMD_EVENT_HISTORY_INIT,
  CMD_EVENT_CORE_INFO_DEINIT, CMD_EVENT_CORE_INFO_INIT, CMD_EVENT_CORE_DEINIT, CMD_EVENT_CORE_INIT,
  CMD_EVENT_AUDIO_SET_BLOCKING_STATE, CMD_EVENT_AUDIO_SET_NONBLOCKING_STATE, CMD_EVENT_VIDEO_APPLY_STATE_CHANGES, CMD_EVENT_VIDEO_SET_BLOCKING_STATE,
  CMD_EVENT_VIDEO_SET_NONBLOCKING_STATE, CMD_EVENT_VIDEO_SET_ASPECT_RATIO, CMD_EVENT_RESET_CONTEXT, CMD_EVENT_RESTART_RETROARCH,
  CMD_EVENT_SHUTDOWN, CMD_EVENT_REBOOT, CMD_EVENT_RESUME, CMD_EVENT_ADD_TO_FAVORITES,
  CMD_EVENT_RESET_CORE_ASSOCIATION, CMD_EVENT_PAUSE_TOGGLE, CMD_EVENT_UNPAUSE, CMD_EVENT_PAUSE,
  CMD_EVENT_PAUSE_CHECKS, CMD_EVENT_MENU_RESET_TO_DEFAULT_CONFIG, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_CORE,
  CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_CONTENT_DIR, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_GAME, CMD_EVENT_MENU_SAVE_CONFIG, CMD_EVENT_MENU_PAUSE_LIBRETRO,
  CMD_EVENT_MENU_TOGGLE, CMD_EVENT_SHADERS_APPLY_CHANGES, CMD_EVENT_SHADER_PRESET_LOADED, CMD_EVENT_SHADER_DIR_INIT,
  CMD_EVENT_SHADER_DIR_DEINIT, CMD_EVENT_CONTROLLERS_INIT, CMD_EVENT_CHEATS_INIT, CMD_EVENT_CHEATS_DEINIT,
  CMD_EVENT_CHEATS_APPLY, CMD_EVENT_NETWORK_DEINIT, CMD_EVENT_NETWORK_INIT, CMD_EVENT_NETPLAY_INIT,
  CMD_EVENT_NETPLAY_INIT_DIRECT, CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, CMD_EVENT_NETPLAY_DEINIT, CMD_EVENT_NETPLAY_GAME_WATCH,
  CMD_EVENT_BSV_MOVIE_INIT, CMD_EVENT_BSV_MOVIE_DEINIT, CMD_EVENT_COMMAND_INIT, CMD_EVENT_COMMAND_DEINIT,
  CMD_EVENT_REMOTE_INIT, CMD_EVENT_REMOTE_DEINIT, CMD_EVENT_MAPPER_INIT, CMD_EVENT_MAPPER_DEINIT,
  CMD_EVENT_AUDIO_REINIT, CMD_EVENT_RESIZE_WINDOWED_SCALE, CMD_EVENT_LOG_FILE_DEINIT, CMD_EVENT_DISK_EJECT_TOGGLE,
  CMD_EVENT_DISK_NEXT, CMD_EVENT_DISK_PREV, CMD_EVENT_DISK_APPEND_IMAGE, CMD_EVENT_RUMBLE_STOP,
  CMD_EVENT_GRAB_MOUSE_TOGGLE, CMD_EVENT_GAME_FOCUS_TOGGLE, CMD_EVENT_UI_COMPANION_TOGGLE, CMD_EVENT_FULLSCREEN_TOGGLE,
  CMD_EVENT_PERFCNT_REPORT_FRONTEND_LOG, CMD_EVENT_VOLUME_UP, CMD_EVENT_VOLUME_DOWN, CMD_EVENT_MIXER_VOLUME_UP,
  CMD_EVENT_MIXER_VOLUME_DOWN, CMD_EVENT_DISABLE_OVERRIDES, CMD_EVENT_RESTORE_REMAPS, CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET,
  CMD_EVENT_DISCORD_INIT, CMD_EVENT_DISCORD_DEINIT, CMD_EVENT_DISCORD_UPDATE
}
 

Functions

bool command_set_shader (const char *arg)
 
bool command_network_send (const char *cmd_)
 
bool command_network_new (command_t *handle, bool stdin_enable, bool network_enable, uint16_t port)
 
command_tcommand_new (void)
 
bool command_poll (command_t *handle)
 
bool command_get (command_handle_t *handle)
 
bool command_set (command_handle_t *handle)
 
bool command_free (command_t *handle)
 
bool command_event (enum event_command action, void *data)
 
void command_playlist_push_write (playlist_t *playlist, const char *path, const char *label, const char *core_path, const char *core_name)
 
void command_playlist_update_write (playlist_t *playlist, size_t idx, const char *path, const char *label, const char *core_path, const char *core_display_name, const char *crc32, const char *db_name)
 

Typedef Documentation

◆ command_handle_t

◆ command_t

typedef typedefRETRO_BEGIN_DECLS struct command command_t

Enumeration Type Documentation

◆ event_command

Enumerator
CMD_EVENT_NONE 
CMD_EVENT_RESET 
CMD_EVENT_SET_PER_GAME_RESOLUTION 
CMD_EVENT_SET_FRAME_LIMIT 
CMD_EVENT_LOAD_CORE 
CMD_EVENT_LOAD_CORE_PERSIST 
CMD_EVENT_UNLOAD_CORE 
CMD_EVENT_LOAD_STATE 
CMD_EVENT_UNDO_LOAD_STATE 
CMD_EVENT_UNDO_SAVE_STATE 
CMD_EVENT_SAVE_STATE 
CMD_EVENT_SAVE_STATE_DECREMENT 
CMD_EVENT_SAVE_STATE_INCREMENT 
CMD_EVENT_TAKE_SCREENSHOT 
CMD_EVENT_QUIT 
CMD_EVENT_REINIT_FROM_TOGGLE 
CMD_EVENT_REINIT 
CMD_EVENT_CHEEVOS_HARDCORE_MODE_TOGGLE 
CMD_EVENT_REWIND_DEINIT 
CMD_EVENT_REWIND_INIT 
CMD_EVENT_REWIND_TOGGLE 
CMD_EVENT_AUTOSAVE_DEINIT 
CMD_EVENT_AUTOSAVE_INIT 
CMD_EVENT_AUTOSAVE_STATE 
CMD_EVENT_AUDIO_STOP 
CMD_EVENT_AUDIO_START 
CMD_EVENT_AUDIO_MUTE_TOGGLE 
CMD_EVENT_FPS_TOGGLE 
CMD_EVENT_OVERLAY_INIT 
CMD_EVENT_OVERLAY_DEINIT 
CMD_EVENT_OVERLAY_SET_SCALE_FACTOR 
CMD_EVENT_OVERLAY_SET_ALPHA_MOD 
CMD_EVENT_OVERLAY_NEXT 
CMD_EVENT_DSP_FILTER_INIT 
CMD_EVENT_DSP_FILTER_DEINIT 
CMD_EVENT_GPU_RECORD_DEINIT 
CMD_EVENT_RECORD_INIT 
CMD_EVENT_RECORD_DEINIT 
CMD_EVENT_HISTORY_DEINIT 
CMD_EVENT_HISTORY_INIT 
CMD_EVENT_CORE_INFO_DEINIT 
CMD_EVENT_CORE_INFO_INIT 
CMD_EVENT_CORE_DEINIT 
CMD_EVENT_CORE_INIT 
CMD_EVENT_AUDIO_SET_BLOCKING_STATE 
CMD_EVENT_AUDIO_SET_NONBLOCKING_STATE 
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES 
CMD_EVENT_VIDEO_SET_BLOCKING_STATE 
CMD_EVENT_VIDEO_SET_NONBLOCKING_STATE 
CMD_EVENT_VIDEO_SET_ASPECT_RATIO 
CMD_EVENT_RESET_CONTEXT 
CMD_EVENT_RESTART_RETROARCH 
CMD_EVENT_SHUTDOWN 
CMD_EVENT_REBOOT 
CMD_EVENT_RESUME 
CMD_EVENT_ADD_TO_FAVORITES 
CMD_EVENT_RESET_CORE_ASSOCIATION 
CMD_EVENT_PAUSE_TOGGLE 
CMD_EVENT_UNPAUSE 
CMD_EVENT_PAUSE 
CMD_EVENT_PAUSE_CHECKS 
CMD_EVENT_MENU_RESET_TO_DEFAULT_CONFIG 
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG 
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_CORE 
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_CONTENT_DIR 
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_GAME 
CMD_EVENT_MENU_SAVE_CONFIG 
CMD_EVENT_MENU_PAUSE_LIBRETRO 
CMD_EVENT_MENU_TOGGLE 
CMD_EVENT_SHADERS_APPLY_CHANGES 
CMD_EVENT_SHADER_PRESET_LOADED 
CMD_EVENT_SHADER_DIR_INIT 
CMD_EVENT_SHADER_DIR_DEINIT 
CMD_EVENT_CONTROLLERS_INIT 
CMD_EVENT_CHEATS_INIT 
CMD_EVENT_CHEATS_DEINIT 
CMD_EVENT_CHEATS_APPLY 
CMD_EVENT_NETWORK_DEINIT 
CMD_EVENT_NETWORK_INIT 
CMD_EVENT_NETPLAY_INIT 
CMD_EVENT_NETPLAY_INIT_DIRECT 
CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED 
CMD_EVENT_NETPLAY_DEINIT 
CMD_EVENT_NETPLAY_GAME_WATCH 
CMD_EVENT_BSV_MOVIE_INIT 
CMD_EVENT_BSV_MOVIE_DEINIT 
CMD_EVENT_COMMAND_INIT 
CMD_EVENT_COMMAND_DEINIT 
CMD_EVENT_REMOTE_INIT 
CMD_EVENT_REMOTE_DEINIT 
CMD_EVENT_MAPPER_INIT 
CMD_EVENT_MAPPER_DEINIT 
CMD_EVENT_AUDIO_REINIT 
CMD_EVENT_RESIZE_WINDOWED_SCALE 
CMD_EVENT_LOG_FILE_DEINIT 
CMD_EVENT_DISK_EJECT_TOGGLE 
CMD_EVENT_DISK_NEXT 
CMD_EVENT_DISK_PREV 
CMD_EVENT_DISK_APPEND_IMAGE 
CMD_EVENT_RUMBLE_STOP 
CMD_EVENT_GRAB_MOUSE_TOGGLE 
CMD_EVENT_GAME_FOCUS_TOGGLE 
CMD_EVENT_UI_COMPANION_TOGGLE 
CMD_EVENT_FULLSCREEN_TOGGLE 
CMD_EVENT_PERFCNT_REPORT_FRONTEND_LOG 
CMD_EVENT_VOLUME_UP 
CMD_EVENT_VOLUME_DOWN 
CMD_EVENT_MIXER_VOLUME_UP 
CMD_EVENT_MIXER_VOLUME_DOWN 
CMD_EVENT_DISABLE_OVERRIDES 
CMD_EVENT_RESTORE_REMAPS 
CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET 
CMD_EVENT_DISCORD_INIT 
CMD_EVENT_DISCORD_DEINIT 
CMD_EVENT_DISCORD_UPDATE 

Function Documentation

◆ command_event()

bool command_event ( enum event_command  cmd,
void data 
)

command_event: : Command index.

Performs RetroArch command with index .

Returns: true (1) on success, otherwise false (0).

command_event: : Event command index.

Performs program event command with index .

Returns: true (1) on success, otherwise false (0).

◆ command_free()

bool command_free ( command_t handle)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ command_get()

bool command_get ( command_handle_t handle)
Here is the caller graph for this function:

◆ command_network_new()

bool command_network_new ( command_t handle,
bool  stdin_enable,
bool  network_enable,
uint16_t  port 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ command_network_send()

bool command_network_send ( const char *  cmd_)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ command_new()

command_t* command_new ( void  )
Here is the caller graph for this function:

◆ command_playlist_push_write()

void command_playlist_push_write ( playlist_t playlist,
const char *  path,
const char *  label,
const char *  core_path,
const char *  core_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ command_playlist_update_write()

void command_playlist_update_write ( playlist_t playlist,
size_t  idx,
const char *  path,
const char *  label,
const char *  core_path,
const char *  core_display_name,
const char *  crc32,
const char *  db_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ command_poll()

bool command_poll ( command_t handle)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ command_set()

bool command_set ( command_handle_t handle)

◆ command_set_shader()

bool command_set_shader ( const char *  arg)
Here is the call graph for this function:
Here is the caller graph for this function: