Skip to content

rc_client_raintegration_set_event_handler

Jamiras edited this page Nov 22, 2024 · 2 revisions

Provides a callback for notifying the emulator when things happen inside the runtime that are unique to the RA integration.

Syntax

void rc_client_raintegration_set_event_handler(
    rc_client_t* client,
    rc_client_raintegration_event_handler_t handler
);

Parameters

client

The rc_client_t to associate the handler to.

handler

Function to call when various events happen during processing.


rc_client_raintegration_event_handler_t

void (*rc_client_raintegration_event_handler_t )(
    const rc_client_raintegration_event_t* event,
    rc_client_t* client
);

event

Information about the event that occurred.

client

The rc_client_t that spawned the event.


rc_client_raintegration_event_t

typedef struct rc_client_raintegration_event_t
{
  uint32_t type;

  const rc_client_raintegration_menu_item_t* menu_item;

} rc_client_raintegration_event_t;

type

The type of event that occurred.

menu_item

The menu item associated to the event (for menu item events).


RC_CLIENT_RAINTEGRATION_EVENT_MENUITEM_CHECKED_CHANGED

The checked state of the menu_item has changed.

RC_CLIENT_RAINTEGRATION_EVENT_MENU_CHANGED

One or more items has been added to or removed from the menu and it should be rebuilt.

(Minimum version: 11.5.0)

RC_CLIENT_RAINTEGRATION_EVENT_HARDCORE_CHANGED

Hardcore mode has changed.

RC_CLIENT_RAINTEGRATION_EVENT_PAUSE

The toolkit is requesting that the emulator be paused.

Remarks

Minimum version: 11.2.0

See also

rc_client_begin_load_raintegration

rc_client_set_event_handler

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally