Comments (2)
It's a hack to work around older games that handle camera movement by hiding the cursor and constantly warping it back to the center while measuring the distance that it moved. Special care has to be taken in this scenario, or the cursor can wind up outside of the window and cannot be warped back in.
from sdl.
It's a hack to work around older games that handle camera movement by hiding the cursor and constantly warping it back to the center while measuring the distance that it moved. Special care has to be taken in this scenario, or the cursor can wind up outside of the window and cannot be warped back in.
I may be misunderstanding/missing a piece of information, but why not allow warping regardless of visibility?
from sdl.
Related Issues (20)
- 10,000th issue 🥳 HOT 1
- [Camera] CoreMedia: Incorrect pixel format used for USB HDMI Video grabber (YUYV 4:2:2) HOT 3
- SDL2 SDL_Keycode returns characters in current keyboard layout HOT 2
- SDL3 doesn't statically link without SDL_STATIC_PIC flag on Ubuntu 24.04
- SDL3 static link fail when making a shared object without SDL_STATIC_PIC HOT 4
- [Regression (again)] Metal YUV rendering broken on Intel MacOS HOT 15
- SDL_ReadU32LE vs SDL_SwapLE32: location of LE suffix is inconsistent HOT 2
- There is no `SDL_ReadS8` HOT 1
- [email protected]
- `SDL_SetRelativeMouseMode` in `SDL_EVENT_MOUSE_BUTTON_DOWN` blocks until the button is released HOT 1
- Hint for using RawInput for mouse? HOT 10
- Inconsitent types for SDL_KeyCode HOT 1
- [Question][SDL3/testffmpeg] How can do 'SDL_RenderFillRect' on video frame? HOT 4
- [SDL2] Unable to make EGL context current (call to eglMakeCurrent failed, reporting an error of EGL_BAD_ACCESS) HOT 7
- [SDL3] Is SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_POINTER not implemented? HOT 1
- Linux - Installing SDL2 .so file using CMake HOT 1
- Source engine toGL games crash when not using x11 HOT 2
- Crash with SDL_EVENT_GAMEPAD_REMOVED [[repro inside]] HOT 17
- Unnecessary CMake re-configures triggered by git history changes HOT 3
- SDL3 Linux Wayland - SDL_SetWindowFullscreen incorrect size HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.