summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/input.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-2334/+0
|
* Remove obsolete CapsLock hack. Sergey Svishchev2015-10-021-7/+0
|
* Move UI mode key out of SDL options into generic options Vas Crabb2015-06-151-1/+1
|
* did license settings for OG and Andrew, cleared up OSD part for licenses (nw) Miodrag Milanovic2015-05-091-5/+2
|
* Added license headers to the rest of files (nw) Miodrag Milanovic2015-05-071-0/+2
|
* bugix and sdl fix (nw) Miodrag Milanovic2015-04-221-1/+1
|
* moved all to std::string (nw) Miodrag Milanovic2015-04-221-1/+1
|
* There is no implicit conversion to char* in std::string (nw) Miodrag Milanovic2015-04-121-2/+2
|
* cstr() - > c_str() as preparation for move to std::string (nw) Miodrag Milanovic2015-04-111-17/+17
|
* Fixed fullscreen toggling (SDL2) on OSX. Simplified multithreading couriersud2015-02-231-0/+2
| | | code-paths (via defines). (nw)
* Make OpenGL renderer available in mainline build as well. This needs to couriersud2015-02-221-1/+1
| | | | be explicitly enabled by specifying USE_OPENGL=1. More code alignment. [Couriersud]
* sdl render operation moved towards the way window deals with renderers. couriersud2015-02-081-3/+3
|
* Emscripten target now uses SDL2. [Justin Kerk] Justin Kerk2015-02-071-17/+4
|
* Removed debug output from input.c. couriersud2015-02-061-1/+0
|
* Remove some passing around of running_machine where it is not needed. couriersud2015-02-051-8/+8
| | | (nw)
* Moved all window related code to window.c. (nw) couriersud2015-02-051-11/+11
|
* Reowrked the -video soft driver so it works like accel and opengl. That couriersud2015-02-031-3/+3
| | | | will enable the move of some now identical functions back to window.c. (nw)
* Fix SDL build breakage (nw) arbee2015-02-021-3/+3
|
* Fixed natural keyboard input on all platforms for SDL2 builds. (nw) couriersud2015-02-031-4/+8
|
* introduced concept of an osd_renderer. Changed draw code to couriersud2015-02-011-3/+3
| | | inherit from this interface. (nw)
* More transition to "m_" members. (nw) couriersud2015-01-311-2/+2
|
* All private members for sdl_window_info now start with "m_". (nw) couriersud2015-01-311-17/+17
|
* Cleanups and version bumpmame0158 Miodrag Milanovic2015-01-281-9/+9
|
* Removed some machine() references couriersud2015-01-141-2/+2
|
* Fixed two SDL2 bugs: couriersud2015-01-061-2/+11
| | | | | | | - Window height was 0 after a switch from fullscreen to windowed if sdlmame was started in fullscreen - Fixed -switchres. This is now working on Ubuntu 14.04 again. Performance will vary on your hardware and drivers and I suspect SDL to be partly broken.
* Cleanups and version bumpmame0157 Miodrag Milanovic2014-12-311-1/+1
|
* Changed sdl_window_info to be closer to C++: couriersud2014-12-291-4/+4
| | | | | | - Made some members private - moved static functions into sdl_window_info - extended work_param struct with constructors for better readability
* Use consistent logical ID for joystick registration log Kyungdahm Yun2014-12-151-1/+1
|
* Add 4 7seg digits for the outputs 6, 7, 14 and 15. The remaining 22, 23, 30 ↵ jbu2014-12-091-1/+1
| | | | and 31 are unused (nw)
* Merged in cleanup changes from osd branch (nw) Miodrag Milanovic2014-04-261-1/+1
|
* -Made osd_interface base class for OSD and moved initialization for each ↵ Miodrag Milanovic2014-04-251-20/+12
| | | | | | | | subsystem in it as virtual calls. (nw) -Moved midi handling in base class -Cleaned running_machine of information of next machine -All is cleaned after exiting of running_machine so debugger window is removed as well till next machine is started -Made osdmini to compile
* reverting to classic ui due to lot of issues, as much as I hate reverting ↵ Miodrag Milanovic2014-04-171-17/+20
| | | | some else code (nw)
* Moved eminline and related files into /src/osd since it's system related (nw) Miodrag Milanovic2014-04-161-28/+28
| | | | | | | | Moved delegates into /src/lib/util to enable usage of delegates in other project parts Moved mame_printf_* calls into /src/osd/osdcore.c and renamed them to osd_printf_* Changed mess.mak to display compilation of ymmu100.ppm nicely
* Merge of new menubar code Nathan Woods2014-04-121-20/+17
|
* Moved core template container classes up from emutempl.h to coretmpl.h: Aaron Giles2014-03-111-33/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Aaron Giles] * these classes now no longer take a resource_pool; everything is managed globally -- this means that objects added to lists must be allocated with global_alloc * added new auto_pointer<> template which wraps a pointer and auto-frees it upon destruction; it also defaults to NULL so it doesn't need to be explicitly initialized * moved tagged_list template to tagmap.h Redo of the low-level memory tracking system: [Aaron Giles] * moved low-level tracking out of emu\emualloc into lib\util\corealloc so it can be shared among all components and used by core libraries * global_alloc and friends no longer use a resource pool to track allocations; turns out this was a wholly redundant system that wasted a lot of memory * removed global_resource_pool entirely * added global_free_array to delete arrays allocated with global_alloc_array * added tracking of object versus array allocation; we will now error if you use global_free on an array, or global_free_array on an object Added new utility helper const_string_pool which can be used to efficiently accumulate strings that are not intended to be modified. Used by updated makelist and software list code. [Aaron Giles] Updated png2bdc and makelist tools to not leak memory and use more modern techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles] Deprecated auto_strdup and removed all uses by way of caller-managed astrings and the software list rewrite. [Aaron Giles] Rewrote software list management: [Aaron Giles] * removed the notion of a software_list that is separate from a software_list_device; they are one and the same now * moved several functions into device_image_interface since they really didn't belong in the core software list class * lots of simplification as a result of the above changes Additional notes (no whatsnew): Moved definition of FPTR to osdcomm.h. Some changes happened in the OSD code to fix issues, especially regarding freeing arrays. SDL folks may need to fix up some of these. The following devices still are using tokens and should be modernized (I found them because they kept their token as void * and tried to delete it, which you can't): namco_52xx_device (mame/audio/namco52.c) namco_54xx_device (mame/audio/namco54.c) namco_06xx_device (mame/machine/namco06.c) namco_50xx_device (mame/machine/namco50.c) namco_51xx_device (mame/machine/namco51.c) namco_53xx_device (mame/machine/namco53.c) voodoo_device (emu/video/voodoo.c) mos6581_device (emu/sound/mos6581.c) aica_device (emu/sound/aica.c) scsp_device (emu/sound/scsp.c) dmadac_sound_device (emu/sound/dmadac.c) s3c2440_device (emu/machine/s3c2440.c) wd1770_device (emu/machine/wd17xx.c) latch8_device (emu/machine/latch8.c) duart68681_device (emu/machine/68681.c) s3c2400_device (emu/machine/s3c2400.c) s3c2410_device (emu/machine/s3c2410.c) strataflash_device (mess/machine/strata.c) hd63450_device (mess/machine/hd63450.c) tap_990_device (mess/machine/ti99/990_tap.c) omti8621_device (mess/machine/omti8621.c) vdt911_device (mess/video/911_vdt.c) apollo_graphics_15i (mess/video/apollo.c) asr733_device (mess/video/733_asr.c)
* Moved src/emu/ui.? ==> src/emu/ui/ui.?, changed to follow MAME OOP ↵ Nathan Woods2014-01-291-1/+1
| | | | conventions; we now have a ui_manager class
* Cleanups and version bumpmame0151 Miodrag Milanovic2013-11-051-1/+1
|
* Upstream changes needed to compile JSMESS [Justin Kerk, John Vilk, Justin ↵ Justin Kerk2013-11-031-4/+17
| | | | | | de Vesine] Out of whatsnew: there are still a few files being worked on, and the build scripts which are currently set up outside of the MAME source hierarchy. Always open to cleaner ways of doing things.
* SDL: Fix SDL1 build (nw) Alex W. Jackson2013-10-261-0/+4
|
* SDL: Fix joystick to work with final SDL 2.0 (nw) R. Belmont2013-10-261-1/+5
|
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-621/+621
|
* First pass at modernizing struct definitions. Aaron Giles2012-09-151-16/+8
|
* Clean-ups and version bump Miodrag Milanovic2012-07-301-3/+3
|
* SDL: Use XInput to allow multiple lightguns on Linux/*BSD targets. [Markus ↵ R. Belmont2012-07-251-1/+418
| | | | Rathgeb, based on a patch by SpritesMods.com]
* ioport.c C++ conversion. Mostly internal changes, with no Aaron Giles2012-05-031-31/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | intended differences from previous behavior. For drivers, the main change is that input_port_read() no longer exists. Instead, the port must be fetched from the appropriate device, and then read() is called. For member functions, this is actually simpler/cleaner: value = ioport("tag")->read() For legacy functions which have a driver_data state, it goes: value = state->ioport("tag")->read() For other legacy functions, they need to fetch the root device: value = machine.root_device().ioport("tag")->read() The other big change for drivers is that IPT_VBLANK is gone. Instead, it has been replaced by a device line callback on the screen device. There's a new macro PORT_VBLANK("tag") which automatically points things to the right spot. Here's a set of imperfect search & replace strings to convert the input_port_read calls and fix up IPT_VBLANK: input_port_read( *\( *)(machine\(\)) *, *([^)]+ *\)) ioport\1\3->read\(\) input_port_read( *\( *)(.*machine[()]*) *, *([^)]+ *\)) \2\.root_device\(\)\.ioport\1\3->read\(\) (state = .*driver_data[^}]+)space->machine\(\)\.root_device\(\)\. \1state-> (state = .*driver_data[^}]+)device->machine\(\)\.root_device\(\)\. \1state-> input_port_read_safe( *\( *)(machine\(\)) *, *([^,]+), *([^)]+\)) ioport\1\3->read_safe\(\4\) IPT_VBLANK( *\)) IPT_CUSTOM\1 PORT_VBLANK("screen")
* Fixed testkeys to work with SDL2.0. Keymaps can now contain SDL1.3 and ↵ Couriersud2012-02-161-26/+32
| | | | SDL2.0 mappings. Updated km-de.txt as an example. [Couriersud]
* Added support for (track)balls to osd/sdl. [Couriersud] Couriersud2012-02-151-2/+25
| | | | | | | | | | | | | | | | | | | | | | | To test it, I used my Logitech Trackball (normally a mouse) and configured it as a joystick. Prerequisites: - Locate your linux input device for the trackball. In my case that's /dev/input/event3 - "sudo chmod a+r /dev/input/event3" - "export SDL_JOYSTICK_DEVICE=/dev/input/event3" This forces sdl to recognize the trackball as a input device. -mame64 missile -nomouse -w Configure the trackball axis. Make sure the mouse pointer is outside the window and window still has keyboard focus - most modern window manager should support this. Quit and restart with -mame64 missile -mouse -now to hide the mouse. Voila. Works.
* updated sdl os-core to compile against stock SDL-2.0 [couriersud]. Couriersud2012-02-121-12/+33
| | | | | | | | | | | - The SDL team has moved from 1.3 to 2.0. At the same time, changes were made to allow SDL1.2 and SDL2.0 to coexist. All SDL2.0 include files are now in /usr/include/SDL2. - Added sdlinc.h to avoid having tons of #ifdef .. #include in the code. - Scalemode is no longer a per-window setting - Fixed a bug in YUV rendering. - Use SDL_GetClipboard (SDL2.0) - Updated README_SDL20.txt Currently, SDL 2.0 is only supported on *nix. Volunteers welcome.
* Should fix osd keys. Aaron Giles2011-05-301-16/+16
|
* (Finally found the time to finish this....) Aaron Giles2011-05-301-64/+65
| | | | | | | | | | | | | | | | | | | | | | | | Low-level input upgrade. Classes now exist for input_codes, input_items, input_devices, and input_seqs. Also created an input_manager class to hold machine-global state and made it accessible via machine.input(). Expanded the device index range (0-255, up from 0-16), and the OSD can now specify the device index explicitly if they can better keep the indexes from varying run-to-run. [Aaron Giles] Note that I've built and run SDL on Windows, but not all the code paths were exercised. If you use mice/joysticks extensively double-check them to be sure it all still works as expected. This is mainly an OSD and core change. The only thing impacting drivers is if they query for specific keys for debugging. The following S&Rs took care of most of that: S: input_code_pressed( *)\(( *)([^, ]+) *, * R: \3\.input\(\)\.code_pressed\1\(\2 S: input_code_pressed_once( *)\(( *)([^, ]+) *, * R: \3\.input\(\)\.code_pressed_once\1\(\2