summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/input
Commit message (Collapse)AuthorAgeFilesLines
* Linux X11 Input: Fix multiple lightgun support Kiall Mac Innes2019-04-051-2/+26
| | | | | | | On X11 Linux, every lightgun event was passed onto every lightgun device within MAME. This obviously works for 1 gun, but with 2, it causes both crosshairs to move in the same direction at the same time.
* Merge pull request #4698 from kiall/bug-4695 R. Belmont2019-03-011-1/+17
|\ | | | | Linux X11 Input: Fix lightgun support
| * Linux X11 Input: Fix lightgun support Kiall Mac Innes2019-02-281-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDL/X11 number mouse/lighgun buttons 1,2,3, while windows and other parts of MAME like offscreen_reload expect 0,2,1. Transpose buttons 2 and 3, and then -1 the button number to align the numbering schemes. This fixes lightgun support on Linux - tested with an Ultimarc AimTrak and the following config: lightgun 1 lightgun_device lightgun lightgunprovider x11 lightgun_index1 "Ultimarc Ultimarc" offscreen_reload 1 Note: MAME must be compiled with XInput support: make -j10 NO_USE_XINPUT=0 Fixes bug #4695
* | srcclean (nw) Vas Crabb2019-02-241-257/+257
| |
* | Fixed sdl2 keymap processing. [Couriersud] couriersud2019-02-163-43/+280
|/ | | | | | | | | | Keymaps must have been broken for ages: - It is now possible to map every scancode SDL2 defines. - Removed keycode field. This was a leftover from SDL1.x - Fixed bug preventing keymaps from working. - Fixed the DE keymap. - Converted other keymaps to new format and added a comment that they have to be reviewed and fixed.
* Keep track of which SDL input subsystems were initialized (nw) Justin Kerk2019-01-011-4/+16
|
* Better Emscripten SDL fix (nw) Justin Kerk2018-12-311-4/+5
|
* Fix joystick initialization with Emscripten SDL [Justin Kerk] Justin Kerk2018-12-301-0/+4
|
* nothing to see here (nw) arbee2018-11-031-2/+17
|
* Fix debug assert failure when using SDL fullscreen toggle (nw) AJR2018-08-061-1/+2
|
* Make "Keypad ," and "Keypad =" standard keys AJR2018-05-111-0/+2
|
* Remove all uses of first_screen() from core files, nw Ryan Holtz2018-03-111-2/+7
|
* Rationale (nw) AJR2017-10-301-0/+1
|
* Make SDL input less eager to generate double-click events when mouse doesn't ↵ AJR2017-10-301-1/+1
| | | | move between clicks
* input: make xinput analog triggers half-axes and default IPT_PEDAL2 to RZ- ↵ hap2017-10-172-12/+12
| | | | 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-132-5/+13
| | | | | | | | 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-132-13/+5
| | | | Axis+Z Rotation where the axis resting position was at the middle of the trigger (nw)
* Don't process every character individually when searching - this reduces Vas Crabb2017-08-101-1/+1
| | | | | | lag if you keep typing while a big list is searched. (nw) patch up German translation
* Compile testing anybody? (nw) Olivier Galibert2017-02-271-4/+2
|
* Some reports of garbage in console with DInput controllers. Brad Hughes2017-02-271-2/+7
| | | | Change to snprintf with assert since apparently snprintf fixes the reported problem.
* UWP: Fix alt key input (nw) Brad Hughes2017-01-111-1/+15
|
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-288-21/+1
|
* srcclean (nw) Vas Crabb2016-11-272-27/+27
|
* Fix key names with -keyboardprovider win32 Vas Crabb2016-11-251-4/+8
|
* UWP: keyboard scancodes start at 1 (nw) Brad Hughes2016-11-171-2/+6
| | | | Also thread synchronization which will be needed later when we have multiple windows (nw)
* Change window handle storage to template instead of void* (nw) (#1725) Brad Hughes2016-11-175-13/+13
| | | | * Change window handle storage to template instead of void* (nw)
* UWP: Missing gamepad reset caused control sticking (nw) Brad Hughes2016-11-151-0/+5
|
* UWP: Hotkeys for gamepad plus more time for gamepad discovery (nw) Brad Hughes2016-11-152-3/+37
|
* UWP: Better keyboard key names (nw) Brad Hughes2016-11-153-14/+15
|
* UWP: Enable gamepad support and update keyboard support (nw) Brad Hughes2016-11-143-72/+529
|
* Add basic keyboard input to UWP (nw) Brad Hughes2016-11-113-135/+318
|
* Small cleanup (nw) Miodrag Milanovic2016-11-111-1/+1
|
* simplified memory allocation for osd_module (nw) Miodrag Milanovic2016-11-112-0/+4
|
* Unbreak non-Windows builds yet again (nw) AJR2016-11-101-0/+3
|
* UWP builds again but by no means working (nw) Brad Hughes2016-11-101-3/+0
|
* Polymorphize input_device and input_class; move to separate source file (nw) AJR2016-10-241-0/+2
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-2210-39/+39
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* use standard types uintptr_t, char16_t and char32_t instead of FPTR, ↵ Miodrag Milanovic2016-10-222-9/+9
| | | | utf16_char, unicode_char (nw)
* Merge remote-tracking branch 'mamedev/master' Tomer Verona2016-10-096-14/+54
|\
| * Misc. keyboard input improvements AJR2016-10-081-1/+5
| | | | | | | | | | | | | | | | - Add BS, Tab, 00, 000 keys common on add-on keypads as input items; SDL may recognize these, but DirectInput does not - Assign Keypad 00 and Keypad 000 in several drivers' input lists - Add SDL keycode for "cancel" key - Add keypad keys as alternates to natural keyboard - Move has_keyboard() out of the core; enabled() test is unnecessary now that all optional keyboards are slot devices (nw)
| * Merge pull request #1469 from npwoods/new_strconv_overloads Vas Crabb2016-10-053-6/+6
| |\ | | | | | | Adding new string conversion overloads
| | * Bulk renaming of Windows string conversion functions Nathan Woods2016-10-033-6/+6
| | | | | | | | | | | | | | | utf8_from_[a|w|t]string ==> osd::text::from_[a|w|t]string [a|w|t]string_from_utf8 ==> osd::text::to_[a|w|t]string
| * | Fix two leaks (nw) Brad Hughes2016-10-031-6/+41
| |/
| * srcclean (nw) Vas Crabb2016-09-261-1/+1
| |
| * Merge pull request #1405 from tverona1/master Brad Hughes2016-09-209-63/+72
| |\ | | | | | | Adding support for stable controller id's
| * | Convert OSD monitor info to modules plus add DXGI implementation Brad Hughes2016-09-141-0/+1
| | |
* | | Incorporate product / instance directinput device ids Tomer Verona2016-10-091-2/+15
| |/ |/| | | | | | | | | | | This change generates a more unique device id for derect input devices by incorporating the product unique identifier and instance unique identifier. This allows for better disambiguation on device id when mapping controllers via mapdevice config settings.
* | Adding id() property to input_device Tomer Verona2016-09-209-73/+74
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Support for configuring device to conrtoller id Tomer Verona2016-09-121-2/+10
|/ | | | | | | | This change adds support for configuring device to conrtoller id. This allows for stable controller ids even if USB devices are plugged / unplugged, system is rebooted, etc. See documentation for additional context.
* Each mouse should track its own double-click status (nw) Brad Hughes2016-09-071-8/+12
|