Commit Graph

525 Commits

Author SHA1 Message Date
richardg867
a62e3aff23 Selectable mouse type on Linux, part 1 2022-04-20 20:51:39 -03:00
richardg867
de82cf8bf1 macOS: Fix plat_getcwd on .app bundle 2022-04-20 13:35:14 -03:00
David Hrdlička
e60af6c29d Clean up plat.h a bit 2022-04-20 01:03:39 +02:00
Alexander Babikov
710d34db97 Remove unused variables and functions 2022-04-14 07:13:50 +05:00
Alexander Babikov
ae11a2f887 Ensure null termination with strncpy 2022-04-14 07:13:49 +05:00
Alexander Babikov
911821434e Fix variable initializtion warnings 2022-04-14 07:13:49 +05:00
Alexander Babikov
4e82d93729 Fix warnings related to variable types 2022-04-14 07:13:48 +05:00
Alexander Babikov
484a082122 Make sure certain variables used only on some platforms are defined only on said platforms 2022-04-14 07:13:47 +05:00
Alexander Babikov
eba088c692 Remove trailing whitespace + indentation consistency fixes 2022-04-14 07:10:18 +05:00
Alexander Babikov
97b6d57412 Remove an obsolete TODO file 2022-04-14 06:24:39 +05:00
Miran Grča
cc666e6cc4 Merge pull request #2281 from jriwanek-forks/named-initializers-3
Named initializers part 3
2022-04-12 23:38:32 +02:00
Jasmine Iwanek
702f80e58a Backport several changes from M&K 2022-04-12 17:26:05 -04:00
Cacodemon345
fe94e79fa0 qt: Fix crashes on failed loads of media images 2022-04-11 00:55:24 +06:00
David Hrdlička
048cfbea00 Fix accidental removal 2022-04-08 10:45:46 +02:00
David Hrdlička
25b8f42dc6 qt: FIx broken build due to missing define 2022-04-08 10:34:59 +02:00
David Hrdlička
e711b6c44a Fix ROM location on macOS 2022-04-08 10:20:01 +02:00
Miran Grča
ae3c035281 Merge pull request #2269 from emilazy/fix-qt6-macos
Fix Qt 6 build and modifier key handling on macOS
2022-04-08 03:45:18 +02:00
Emily
9c6001dabb qt: Fix Qt 6 modifier key handling on macOS
Per QTBUG-69608 (https://bugreports.qt.io/browse/QTBUG-69608),
QKeyEvent::nativeVirtualKey() returns 0 on Qt 6 (and possibly some
versions of Qt 5) for keyboard modifier events. Despite being closed,
the bug doesn't appear to have been fixed, or perhaps was fixed and
then regressed again.

Detect this case and handle the events manually by keeping track of the
active modifier keys and using QKeyEvent::nativeModifiers() and the
platform-specific modifier values.

Caps Lock requires some special handling and doesn't get discrete
press/release events, at least with the Qt input system; see the code
for details. It's possible some other toggle modifiers like Scroll Lock
will need special handling along these lines too.

Fix #2211.
2022-04-08 01:46:45 +01:00
Emily
ac77a21611 cmake: Fix Qt 6 plugin installation on macOS
Run find_package to import the CMake rules for the various plugins,
as install_qt5_plugin didn't work for me on Qt 6 otherwise, and install
the macOS style and icon plugins as well so that the widget style and
icons work correctly on Qt 6.

${_qt_plugin_dir} doesn't seem to get set by anything and
install_qt5_plugin hardcodes the PlugIns path, so hardcode that in
qt.conf as well.

Additionally, adjust the Qt library folder to take into account the
major version being used.
2022-04-08 01:46:41 +01:00
David Hrdlička
3449a173ae Move ROM search path code to rom.c, rewrite rom_fopen 2022-04-08 01:34:47 +02:00
David Hrdlička
a780d9a241 Rewrite plat_init_rom_paths in Qt frontend 2022-04-08 00:58:38 +02:00
Cacodemon345
e5ab6a8564 qt: Avoid reading absolute mouse input from cross-platform Qt code on Windows
This ensures only RAWINPUT sends mouse input to the emulated machine on Windows.
2022-04-08 01:51:32 +06:00
Miran Grča
facbad9dd1 Merge pull request #2261 from Cacodemon345/newqt
Multiple ROM paths implementation
2022-04-07 17:26:08 +02:00
Cacodemon345
c700f93b4b qt: Fix warnings 2022-04-07 01:27:16 +06:00
Cacodemon345
84b1a8a7d3 qt: Fix mistyped LCID value of en-US 2022-04-07 01:23:23 +06:00
Cacodemon345
027179ab95 qt/languages/pt-PT.po: Fix "No ROMs Found" message 2022-04-07 01:14:36 +06:00
Cacodemon345
0f54376224 Merge branch 'newqt' of ssh://github.com/Cacodemon345/86box into newqt 2022-04-07 01:00:09 +06:00
Cacodemon345
0fd3042e0c qt: Add support for loading ROMs from ~/Documents/86Box/roms on macOS 2022-04-07 00:57:16 +06:00
Cacodemon345
f8c53dec3a qt: Fix compilation on Linux 2022-04-06 19:56:30 +06:00
Cacodemon345
1a3a7bec0e Move platform-specific ROM path adding code into plat modules 2022-04-06 16:16:25 +06:00
Cacodemon345
6f0ac4eace qt: Fix creation of differencing VHDs 2022-04-03 01:24:09 +06:00
Miran Grča
f52b898add Merge pull request #2245 from Cacodemon345/newqt
qt: Get rid of resize rounding
2022-03-31 15:30:23 +02:00
Cacodemon345
e7566d6974 qt: Get rid of resize rounding 2022-03-23 16:00:36 +06:00
Miran Grča
d1898177ef Merge pull request #2243 from Cacodemon345/newqt
qt: Keyboard input now works properly when mouse is uncaptured
2022-03-21 13:25:58 +01:00
Cacodemon345
f2df8a4cce qt: Keyboard input now works properly when mouse is uncaptured 2022-03-21 15:28:43 +06:00
Miran Grča
4c1e9e33eb Merge pull request #2235 from Cacodemon345/newqt
wl_mouse: Don't uncapture mouse if is already uncaptured
2022-03-17 21:39:52 +01:00
RichardG867
1650b0692d CMI8x38: Fix for logging status bar segfault 2022-03-17 16:31:14 -03:00
Cacodemon345
81dfba16f3 wl_mouse: Don't uncapture mouse if is already uncaptured 2022-03-18 00:56:59 +06:00
ts-korhonen
f2ec3c6201 qt: uncapture mouse when deactivated or dialog.
Uncapture mouse when application is deactivated or window is blocked
(dialog shown). Re-capture after full screen dialog.
2022-03-16 18:19:44 +02:00
RichardG867
71ba610366 Merge branch 'master' of ssh://github.com/86Box/86Box into cleanup30
# Conflicts:
#	.ci/build.sh
#	.ci/dependencies_msys.txt
#	src/sound/snd_audiopci.c
2022-03-16 00:39:53 -03:00
RichardG867
f57cbe36b1 GDB Stub: More progress 2022-03-16 00:33:01 -03:00
ts-korhonen
3c3e42fb84 qt: Destroy the widgets when changing joystick device.
Just removing them from layout will not destroy them.
2022-03-15 18:24:38 +02:00
Alexander Babikov
4b8b7c3950 Add handling for several missing strings to plat_get_string on Qt and legacy Unix UIs 2022-03-15 04:19:10 +05:00
ts-korhonen
d12a92141b qt: Fix joystick dialog title 2022-03-14 19:50:20 +02:00
ts-korhonen
25ac5e0edf qt: Fix joystick dialog size.
Set fixed size as a constraint to allow the dialog conform to selections
instead of staying the initial minimum size.
2022-03-14 19:45:47 +02:00
Jasmine Iwanek
297909a884 midi out device named correctly to aid code readability 2022-03-13 09:00:03 -04:00
RichardG867
94be8cdfc6 GDB Stub: Initial commit 2022-03-12 20:20:25 -03:00
ts-korhonen
b1eeef7527 qt: Remove pragma parameters from shaders.
Fixes Intel HD4000 crashing on windows when selecting shaders, probably
also fixes Intel HD4400 shader errors.
2022-03-12 15:39:39 +02:00
ts-korhonen
105fe47bf3 qt: GL core; use safe version of strcpy 2022-03-12 15:38:44 +02:00
David Hrdlička
b5f18af541 Clean up the RtMidi optionality 2022-03-11 20:41:00 +01:00