SDL
SDL copied to clipboard
Location API?
Wondering if this is worth adding...
- Windows has ILocation as a COM interface.
- Linux has GeoClue, available over D-Bus.
- macOS and iOS has Core Location
- Android has LocationServices
...Emscripten can use the browser's Geolocation API...
The Linux platform should use the xdg-desktop-portal API instead: https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Location
Here's some example for SDL Location API, on linux/dbus ! https://github.com/libsdl-org/SDL/pull/7849