summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/input/input_sdl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* input_sdl: Process control characters so that the natural keyboard can see ↵ AJR2020-01-101-0/+13
| | | | | | them (SDL normally strips these out) Don't strip linefeed characters (Ctrl-J) from natural keyboard input except when pasting strings
* input_sdl.cpp: Ignore joystick buttons beyond maximum supported number. Vas Crabb2019-12-071-2/+5
| | | | * Note that the code to map excess buttons to switches doesn't actually do anything useful while INPUT_MAX_BUTTONS and MAX_BUTTONS happen to be defined to the same number.
* SDL: recognize GUIDs for joysticks, allows stable input ID mapping [R. Belmont] arbee2019-11-171-5/+13
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-38/+274
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-274/+38
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* srcclean (nw) Vas Crabb2019-02-241-257/+257
|
* Fixed sdl2 keymap processing. [Couriersud] couriersud2019-02-161-40/+276
| | | | | | | | | | 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
|
* 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
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-4/+4
| | | | | 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-221-1/+1
| | | | utf16_char, unicode_char (nw)
* Adding id() property to input_device Tomer Verona2016-09-201-16/+16
| | | | | | | | | | | | 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.
* Each mouse should track its own double-click status (nw) Brad Hughes2016-09-071-8/+12
|
* Partially fix SDL joysticks with same name Brad Hughes2016-08-311-17/+16
| | | | Fixes #1334
* srcclean and translation regeneration Vas Crabb2016-08-291-1/+1
|
* osd input code cleanup (nw) Brad Hughes2016-08-221-26/+25
|
* Fix input issues on big endian systems (fixes #963) Brad Hughes2016-06-291-12/+12
|
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-1/+1
|
* A few minor input fixes and cleanups Brad Hughes2016-06-251-6/+24
| | | | | | - input modules exit() is called twice. Remove the unnecessary input_exit() method - removed unnecessary pointer init in handle_input_event and should_hide_mouse - When registering event callbacks in SDL, don't assume the SDL enum values are int-sized
* Move window_list to osd_common_t Brad Hughes2016-06-111-2/+2
|
* Unify window_list in Windows and SDL OSD Brad Hughes2016-06-101-2/+2
|
* ui refactoring [Vas Crabb] Vas Crabb2016-05-271-3/+15
| | | | | | | | * Make ARRAY_LENGTH cause a compile error if used with a pointer/vector * Clean up text input code, move common operations to inline templates * Fix numerous one-byte buffer overruns * Don't flat-out ignore input beyond the C1 hole * Fix decoding of SDL text input
* RIP sdlinc.h couriersud2016-05-061-1/+1
|
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-6/+6
|
* Revert "Temp revert of Brad changes (nw)" Miodrag Milanovic2016-04-251-9/+9
| | | | This reverts commit 5e831f6506ee06f8c30cb113551ee0fec53804db.
* Temp revert of Brad changes (nw) Miodrag Milanovic2016-04-251-9/+9
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-14/+14
|
* Split UI and frontend part from core [Miodrag Milanovic] Miodrag Milanovic2016-04-231-1/+1
|
* Refactor OSD window. Brad Hughes2016-04-211-9/+9
| | | | | | | | | | Unified renderer in osd_window as std::unique_ptr Made windows all std::shared_ptr<window_type> Made window lists std::list<std::shared_ptr<window_type>> Updated OSD SDL worker_param to not use malloc (not compatible with smart pointers) Made renderer pointer to window a weak reference. May not be available during destruction of the window.
* ui: Re-enabled configuration menu for single-machine and added some options. dankan18902016-04-151-0/+21
| | | | Adding handler for the right mouse button in the main menu, calls the machine configuration.
* Fixed joystick on Android preventing application to crash, cleanup init for ↵ Miodrag Milanovic2016-04-021-17/+18
| | | | SDL in total (nw)
* Unsubscribe SDL input modules from events on exit. Brad Hughes2016-03-301-0/+8
|
* Cleanups and version bump Miodrag Milanovic2016-03-301-12/+12
|
* Fix SDL input focus tracking bug plus remove references to USE_OLD_SDL_INPUT ↵ Brad Hughes2016-03-191-1/+1
| | | | compiler directive from the input refactor.
* Using SDL_INIT_GAMECONTROLLER it explicitly calls SDL_INIT_JOYSTICK some ↵ Miodrag Milanovic2016-03-051-5/+14
| | | | experimental code (nw)
* Refactor OSD input into modules Brad Hughes2016-02-281-0/+843