summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/monitor
Commit message (Collapse)AuthorAgeFilesLines
* sound/xaudio2_sound.cpp: Initial support for new sound system features. Vas Crabb2025-05-231-19/+31
|
* osd: Various cleanup and fixes: Vas Crabb2025-05-212-35/+63
| | | | | | | | | | | | * osd/interface/audio.h: Implemented movable and swappable patterns (reduces allocation and copying). * monitor/monitor_module.h: Got rid of a C string pointer, avoid the need for a static string object. * sound/sound_module.cpp: Moved default implementation stuff out of the header, use algorithm library in place of memcpy. * sound/pa_sound.cpp: Fixed a non-const global that should be const. * monitor/monitor_dxgi.cpp: Fixed an object leak. * Cleaned up some use of COM and COM-like things.
* Fix building with gcc-13 (#10917) Julian Sikorski2023-02-201-0/+1
|
* Various input and OSD refactoring: Vas Crabb2023-01-293-19/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed a few issues identified by Coverity: Vas Crabb2022-11-061-1/+1
| | | | | | | | | | | | | | | | | * cpu/m6805: Removed unnecessary comparison that can't be true from 'HC05 timer handler. * machine/z80scc.cpp: Fixed flag test in logging. * emu/devdelegate.h: Fixed use-after-move in functoid constructor. * util/unzip.cpp: Fixed integer promotion issue in ZIP16 member header handling. * util/xmlfile.cpp: Got rid of custom allocator functions that have alignment issues and no longer provide value. * capcom/alien.cpp: Use machine().rand() for determinism. * ensoniq/esqpanel.cpp: I/O stream eof() returns whether a read stopped short due to EOF, not whether the file pointer is at EOF. * sega/sms.cpp: Fixed a few use-after-move errors. * osd/modules/monitor: Fixed an apparent bug in what appears to be a setter member function.
* Clean up #includes in src/osd (#10029) ajrhacker2022-07-046-8/+11
| | | | | * Clean up #includes in src/osd * render/bgfx/view.cpp: Add license header
* Remove OSD_UWP from rest of code Miodrag Milanovic2021-10-261-17/+1
|
* looks like I64 size qualifier is only needed for MSYS64 GCC 9 and earlier (nw) Vas Crabb2020-06-022-2/+2
|
* fixed some modernize-use-auto clang-tidy warnings (nw) (#6238) Oliver Stöneberg2020-01-301-1/+1
|
* fixed some clang-tidy warnings (nw) (#6197) Oliver Stöneberg2020-01-222-2/+2
| | | | | | | | | | | | | | * 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)
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-264-5/+6
| | | | | | | | | | | | | | | | | (nw) This has been a long time coming but it's here at last. It should be easier now that logerror, popmessage and osd_printf_* behave like string_format and stream_format. Remember the differences from printf: * Any object with a stream out operator works with %s * %d, %i, %o, %x, %X, etc. work out the size by magic * No sign extending promotion to int for short/char * No widening/narrowing conversions for characters/strings * Same rules on all platforms, insulated from C runtime library * No format warnings from compiler * Assert in debug builds if number of arguments doesn't match format (nw) Also removed a pile of redundant c_str and string_format, and some workarounds for not being able to portably format 64-bit integers or long long.
* srcclean (nw) Vas Crabb2019-09-221-3/+3
|
* Fix compile (nw) Olivier Galibert2019-09-161-3/+2
|
* A few files that got missed (nw) arbee2019-09-151-0/+190
|
* fix windows compile (nw) Miodrag Milanovic2017-02-112-0/+2
|
* Remove emu.h from headers (nw) Olivier Galibert2017-02-112-0/+2
| | | | | | | | | | | | Per Vas' request. If the compile fails for you (i'm thinking osx and windows native debuggers here in particular), add '#include "emu.h"' as first include of the cpp files that fail. Due to our use of precompilation and forced inclusion, emu.h must be included as the very first non-comment thing we do if we want to be sure msvc compiles are identical to gcc/clang ones. Doing it directly instead of through an include increases the correctness probability by a magnitude.
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-282-6/+0
|
* Merge pull request #1749 from bradhugh/dynamic_api Vas Crabb2016-12-021-10/+5
|\ | | | | Created DYNAMIC_API macros for dynamic bind helper classes
| * Update name of DYNAMIC_API macros (nw) Brad Hughes2016-12-011-4/+4
| |
| * Simpler low-cost implementation making modules and function pointers class ↵ Brad Hughes2016-11-211-6/+5
| | | | | | | | members instead (nw)
| * Changing singleton to be thread safe (nw) Brad Hughes2016-11-201-1/+1
| |
| * Created DYNAMIC_API macros for cleaner definition of dynamically linked ↵ Brad Hughes2016-11-201-11/+7
| | | | | | | | functions
* | Small 32 bit windows monitor module fix (nw) Brad Hughes2016-11-281-1/+1
|/
* Change window handle storage to template instead of void* (nw) (#1725) Brad Hughes2016-11-173-3/+4
| | | | * Change window handle storage to template instead of void* (nw)
* Small cleanup (nw) Miodrag Milanovic2016-11-111-0/+4
|
* More UWP work - the UI actually renders (nw) Brad Hughes2016-11-101-1/+17
|
* Cleanup linux OSD (nw) Miodrag Milanovic2016-10-221-1/+1
|
* Bulk renaming of Windows string conversion functions Nathan Woods2016-10-032-4/+4
| | | | | 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
* srcclean (nw) Vas Crabb2016-09-264-6/+6
|
* Convert OSD monitor info to modules plus add DXGI implementation Brad Hughes2016-09-146-0/+731