mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
(UWP) uwp_input_next_frame - change function signature so we
can diretly insert this into the input driver's 'poll' function callback
This commit is contained in:
parent
7f80eb3477
commit
a05e16e398
@ -34,11 +34,6 @@ typedef struct uwp_input
|
||||
void *empty;
|
||||
} uwp_input_t;
|
||||
|
||||
static void uwp_input_poll(void *data)
|
||||
{
|
||||
uwp_input_next_frame();
|
||||
}
|
||||
|
||||
static void uwp_input_free_input(void *data)
|
||||
{
|
||||
free(data);
|
||||
@ -181,7 +176,7 @@ static int16_t uwp_input_state(
|
||||
|
||||
input_driver_t input_uwp = {
|
||||
uwp_input_init,
|
||||
uwp_input_poll,
|
||||
uwp_input_next_frame, /* poll */
|
||||
uwp_input_state,
|
||||
uwp_input_free_input,
|
||||
NULL,
|
||||
|
@ -32,7 +32,7 @@ char* uwp_trigger_picker(void);
|
||||
|
||||
void* uwp_get_corewindow(void);
|
||||
|
||||
void uwp_input_next_frame(void);
|
||||
void uwp_input_next_frame(void *data);
|
||||
bool uwp_keyboard_pressed(unsigned key);
|
||||
int16_t uwp_mouse_state(unsigned port, unsigned id, bool screen);
|
||||
int16_t uwp_pointer_state(unsigned idx, unsigned id, bool screen);
|
||||
|
@ -695,7 +695,7 @@ extern "C" {
|
||||
}
|
||||
}
|
||||
|
||||
void uwp_input_next_frame(void)
|
||||
void uwp_input_next_frame(void *data)
|
||||
{
|
||||
uwp_current_input = uwp_next_input;
|
||||
uwp_next_input.mouse_rel_x = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user