path: root/src/osd/modules/input/input_xinput.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Slightly cleaned up OSD input modules. Vas Crabb2021-07-291-68/+130
| | | | | | | | | | Removed support for DirectInput 7 and earlier. It hasn't been tested in years, and it's not relevant on any supported OS. DirectInput is effectively finalised at version 8, and is unlikely to get an API update in the future. Use more string[_view] and fewer C strings, and tightened up scope of a few things.
* input: make xinput analog triggers half-axes and default IPT_PEDAL2 to RZ- ↵ hap2017-10-171-7/+7
| | | | instead of Z+, placing IPT_PEDAL and IPT_PEDAL2 on separate axes. (nw)
* Revert "xinput: the left+right triggers combined are considered the Z Axis, ↵ AJR2017-10-131-3/+10
| | | | | | | | not Z Axis+Z Rotation where the axis resting position was at the middle of the trigger (nw)" The DirectInput Z-axis trigger merger seems more widely considered a bug than a feature, and probably should not be the default MAME behavior. This reverts commit 80a64430a39f306f702766525a093ac1141f7252.
* xinput: the left+right triggers combined are considered the Z Axis, not Z ↵ hap2017-10-131-10/+3
| | | | Axis+Z Rotation where the axis resting position was at the middle of the trigger (nw)
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-281-3/+0
* Adding id() property to input_device Tomer Verona2016-09-201-3/+3
| | | | | | | | | | | | This change adds id() property to input_device, which represents the unique device id. This allows the osd layer when creating a device to pass a friendly display name along with a unique identifier. Currently the device id is only used to map a physical controller device to controller id, but can be used more generally in the future. For raw input devices, we use the full raw input name as the device id. For all other devices, we fall back to device name as the device id. The "uniqueness" of the device id is not currently enforced in code.
* osd input code cleanup (nw) Brad Hughes2016-08-221-2/+1
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-0/+2
| | | | to inline functions (nw)
* Fix input issues on big endian systems (fixes #963) Brad Hughes2016-06-291-5/+5
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-1/+1
* Introduce dynamic_module Giuseppe Gorgoglione2016-06-111-34/+12
| | | | | This is a central cross-platform facility to dynamically bind functions from shared libraries. Updated all OSD modules to use it.
* Hybrid Input Module: Change error printing to verbose on probe() and error ↵ Brad Hughes2016-05-311-2/+2
| | | | on init()
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-1/+1
* Fix bug in Xinput DPAD POV mapping. Brad Hughes2016-04-101-1/+1
* Correct trigger axis. XInput small code cleanup. Brad Hughes2016-04-091-16/+16
* Make XInput triggers centered at 0 Brad Hughes2016-04-061-4/+4
* Make Xinput triggers analog Brad Hughes2016-04-061-6/+6
* Hybrid DirectInput/XInput module Brad Hughes2016-04-041-252/+154
* Cleanups and version bump Miodrag Milanovic2016-03-301-3/+3
* General code cleanup in input modules. Using ComPtr to manage DirectInput ↵ Brad Hughes2016-03-181-4/+4
| | | | resources.
* With latest package from MSYS of clang 3.8.0 build at least compile fine on ↵ Miodrag Milanovic2016-03-111-1/+1
| | | | | | windows (nw) Strange crashing while executing
* fix build errors (nw) Jeffrey Clark2016-03-051-1/+1
* Simplify xinput dynamic linking Brad Hughes2016-03-021-66/+20
* Dynamically load xinput Brad Hughes2016-03-011-4/+141
* Add XInput support for Windows OSD Brad Hughes2016-02-291-0/+290