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)
- Question: Why is SDL still built on C90? HOT 2
- Add SDL_AcquireCameraFrame as SDL_Texture 0-copy texture. HOT 1
- SDL 3 Cursor misbehavior switching from Fullscreen to Windowed in Wayland when cursor is hidden HOT 8
- SDL_CloseAudioDevice hangs when closing a stream initialized with a very low audio rate. (SDL2, PulseAudio) HOT 9
- [SDL2 Vita] Wrong touch IDs gets assigned to touch devices HOT 2
- SDL2 and SDL example from action not detecting controller in Android 14 HOT 18
- Touch inputs can get stuck in pressed state HOT 3
- SDL_GetKeyFromScancode does not consider the keyboard layout HOT 17
- GCD main dispatch queue events are not handled HOT 1
- Is there any plan to support HarmonyOS? HOT 4
- [Feature] Hi-DPI custom cursor support for MacOS (and possibly other systems?) HOT 4
- `SDL_ConvertEventToRenderCoordinates` doesn't convert pen event coordinates HOT 2
- Weird error messages on Xcode and Mac OS (NSRemoteView, TUINSRemoteViewController)
- `SDL_HasJoystick()` & `SDL_HasGamepad()` always return true HOT 4
- SDL_CreateThreadWithStackSpace should probably be a generic SDL_Properties thing. HOT 2
- SDL3: Do we need two duplicate ways to get Renderer name? HOT 1
- [Feature Request]: Add support for browser engine (E.g. Chromium or WebKit) to SDL3 HOT 1
- Single channel alpha formats
- Remove the `SDL_RendererInfo` struct and use the properties API instead HOT 4
- Unsupported Pixel Format
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.