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
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
f3ba1d317c
device: support for Steam Controller on Linux
...
Adds lgrip and rgrip button handles, which are present on Steam Controller but also on the Oculus Touch
2018-12-31 16:10:56 +01:00
rdb
2087d8ee84
device: change InputDevice enums to enum classes
2018-11-30 20:41:06 +01:00
rdb
8edc019307
device: overhaul InputDevice API:
...
- Rename "controls" terminology for analog inputs to "axes"
- Change some naming of accessors
- Unexpose methods where they are available as properties
- Add serial_number field
- Put battery levels under a "battery" field
2018-09-16 20:22:22 +02:00
rdb
8d8c5a546d
input: rename "action_x" button handles to "face_x"
2018-09-16 14:50:00 +02:00
rdb
7cc100c38c
device: change ControlAxis enum to an Axis enum class
2018-08-26 21:18:29 +02:00
rdb
11723b27ee
device: various warning fixes for input-overhaul on Linux
2018-06-23 23:30:44 +02:00
rdb
234fd675b1
Merge branch 'master' into input-overhaul
2018-06-23 23:24:09 +02:00
rdb
ba2de46beb
Merge branch 'master' into input-overhaul
2018-06-08 15:23:47 +02:00
rdb
3da32b7b7c
input: split out LinuxInputDeviceManager from InputDeviceManager
2018-01-25 20:15:16 +01:00
rdb
96f6bd7fa5
input: fixes for joysticks in Linux compatibility mode
2018-01-07 17:39:44 +01:00
rdb
9fbdefe120
input: add analog trigger emulation on Linux
2018-01-07 17:26:48 +01:00
rdb
4f739e88cf
input: joystick buttons, use yaw/pitch/roll for axes, more devices
...
Also adds format_* functions to get string from enum value.
2018-01-07 14:50:54 +01:00
rdb
12cfc93b79
input: let InputDevice manage axis remapping, add C_twist axis
2017-12-22 15:21:50 +01:00
fireclawthefox
719e77a191
Changed button mapping
...
changed mapping of previous and next (i.e. wiimote's + and - keys) to
the same as the select and start button
2016-08-10 16:46:20 +02:00
fireclawthefox
e1661111c2
Exposed AnalogState and ButtonState
...
Published Analog- and ButtonState to be accessible from python
Added functions to find Controls and buttons to simplify access
Refactored highscore search for setting the device class
2016-08-04 22:52:01 +02:00
fireclawthefox
dcdbe4b339
Add handling for new gamepad buttons
...
Added handles to 1, 2, next and previous as available on the wiimote
2016-07-21 12:44:44 +02:00
rdb
c7dbf193f1
Fix Linux crash with Xbox One controller, fix compile warnings
2016-06-28 17:49:47 +02:00
rdb
fd16e34660
Fix Xbox One controller on Windows, add untested support for flight sticks and steering wheels
2016-06-24 13:32:10 +02:00
rdb
01e57e1bdd
Emulate d-pad from hat axes, fixes Xbox One d-pad buttons on Linux
2016-06-24 10:54:57 +02:00
rdb
b98d3c06ee
Merge branch 'master' into input-overhaul
2016-06-24 10:51:41 +02:00
rdb
1cc79633c1
Merge branch 'master' into input-overhaul
...
Conflicts:
panda/src/device/buttonNode.cxx
panda/src/device/clientAnalogDevice.I
panda/src/device/clientAnalogDevice.cxx
panda/src/device/clientButtonDevice.I
panda/src/device/clientButtonDevice.cxx
panda/src/device/clientDevice.I
panda/src/device/clientDevice.cxx
panda/src/device/clientDevice.h
panda/src/device/clientTrackerDevice.I
panda/src/device/trackerNode.I
panda/src/device/trackerNode.h
panda/src/display/callbackGraphicsWindow.cxx
panda/src/display/graphicsWindow.cxx
panda/src/display/graphicsWindowInputDevice.I
panda/src/display/graphicsWindowInputDevice.cxx
panda/src/display/graphicsWindowInputDevice.h
panda/src/tinydisplay/tinyOsxGraphicsWindow.mm
panda/src/tinydisplay/tinyXGraphicsWindow.cxx
panda/src/windisplay/winGraphicsWindow.cxx
panda/src/windisplay/winGraphicsWindow.h
panda/src/x11display/x11GraphicsWindow.cxx
2016-03-19 14:54:56 +01:00
rdb
ab66108661
Robustify Linux gamepad support
2015-12-19 16:03:28 +01:00
rdb
bd0683d101
Generalised input framework for raw mice, gamepads, trackers (incl. HMDs like Oculus Rift)
2015-12-11 15:26:40 +01:00