summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Various input and OSD refactoring: Vas Crabb2023-01-291-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove http related header pollution (#9201) Miodrag Milanović2022-01-261-0/+10
| | | | | | | | | * Remove http related header polution * remove now invalid message * fixed issued detected by clang * Fixed CR at EOF
* emu: correct some file headers (nw) hap2020-06-191-2/+2
|
* srcclean (nw) Vas Crabb2017-03-261-2/+2
|
* Refactored HTTP handling to be easier to extend and use (nw) Miodrag Milanovic2017-03-191-185/+3
|
* more workaround (nw) Vas Crabb2017-02-271-2/+2
|
* don't assume thread is always started (nw) Vas Crabb2017-02-241-3/+2
|
* srcclean (nw) Vas Crabb2017-01-221-5/+5
|
* Removing unnecessary callback Nathan Woods2017-01-151-1/+1
| | | | | | | | | | I'm doing this in response to a compilation error on MSVC 2015. As far as I can tell, this is a bug in the compiler. My basis for asserting this is that placing the following declaration within the 'endpoint.on_open = <<lambda>>' gives the same compilation error: const std::function<void(void)> mycallback = [](void) {}; Whereas moving that logic outside of the 'endpoint.on_open = <<lambda>>' does not give an error. Normally I don't like working around buggy compilers, but in this case the callback is supposed to be optional anyways.
* Added websockets as well (nw) Miodrag Milanovic2017-01-041-2/+24
|
* Added initial HTTP/HTTPS webserver/websocket server support (nw) Miodrag Milanovic2017-01-041-0/+186