-
Notifications
You must be signed in to change notification settings - Fork 38
/
opera_lr_callbacks.c
51 lines (43 loc) · 1.16 KB
/
opera_lr_callbacks.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <libretro.h>
retro_audio_sample_t retro_audio_sample_cb = NULL;
retro_audio_sample_batch_t retro_audio_sample_batch_cb = NULL;
retro_environment_t retro_environment_cb = NULL;
retro_input_poll_t retro_input_poll_cb = NULL;
retro_input_state_t retro_input_state_cb = NULL;
retro_log_printf_t retro_log_printf_cb = NULL;
retro_video_refresh_t retro_video_refresh_cb = NULL;
void
opera_lr_callbacks_set_audio_sample(retro_audio_sample_t cb_)
{
retro_audio_sample_cb = cb_;
}
void
opera_lr_callbacks_set_audio_sample_batch(retro_audio_sample_batch_t cb_)
{
retro_audio_sample_batch_cb = cb_;
}
void
opera_lr_callbacks_set_environment(retro_environment_t cb_)
{
retro_environment_cb = cb_;
}
void
opera_lr_callbacks_set_log_printf(retro_log_printf_t cb_)
{
retro_log_printf_cb = cb_;
}
void
opera_lr_callbacks_set_input_state(retro_input_state_t cb_)
{
retro_input_state_cb = cb_;
}
void
opera_lr_callbacks_set_input_poll(retro_input_poll_t cb_)
{
retro_input_poll_cb = cb_;
}
void
opera_lr_callbacks_set_video_refresh(retro_video_refresh_t cb_)
{
retro_video_refresh_cb = cb_;
}