rdb
9145b6c729
Merge branch 'release/1.10.x'
2024-01-04 16:36:03 +01:00
git2323
f9a86bced6
device: fix small typo, fixes 1571 ( #1572 )
2023-11-18 11:49:53 +01:00
rdb
c34f2bbc64
Switch to UPPER_CASE convention for enum classes as per PEP-8
...
Old names are still kept around for compatibility reasons, but deprecated - fortunately there are not that many cases of enum classes yet
2023-08-02 11:16:54 +02:00
WMOkiishi
ea84547805
general: Mark many constructors as `explicit`
...
Closes #1514
Fixes #1431
2023-08-02 08:18:43 +02:00
rdb
5e26aae1ff
cleanup: Fix assorted issues uncovered by clang-tidy
2023-02-12 18:17:03 +01:00
rdb
27e54ffd75
Merge branch 'release/1.10.x'
2022-10-03 18:38:47 +02:00
rdb
6ad68d95cb
device: Fix missing init_type for InputDeviceNode
2022-09-28 06:32:46 +02:00
rdb
ecf4d19e83
Merge branch 'release/1.10.x'
2022-05-10 16:12:36 +02:00
rdb
fbea0056f5
general: Allow compiling Panda headers on Windows without NOMINMAX
2022-05-10 15:58:33 +02:00
rdb
46c1b887ea
Fix heap alignment with SSE2 on 32-bit Windows by inheriting MemoryBase
...
Fixes #510
2022-03-02 09:57:44 +01:00
rdb
a0be50c769
general: Fix assorted compiler warnings
2022-03-01 16:09:07 +01:00
rdb
5196719f29
device: Fix XInput compile error compiling for newer Windows versions
2022-02-23 21:46:15 +01:00
rdb
e27162df0b
Merge branch 'release/1.10.x'
2022-02-06 15:32:24 +01:00
rdb
38bea01dab
device: Do not enumerate keyboard/mouse devices on macOS by default
...
This causes an annoying "this app would like to receive keystrokes from any application" alert to be shown
Enable iokit-scan-mouse-devices or iokit-scan-keyboard-devices to restore the old behavior
2022-01-22 15:45:00 +01:00
rdb
d46651c032
Merge branch 'release/1.10.x'
2022-01-04 16:35:19 +01:00
rdb
d1c756713d
display: Handle raw event for key between Shift and Z on ISO keyboards
...
This key is called raw-< for lack of anything better, it's usually mapped as backslash on US keyboards but that would not allow distinguishing between the backslash key near the enter key.
2022-01-04 11:05:46 +01:00
rdb
b53895aa3d
Merge branch 'release/1.10.x'
2022-01-01 18:18:46 +01:00
rdb
5caf0ff5d6
device: Correction to 0e9ea67066
...
Fixes #1218
2022-01-01 15:14:30 +01:00
rdb
0e9ea67066
device: Implement correct sign extension for Windows raw devices
...
Hopefully, fix for #1218
2022-01-01 12:15:00 +01:00
rdb
72bf9e7fd1
device: Map FrSky RC controller as flight stick instead of gamepad
...
Reverts f01399bba8
2022-01-01 12:09:19 +01:00
rdb
9598065641
Merge branch 'release/1.10.x'
2021-12-26 14:13:23 +01:00
rdb
f01399bba8
device: Correct axis mappings for FrSky RC controller on Windows
...
See #1218
2021-12-26 12:30:05 +01:00
rdb
8b19761844
device: Add spam output for raw windows device
2021-12-26 12:30:05 +01:00
rdb
fc625eec11
Merge branch 'release/1.10.x' into incoming
2021-12-12 22:54:15 +01:00
rdb
0e91f4ee1c
device: Gracefully ignore invalid data index from raw input device
2021-12-12 18:38:09 +01:00
rdb
f79ef139ba
device: Don't try to access raw input devices an Android
...
Fixes a log warning
2021-12-12 14:27:56 +01:00
rdb
dd3510eea7
Merge branch 'release/1.10.x'
2021-04-08 12:30:35 +02:00
rdb
51a6923008
device: Work around FreeBSD kernel bug for querying gamepad axes
...
This is to support older kernels, which always returned 0 from successful ioctl, rather than the number of bits. This was fixed in the FreeBSD kernel trunk.
2021-04-05 17:19:47 +02:00
rdb
7be4b7c3bb
device: Support evdev gamepads on FreeBSD
2021-04-05 17:14:30 +02:00
rdb
ff80adc680
Merge branch 'release/1.10.x'
2021-03-05 11:59:21 +01:00
rdb
2e3ce27865
device: Add Windows gamepad mapping with VID:PID 2563:0523
...
From https://discourse.panda3d.org/t/gamepad-emulator-and-panda/27336
2021-03-04 20:47:55 +01:00
rdb
2156e6deb2
Merge branch 'release/1.10.x'
2020-12-26 14:00:29 +01:00
rdb
55d43a1d57
device: Fix macOS crash when unplugging device in threaded pipeline
...
Fixes #1082
2020-12-26 12:46:45 +01:00
rdb
a5ae292c3e
Merge branch 'release/1.10.x'
2020-12-18 12:56:31 +01:00
rdb
6f35cb0235
device: Silently ignore invalid evdev keycodes generated by some drivers
...
Fixes #1066
2020-12-15 12:33:22 +01:00
rdb
dcc08ac572
Merge branch 'release/1.10.x'
2020-07-25 14:58:35 +02:00
Mitchell Stokes
2893d8cef8
device: Fix erroneous dpad_*-up events when emulating a dpad on Linux
...
The first time axis are processed while a dpad axis is engaged will
result in the opposite dpad "button" getting set to a state of S_up from
S_unknown, which results in an '-up' event getting fired. Instead,
assume the emulated dpad buttons start in a state of S_up.
This fix is for the Joystick API and for the evdev API, but only the
evdev changes were tested.
Closes #973
2020-07-25 14:07:33 +02:00
rdb
00305bccae
device: fix failure to open message-only window
...
Not sure why I was getting this, but this seems to fix it
2020-04-13 15:10:29 +02:00
kamgha
0df97a2c6b
CMake: Fix Windows library names for case-sensitive filesystems
...
Closes #865
2020-02-23 16:28:40 +01:00
rdb
c59b91f503
Merge branch 'release/1.10.x'
2020-02-23 14:53:16 +01:00
kamgha
c2866ea4ed
Fix includes for Windows on case-sensitive filesystems
...
Closes #866
2020-02-22 12:55:45 +01:00
rdb
b272af8bbf
Merge branch 'cmake'
2020-01-22 11:20:51 +01:00
rdb
05d5bac598
Merge branch 'release/1.10.x' into incoming
2020-01-21 15:34:25 +01:00
Donny Lawrence
17dddeedc4
device: Fix 10.15 segfault on USB hotplug
...
For some reason, IOHIDDeviceRegisterRemovalCallback() no longer works on
10.15+, so an app will crash once trying to poll a device that doesn't
exist anymore. Thankfully, there is the alternative solution of using
IOHIDManagerRegisterDeviceRemovalCallback(). This just required a little
rearranging of the callback code, as well as keeping track of the
connection between IOHIDDeviceRefs and IOKitInputDevices so we actually
know which device to remove.
Closes #847
2020-01-21 14:52:01 +01:00
Donny Lawrence
28711814e7
device: Replace erroneous && with ||.
2020-01-15 16:04:37 -06:00
rdb
1bb4a032aa
Drop support for Windows XP
2020-01-13 15:06:44 +01:00
rdb
b212d254d0
Merge branch 'release/1.10.x' into incoming
2020-01-07 22:09:59 +01:00
rdb
c9fb371e87
device: correction for DualShock 4 support on Windows
2020-01-07 21:25:26 +01:00
rdb
27fe133df5
device: attempt to fix DualShock 4 analog axis mapping
2020-01-07 15:23:14 +01:00
rdb
81b33a7afa
Merge branch 'release/1.10.x'
2020-01-06 21:06:57 +01:00