aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp
Commit message (Collapse)AuthorAgeFilesLines
* eden-cli: set the window title from the main threadSssnowyyy3 days1-2/+12
| | | | | | | | The titlebar timer runs on SDL's timer thread, and on macOS AppKit throws when a window title is set from there, aborting eden-cli two seconds in. The timer now only prepares the title; the main loop applies it. Assisted-by: Claude Opus 5.5 (code changes, debugging and commit message)
* Build fixes for linuxDjihads806 days1-0/+1
|
* eden-cli: crash handler prints the faulting stack first; log close requestsTakoroka6 days1-0/+2
| | | | | | | MiniDumpWithIndirectlyReferencedMemory left an empty file on Eden's address space, so print the exception, address and stack as module+offset before writing a smaller dump, and report a failed write. A window close or quit request is now logged, to tell it from a crash.
* nx2: frame-locked input replay and quieter logsTakoroka7 days1-0/+23
| | | | | | | | | | | EDEN_NX2_KEY_RECORD records keyboard transitions as "f<frame>:code" against a global count of guest presents; EDEN_NX2_KEY_SCRIPT replays them on the same frames (or by seconds, as before), so a played session reproduces exactly. Debug aids: the PC/LR/SP of the first unmapped reads, NSO load addresses, EDEN_NX2_IPC_SUMMARY (request counts every 5 s), EDEN_NX2_FORCE_LOD0. Unmapped-access logging is rate limited and the per-draw/semaphore spam is demoted, so long sessions stay under the log size cap.
* eden-cli: fix SDL3 main-callback lifetime bugsTakoroka8 days1-1/+4
| | | | | | | | | - SDL_AppInit never stored *appstate, so every later callback got null. - SDL_AppInit/SDL_AppEvent returned SDL_APP_SUCCESS, which tells SDL3 to quit; they must return SDL_APP_CONTINUE. - InputSubsystem was a local in SDL_AppInit but the window and its timers keep a pointer to it; keep it in SdlState, ahead of the window. - Guard the mouse timer against firing before the mouse driver exists.
* [input] Fix mouse drift on Qt/SDL frontends (#4352)lizzie2026-09-141-0/+6
| | | | | | | | | | | | | | | | | | Fixes regression from #4229 Mouse wasn't updated periodically to prevent "infinite drift". Timer for polling is now controlled by frontend directly, this should reduce latency considerably and wasted cycles spinwaiting, it also removes an extra thread which is always welcome. - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4352 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
* [eden-cli] rework loop to use new SDL3 event dispatch system (#4108)lizzie2026-08-121-56/+36
| | | | | | | | | | | | | modernized into the new SDL3 API for event dispatching. also stopped using the periodic comparison and just added a SDL timer like it wants us to do is it better than before? well it's certainly more portable now. docs say this improves battery usage on busywaits for event polling. Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4108 Reviewed-by: Maufeat <sahyno1996@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
* [core/hle/services/am] nuke ButtonPoller and Mouse thread (#4229)lizzie2026-07-261-0/+2
| | | | | | | | | | | | | | | | | Signed-off-by: lizzie <lizzie@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- doesn't even do anything now, please check if controller i/o is affected by this change this should also fix latency issues with the mouse the ButtonPoller thread isn't longer required since we update the state immediately with the .on_change callback registered Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4229 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
* [externals] Update to SDL3 (#3952)Kaydax2026-05-181-0/+269
Since the launch of the steam controller I think it's only best to push towards updating to SDL3 allowing for a wider range of controller support I went ahead and started on getting it working. Everything here should be functional, I've personally tested it all on Arch Linux. Still untested on windows, so looking for feedback on that Any feedback and help would be appreciated! Main changes: - Bump everything to SDL3 - Handle SDL3 audio and input - Add steam controller support, including HD Rumble - Improved battery reporting via the status icon by using real % rather than state alone Co-authored-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3952 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: Lizzie <lizzie@eden-emu.dev>