mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
Removed UIKit_SetWindowMouseGrab(), mouse grab isn't supported on iOS
This commit is contained in:
@@ -91,7 +91,6 @@ static SDL_VideoDevice *UIKit_CreateDevice(void)
|
|||||||
device->RaiseWindow = UIKit_RaiseWindow;
|
device->RaiseWindow = UIKit_RaiseWindow;
|
||||||
device->SetWindowBordered = UIKit_SetWindowBordered;
|
device->SetWindowBordered = UIKit_SetWindowBordered;
|
||||||
device->SetWindowFullscreen = UIKit_SetWindowFullscreen;
|
device->SetWindowFullscreen = UIKit_SetWindowFullscreen;
|
||||||
device->SetWindowMouseGrab = UIKit_SetWindowMouseGrab;
|
|
||||||
device->DestroyWindow = UIKit_DestroyWindow;
|
device->DestroyWindow = UIKit_DestroyWindow;
|
||||||
device->GetDisplayUsableBounds = UIKit_GetDisplayUsableBounds;
|
device->GetDisplayUsableBounds = UIKit_GetDisplayUsableBounds;
|
||||||
device->GetWindowSizeInPixels = UIKit_GetWindowSizeInPixels;
|
device->GetWindowSizeInPixels = UIKit_GetWindowSizeInPixels;
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ extern void UIKit_HideWindow(SDL_VideoDevice *_this, SDL_Window *window);
|
|||||||
extern void UIKit_RaiseWindow(SDL_VideoDevice *_this, SDL_Window *window);
|
extern void UIKit_RaiseWindow(SDL_VideoDevice *_this, SDL_Window *window);
|
||||||
extern void UIKit_SetWindowBordered(SDL_VideoDevice *_this, SDL_Window *window, SDL_bool bordered);
|
extern void UIKit_SetWindowBordered(SDL_VideoDevice *_this, SDL_Window *window, SDL_bool bordered);
|
||||||
extern int UIKit_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen);
|
extern int UIKit_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen);
|
||||||
extern void UIKit_SetWindowMouseGrab(SDL_VideoDevice *_this, SDL_Window *window, SDL_bool grabbed);
|
|
||||||
extern void UIKit_UpdatePointerLock(SDL_VideoDevice *_this, SDL_Window *window);
|
extern void UIKit_UpdatePointerLock(SDL_VideoDevice *_this, SDL_Window *window);
|
||||||
extern void UIKit_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window);
|
extern void UIKit_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window);
|
||||||
extern void UIKit_GetWindowSizeInPixels(SDL_VideoDevice *_this, SDL_Window *window, int *w, int *h);
|
extern void UIKit_GetWindowSizeInPixels(SDL_VideoDevice *_this, SDL_Window *window, int *w, int *h);
|
||||||
|
|||||||
@@ -315,11 +315,6 @@ int UIKit_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window *window, SDL_Vi
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UIKit_SetWindowMouseGrab(SDL_VideoDevice *_this, SDL_Window *window, SDL_bool grabbed)
|
|
||||||
{
|
|
||||||
/* There really isn't a concept of window grab or cursor confinement on iOS */
|
|
||||||
}
|
|
||||||
|
|
||||||
void UIKit_UpdatePointerLock(SDL_VideoDevice *_this, SDL_Window *window)
|
void UIKit_UpdatePointerLock(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
{
|
{
|
||||||
#ifndef SDL_PLATFORM_TVOS
|
#ifndef SDL_PLATFORM_TVOS
|
||||||
|
|||||||
Reference in New Issue
Block a user