Add some TODOs for overlay.

This commit is contained in:
Themaister 2012-12-20 15:53:09 +01:00
parent cc2e4015b5
commit a1fd01dbc6
3 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@ OBJ = retroarch.o \
audio/utils.o \ audio/utils.o \
audio/null.o \ audio/null.o \
input/null.o \ input/null.o \
input/overlay.o \
fifo_buffer.o \ fifo_buffer.o \
gfx/null.o \ gfx/null.o \
media/rarch.o \ media/rarch.o \

View File

@ -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); driver.overlay = input_overlay_new(NULL);
} }

View File

@ -469,6 +469,7 @@ size_t audio_sample_batch(const int16_t *data, size_t frames)
return frames; return frames;
} }
// TODO: This might need to be #ifdeffed out for irrelevant platforms.
static inline void input_poll_overlay(void) static inline void input_poll_overlay(void)
{ {
bool pressed = input_input_state_func(NULL, 0, bool pressed = input_input_state_func(NULL, 0,
@ -490,6 +491,7 @@ static void input_poll(void)
{ {
input_poll_func(); input_poll_func();
// TODO: This might need to be #ifdeffed out for irrelevant platforms.
if (driver.overlay) // Poll overlay state if (driver.overlay) // Poll overlay state
input_poll_overlay(); input_poll_overlay();
} }