Commit Graph

152 Commits

Author SHA1 Message Date
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
Jasmine Iwanek
322adf1c2b Initial underlying code support for more than 2 video cards 2024-07-19 23:27:21 -04:00
Miran Grča
15d2ee28c7 Merge pull request #4274 from Cacodemon345/patch-174
Compile fixes for Qt6 on Windows
2024-06-16 14:36:16 +02:00
Cacodemon345
c9176b2d91 Changes 2024-06-16 14:16:53 +06:00
usergithub64
b97cbceb07 Fixes for translation not working in the main window
Also need to add the appropriate translation strings to the language files
2024-05-24 11:50:01 +03:00
OBattler
2acb11d37c Implemented the Pro Audio Spectrum Plus serial mixer, Pro Audio Spectrum 16 parallel mixer, Pro Audio Spectrum Plus/16 SCSI, ESS ES688, all three ESS PnP AudioDrives, made the wavetables use a separate 44.1 kHz source, and made the Sound Blaster 16 PNP use a proper PNP ROM dump. 2024-05-03 17:02:13 +02:00
cold-brewed
4d8e7bd24e qt: Add UUID features, MAC address configuration, machine move detection 2024-04-02 11:47:29 -04:00
Alexander Babikov
ae7d4454cb Move Windows font overrides away from translations
Determine which font to use with a dedicated function instead
2024-03-20 20:33:28 +05:00
Alexander Babikov
8e06b5449f Overhaul plat_get_string()
Now takes constants with human-readable names instead of
Win32 string table IDs, language.h is no longer needed

ui_msgbox*() no longer accepts string IDs as arguments directly,
plat_get_string() must be explicitly called to retrieve the string
2024-03-20 20:33:28 +05:00
Cacodemon345
0fa576d8bb Compile fixes for Qt6 on Windows 2024-03-16 01:45:23 +06:00
OBattler
2c5a460d23 Removed the Win32 UI and the legacy makefiles. 2024-03-15 18:16:21 +01:00
RichardG867
e0c5eb49f1 DDC: EDID data improvements, hopefully fixes 1600x1200 on older OSes 2024-03-10 18:01:09 -03:00
Alexander Babikov
5acec5dfa4 qt: Remove the Direct3D 9 renderer 2024-02-13 18:40:07 +05:00
Cacodemon345
50e1a88463 Revert "Only the main window and its childs should be native widgets"
This reverts commit fe3aab2a0e.
2024-01-17 01:26:11 +06:00
Cacodemon345
fe3aab2a0e Only the main window and its childs should be native widgets 2024-01-17 00:56:07 +06:00