Comments (6)
Yes, this all makes sense. CGMouse has been hooked up for iOS and could be hooked up similarly for macOS. It probably needs refactoring and support for the hints as you mentioned.
from sdl.
This would be very valuable for all FPS type games that currently have to resort to nasty hacks like discussed in this thread,
https://discourse.libsdl.org/t/osx-raw-input-still-gives-acceleration-proposed-solution/20359
Would be nice if this was backported to SDL 2.x as well given how wide spread the use of SDL2, rather than the current assigned target of 3.2.0.
from sdl.
This has been asked for since #67, believe it or not. :)
from sdl.
Question is what it takes to make it work when sandboxed. Trying to make it work with ezQuake atm. Works great without sandboxing, but with sandboxing I wonder if it somehow blocks communication with gamecontrollerd or something.
from sdl.
I think CGMouseInput works in the sandbox; the ancient solution was trying to read from HID devices directly, which is a giant no-no for security.
from sdl.
Yes, it's supposed to be the golden way forward. I'm building with a cmake generated Xcode project so I must be missing something. Whatever it is, the solution will be valuable for this issue as well, as others will try to sandbox the future SDL implementation. A simple Xcode generated project in Swift that implements a simple handler gets the events when sandboxed so it should work.
from sdl.
Related Issues (20)
- SDL3: Mouse cursor gets locked when calling SDL_HideCursor() HOT 3
- WASAPI can't find requested audio endpoint: Element not found.
- SDL_CopyDirectory, SDL_RenameDirectory HOT 3
- SDL_SetSurfaceColorKey() sets wrong color HOT 4
- SDL_Init(SDL_INIT_AUDIO) randomly segfaults on init HOT 19
- NetBSD CI is down HOT 1
- SDL_GetHint does not work when not calling SDL_Init HOT 1
- main callbacks return enum values? HOT 1
- Missing Pen backends HOT 4
- SDL_AcquireCameraFrame returns frames at a higher FPS than specified on macOS 14.6.1 HOT 3
- SDL_ConvertSurfaceAndColorspace does not correctly palettize surfaces HOT 6
- SDL_Log not working on Windows with debugger attached HOT 10
- [SDL2] Gamepad Motion Sensors via Bluetooth don't work until you launch another SDL App with working Motion Sensors or swap older SDL2.dll files HOT 2
- Updates on dropping Apple frameworks not available on iOS? HOT 7
- Embed a SDL window by NativeControlHost control in AvaloniaUI, mouse cursor don't restore to default on Linux x11. HOT 1
- Feature request SDL_EVENT_FINGER_CANCELLED
- MFC window, pop a sdl window, break! HOT 1
- Decide and Document how planar data is stored in / accessed from Surfaces
- Always prefer downscaling in SDL_GetSurfaceImage HOT 3
- [SDL2] VITA: Can't create any render at all HOT 2
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.