switch: enable SDL_SetRelativeMouseMode (#47)

This commit is contained in:
Matthieu Milan 2020-04-16 20:03:06 +02:00 committed by Dave Murphy
parent 9d5383ff8f
commit f94ecdc57f
1 changed files with 9 additions and 0 deletions

View File

@ -36,9 +36,18 @@ static uint64_t prev_buttons = 0;
static uint64_t last_timestamp = 0;
const uint64_t mouse_read_interval = 15; // in ms
static int
SWITCH_SetRelativeMouseMode(SDL_bool enabled)
{
return 0;
}
void
SWITCH_InitMouse(void)
{
SDL_Mouse *mouse = SDL_GetMouse();
mouse->SetRelativeMouseMode = SWITCH_SetRelativeMouseMode;
}
void