Use SDL's relative mouse mode when capturing the mouse
This commit is contained in:
parent
ab814b7c78
commit
d8cf9bd734
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ std::tuple<float, float> platform::get_left_stick_position() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform::capture_mouse(const bool capture) {
|
void platform::capture_mouse(const bool capture) {
|
||||||
SDL_CaptureMouse((SDL_bool)capture);
|
SDL_SetRelativeMouseMode((SDL_bool)capture);
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform::begin_text_input() {
|
void platform::begin_text_input() {
|
||||||
|
|
Reference in a new issue