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
Nathan S
b78f0b0881
device: add support for DualShock Gen 2 (PS4) controllers on Windows
...
Closes #831
Co-authored-by: rdb <git@rdb.name>
2020-01-06 16:17:02 +01:00
rdb
390abac276
Merge branch 'release/1.10.x'
2019-12-18 18:00:41 +01:00
rdb
72c5555dc0
device: invert digitizer Y axis on Linux to match Windows
...
It may intuitively feel upside down, but the current behaviour actually matches base.mouseWatcherNode, so this is probably the most consistent thing to do.
2019-12-18 17:55:44 +01:00
rdb
986b803e71
device: recognize digitizers and pressure axis as well in evdev
...
Note that the Y axis is still inverted compared to on Windows; we need to decide what convention to follow here.
2019-12-17 22:56:26 +01:00
rdb
b67c7dd84f
device: support digitizers via Win32 raw input API
2019-12-17 22:33:27 +01:00
rdb
9565d99fab
Merge branch 'release/1.10.x'
2019-12-08 15:18:51 +01:00
LD
791be4766a
MacOS: Don't crash if no elements are returned by IOHIDDeviceCopyMatchingElements
...
Fixes #797
2019-12-03 23:26:25 +01:00
Leandro Benedet Garcia
71dfc51f8a
general: Changed macros and definitions for the engine to compile with MinGW ( #793 )
2019-12-02 09:21:01 -07:00
Sam Edwards
5fa4af9189
CMake: Rely on GNUInstallDirs to specify install paths
...
This makes multiarch OSes happy as they can dictate that
64-bit libraries go into 'lib64'
2019-08-31 00:48:42 -06:00
Sam Edwards
1a654cba04
CMake: Record the location that headers are installed
...
This populates INTERFACE_INCLUDE_DIRECTORIES on the targets
after they're installed.
2019-08-30 22:58:18 -06:00
Sam Edwards
19ed9f6b47
Merge branch 'master' into cmake
2019-08-24 18:07:12 -06:00
Sam Edwards
abc941245e
general: Fix missing includes (and one forward declaration)
2019-08-24 18:05:28 -06:00
rdb
dc599901bc
Work around shutdown hang when compiling with SIMPLE_THREADS=1
...
This is a workaround for a specific case of #508
2019-08-12 19:37:11 +02:00
rdb
932e981572
device: fix deadlock when building with SIMPLE_THREADS=1
...
GetMessage blocks without yielding, so we need to use an alternative message pump using PeekMessage instead.
Fixes #704
2019-08-12 19:34:17 +02:00
Sam Edwards
039f5af34e
Merge branch 'master' into cmake
2019-06-03 23:12:23 -06:00
rdb
750afbb188
device: Linux fixes for Trust GXT 24 and a few other cheap gamepads
...
Fixes #576
2019-05-12 20:34:19 +02:00
rdb
7f0ac22ca5
device: fix mappings for various generic gamepads on Windows
...
See also #576
2019-05-02 21:32:31 +02:00
Sebastian Hoffmann
16c3ca5c87
device: Fix swapped axes on right stick for Jess Colour Rumble Pad
...
Closes #639
2019-05-01 17:19:18 +02:00
Rishabh Tewari
bfb50ab7ff
device: don't crash on Linux if no devices are found
...
Fixes #634
Closes #635
2019-04-29 00:32:34 +02:00
Sam Edwards
6097d34ead
CMake: Neatly format everything for readability and consistency
2019-04-14 22:37:18 -06:00
rdb
239dc40032
device: fix crash when unplugging certain devices on macOS
...
Fixes #621
2019-04-14 22:11:20 +02:00
Sam Edwards
671f15e052
Merge branch 'master' into cmake
2019-04-13 17:29:44 -06:00
rdb
1a9867ae2e
device: remove executable permissions from inputDeviceSet.*
2019-04-02 02:08:47 +02:00
Sam Edwards
c63562088b
device: Fix missing include
2019-03-18 04:10:35 -06:00
Sam Edwards
f8161cc529
Merge branch 'master' into cmake
2019-03-12 02:03:16 -06:00
rdb
45778b9e9f
device: use threaded message loop on Windows (see #562 )
2019-03-04 16:20:52 +01:00
rdb
7f4491cb98
device: disable message loop in WinInputDeviceManager for now
...
This was a change in aadc62a96c but seems to cause other problems, see #562
2019-03-02 12:39:42 +01:00
rdb
3875cc8259
device: add proper mapping for 8bitdo N30 Pro Controller on Linux
2019-02-07 22:28:04 +01:00
rdb
0ef9f9bef5
device: various button/axis mapping fixes in Windows raw impl
...
Now uses a table like on Linux with the various mappings.
2019-02-06 22:06:43 +01:00