mirror of https://github.com/encounter/SDL.git
switch: enable SDL_SetRelativeMouseMode (#47)
This commit is contained in:
parent
9d5383ff8f
commit
f94ecdc57f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue