mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 19:21:27 +00:00
Add some TODOs for overlay.
This commit is contained in:
parent
cc2e4015b5
commit
a1fd01dbc6
@ -20,6 +20,7 @@ OBJ = retroarch.o \
|
||||
audio/utils.o \
|
||||
audio/null.o \
|
||||
input/null.o \
|
||||
input/overlay.o \
|
||||
fifo_buffer.o \
|
||||
gfx/null.o \
|
||||
media/rarch.o \
|
||||
|
3
driver.c
3
driver.c
@ -719,6 +719,9 @@ void init_video_input(void)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: This should probably be done somewhere else.
|
||||
if (driver.overlay)
|
||||
input_overlay_free(driver.overlay);
|
||||
driver.overlay = input_overlay_new(NULL);
|
||||
}
|
||||
|
||||
|
@ -469,6 +469,7 @@ size_t audio_sample_batch(const int16_t *data, size_t frames)
|
||||
return frames;
|
||||
}
|
||||
|
||||
// TODO: This might need to be #ifdeffed out for irrelevant platforms.
|
||||
static inline void input_poll_overlay(void)
|
||||
{
|
||||
bool pressed = input_input_state_func(NULL, 0,
|
||||
@ -490,6 +491,7 @@ static void input_poll(void)
|
||||
{
|
||||
input_poll_func();
|
||||
|
||||
// TODO: This might need to be #ifdeffed out for irrelevant platforms.
|
||||
if (driver.overlay) // Poll overlay state
|
||||
input_poll_overlay();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user