Commit Graph

166 Commits

Author SHA1 Message Date
Cacodemon345
1a18bf58ac Make emulator thread time critical if possible on Windows to reduce fluctuations 2025-07-09 17:07:33 +06:00
Cacodemon345
916533499a Add 10ms interval option (not exposed yet to UI)
Fix percentage counter
2025-07-09 12:59:16 +06:00
Cacodemon345
b45d796218 Allow up to 50 missed CPU frames instead of 500 2025-07-09 02:11:55 +06:00
Cacodemon345
7b6d726c18 Restore 1 ms sleep 2025-07-09 01:14:08 +06:00
Cacodemon345
4680d758a6 1ms 2025-07-08 15:55:50 +06:00
Cacodemon345
1b735084a4 Always load "opengl32.dll" from application directory if it exists 2025-07-07 17:44:47 +06:00
OBattler
7d579fb3f9 Qt: Remove the superfluous second instance of the CPU override warning. 2025-06-30 00:53:21 +02:00
Jasmine Iwanek
9e34464759 Deal with renderer magic numbers 2025-06-28 19:07:59 -04:00
OBattler
c15f6d757c Fixed all the vid_api checks in the QT code. 2025-06-29 00:35:38 +02:00
Alexander Babikov
229899dbfe Merge branch 'master' into vmm 2025-06-22 03:16:00 +05:00
Miran Grča
b19240a168 Windows hook: do not block anything if keyboard requires capture and it is not captured. 2025-06-09 18:22:14 +02:00
cold-brewed
c6da2caff2 vmm preview 2025-05-30 15:20:23 +05:00
Cacodemon345
39fdda6dd9 Fix compilation without extra-cmake-modules 2025-05-07 20:22:38 +06:00
Cacodemon345
572c9e176b Implement keyboard grabbing for Wayland 2025-05-07 17:52:26 +06:00
Cacodemon345
6d2128ab05 Make Qt shortcuts actually work in fullscreen
Also removes hacks related to fullscreen.
2025-04-05 23:59:49 +06:00
Cacodemon345
dd0e626133 Set LC_NUMERIC to "C" in program startup
For whatever fucking reason, glibc's functions dealing with decimal numbers apparently can only accept either commas or dots in strings, but not both. Meanwhile, both Windows and macOS have no apparent issues accepting both.

I will never understand why they decided to even consider such behaviour acceptable, especially since those ARE used for parsing decimal numbers in many programs, but I guess it's their own version of Not Invented Here syndrome that they (or anyone else) can't be bothered to deal with. This is not how good C standard libraries are written, at all.
2025-03-29 01:18:37 +06:00
Cacodemon345
7c4df701cb Add option to inhibit multimedia keys from host on Windows 2025-03-13 19:55:46 +06:00
OBattler
6779a3c1bd Hook Keyboard Input: Ignore the extended flag for scan codes F1 and F2, fixes the passing of the Hanja and Han/Eng keys to the guest. 2025-03-12 23:16:16 +01:00
OBattler
7261a0d74b Hook input: Fix Pause scan code. 2025-03-12 17:53:58 +01:00
OBattler
9e5697126b QT: Fix two strings. 2025-03-11 10:40:40 +01:00
Cacodemon345
dceb13f859 OpenGL error messages are now reported properly 2025-03-10 13:27:29 +06:00
Cacodemon345
86343327be Initial PCem OpenGL 3.x renderer port 2025-03-08 02:13:14 +06:00
Cacodemon345
74368bfe7a Don't include cpu.h in timer.h
Change the name of the define used to indicate SVGA multi-monitor-capable cards
2025-03-06 19:26:11 +06:00
Cacodemon345
95f30192e5 USB multimedia keys now work on Windows 2025-02-27 22:09:55 +06:00
Miran Grča
8eee344adb Update qt_main.cpp 2025-02-03 02:58:00 +01:00
Miran Grča
ff68384c49 Merge pull request #5200 from Cacodemon345/windows-dark-mode
Windows dark mode
2025-02-03 02:57:23 +01:00
Miran Grča
11506e740c Update qt_main.cpp 2025-02-03 02:56:36 +01:00
Miran Grča
0998f03d6f Update qt_main.cpp 2025-02-03 02:56:08 +01:00
Miran Grča
79e4386daa Update qt_main.cpp 2025-02-03 02:55:34 +01:00
Jasmine Iwanek
5f273265ae Assorted warning fixes 2025-02-02 03:24:50 -05:00
OBattler
eaa4f16379 Windows hook input: Remove an excessive log line. 2025-01-05 16:42:24 +01:00
OBattler
117bbc43c7 Windows: Pause's fake CTRL needs to be adjusted for break code as well. 2025-01-03 19:44:03 +01:00
OBattler
5a40204e31 Windows: Bring back hook input, this time with fixes for right Shift and Pause. 2025-01-03 16:04:46 +01:00
OBattler
c7c8f0a814 Another attempt to fix the hook. 2025-01-03 14:49:38 +01:00
OBattler
ff098f6c7e Fix the condition of the hook. 2025-01-03 13:03:56 +01:00
OBattler
2ca36cdc7d Fixed a typo in a comment. 2025-01-03 05:21:45 +01:00
OBattler
92e5ed6aae Keyboard hook: Fixed segmentation fault when non-primary monitors are enabled but none is actually in use. 2025-01-03 00:47:35 +01:00
OBattler
06923a2800 Switched back to raw input - it appears it *does* work with the hook. 2025-01-03 00:15:28 +01:00
OBattler
3b79448286 Switch back to only one hook (it turns out the second hook was neither needed nor working) and filter keyboard input properly, fixes #5084. 2025-01-02 02:09:15 +01:00
OBattler
8791e5b227 Make sure the blocked combinations are only blocked from the host, not the guest. 2024-12-31 04:30:42 +01:00
OBattler
f8930ea207 Actually commit the correct file and pray God it will compile. 2024-12-31 04:05:51 +01:00
OBattler
8b05c58fb9 Switched to two hooks, so the emulator doesn't get the input from the entire host OS. 2024-12-31 03:59:38 +01:00
OBattler
a11712b651 Make the hook only run if it's either captured or full screen. 2024-12-31 03:27:21 +01:00
OBattler
defeb47ca5 Switched from raw input to low-level keyboard hook, with -W/--raw to optionally re-enable raw input (needed to debug, so the hook doesn't cause GDB to make system input unusably slow), fixes #4399. 2024-12-31 00:48:50 +01:00
OBattler
cb957fe517 Changed to plat_delay_ms() according to tneukom's latest suggestion. 2024-12-25 00:29:56 +01:00
OBattler
59baaaf5a6 Only call timerBeginPeriod(1); on Windows, fixes Linux and Mac builds. 2024-12-24 20:29:44 +01:00
OBattler
45124363a5 Also replace the other thread sleep with play_delay_ms() and remove the #ifdef's. 2024-12-24 19:30:35 +01:00
OBattler
8db59e3c5c qt/qt_main.cpp: Use plat_delay_ms(1) instead of thread sleeping, closes #5066. 2024-12-24 19:25:00 +01:00
OBattler
f6d89766b0 Remove the usage of the undefined vnc_enabled variable, fixes #4961. 2024-11-13 06:31:16 +01:00
OBattler
cdd01eceea QT: Restore RichardG's hard reset workaround. 2024-08-24 04:24:06 +02:00