summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/output/network.cpp
Commit message (Collapse)AuthorAgeFilesLines
* osd/asio.h: Move some duplicated code into the common header. Vas Crabb2025-06-211-5/+0
|
* Replaced most simple uses of sprintf with type-safe equivalents. (#10948) Erik2023-03-101-3/+2
|
* osd: Turned video modules into actual modules, fixed various issues. Vas Crabb2023-02-011-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't ignore the return status of OSD module initialisation. Attempt to fall back to an alternate module if the selected module fails to initialise. Log more useful diagnostic information at verbose level. Fixed BGFX crash on exit after toggling fullscreen. Also persist more settings than just the selected chains across toggling fullscreen. Turned video modules into OSD modules in the same sense as all the other OSD modules. They now use the same selection/fallback mechanism as all the other modules without special extra code in the OSD implementations. Untangled some object ownership mess. Windows own renderers, OSD objects own windows. Fixed a refrence loop that caused the first window object to always leak. Don't create renderer object until after underlying window has been created. Fixed issues with order of creation/destruction when toggling fullscreen or changing prescale in fullscreen with -switchres in SDL builds. Use more smart pointers in BGFX and Direct3D render modules. Most of the code now reutrns a smart pointer when handing over ownership or a naked pointer when retaining ownership. Fixed a few leaks and simplified cleanup code. Encapsulated various OSD modules better.
* Various input and OSD refactoring: Vas Crabb2023-01-291-140/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | osd: Supply OSD object to modules on initialisation. Encapsulated some event handling in the OSD objects rather than leaving it in free functions. Put various stuff in namespaces. osd/modules/input: Enabled dinput, xinput and winhybrid modules for Windows SDL builds, and enabled background input for dinput and xinput (and by extension winhybrid) modules. Also fixed some COM and X11 resource leaks. osd/modules/input/input_sdl.cpp: Flipped SDL mouse button order to match Windows, and exposed vertical and horizontal scroll as Z and rZ axes. Moved SDL UI event handling out of input devices into OSD object. osd/modules/input_rawinput.cpp: Changed lightgun Z axis token so it's correctly identified as a relative axis (it maps to the scroll wheel equivalent). osd: Added an option to choose the network provider module. Mostly useful if you build with both TUN/TAP and pcap support included, or if you want to disable emulated networking completely. emu/input.cpp: Use a better strategy for assembling input code names that uses fewer temporary strings and doesn't require use of the non-Unicode-aware space trimming function (fixes MT08552). osd/modules/input_dinput.cpp: Improved polling logic. osd: Made various parts of the input code less dependent on concrete emu objects, and reduced inappropriately passing around the machine object. Made input modules less dependent on OSD implementation. Encapsulated some stuff and got rid of some vestigial newui and SDL1 support code. Cleaned up some interfaces. Moved OSD options classes to their own files. Prepare to remove main.h from emu.h - it's mostly used to get the application name, which the vast majority of emulated devices don't need to do.
* Revert "fixed some modernize-use-equals-default clang-tidy warnings (… (#6360) Oliver Stöneberg2020-04-081-2/+4
| | | | | | | * Revert "fixed some modernize-use-equals-default clang-tidy warnings (nw)" This reverts commit 54486ab9 * fixed merge error
* fixed some modernize-use-equals-default clang-tidy warnings (nw) (#6237) Oliver Stöneberg2020-01-301-4/+2
|
* fixed some clang-tidy warnings (nw) (#6197) Oliver Stöneberg2020-01-221-1/+1
| | | | | | | | | | | | | | * fixed some bugprone-throw-keyword-missing clang-tidy warnings (nw) * fixed some modernize-use-nullptr clang-tidy warnings (nw) * fixed some readability-delete-null-pointer clang-tidy warnings (nw) * fixed some performance-faster-string-find clang-tidy warnings (nw) * fixed some performance-for-range-copy clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw)
* Fix Solaris 2.11 (non-Oracle) Rick V2019-08-191-0/+5
|
* srcclean (nw) Vas Crabb2018-05-271-2/+2
|
* Output system changes [headkaze, R. Belmont] arbee2018-05-061-45/+46
| | | | | * Cleaned up syntax for network provider * Added pause and savestate commands to both network and win32 providers
* never hurts to srcclean (nw) Vas Crabb2017-07-091-39/+39
|
* remove unnecessary verbosity (nw) arbee2017-07-041-3/+2
|
* output: Fleshed out network output provider so it has the same capability as ↵ arbee2017-07-041-6/+69
| | | | | | | | | | | | legacy Win32. Clients: - Connect to TCP port 8000 - Messages will be of the form "verb = value\1"; if your client is busy when MAME is spamming, you may get multiple messages glued together by \1 separators. (\1 was chosen because it's neutral on Win32/Mac/Linux). - You will get a "hello = 1" message upon connection to MAME, and a "mamerun = 0" message when MAME shuts down. - You may send "send_id = n" to MAME to get IDs where n=0 means ROM set name of current game, 1-? = output node names - MAME will reply "req_id = string\1"; this is currently the only case where a string will be returned instead of an integer value. - A working example POSIX client will be released soon.
* srcclean (nw) Vas Crabb2016-10-231-49/+49
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-1/+1
| | | | | 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
* Replaced code usage of libuv with asio library (nw) Miodrag Milanovic2016-10-071-34/+119
|
* Fixed network output to include all data [headkaze] arbee2016-06-051-1/+6
|
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-5/+4
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-2/+2
|
* Basic TCP server based on libuv [Inaki Baz Castillo,Miodrag Milanovic] Miodrag Milanovic2016-04-101-5/+32
|
* Added skeleton for network output (nw) Miodrag Milanovic2016-04-091-0/+59