summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/emu_window.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-03core: frontend: Refactor GraphicsContext to its own module.bunnei1-2/+0
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda1-3/+2
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2021-11-25core/emu_window: Remove touch inputgerman771-88/+10
2021-11-04core: Remove unused includesameerj1-1/+0
2021-05-16core: Make variable shadowing a compile-time errorLioncash1-1/+1
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
2021-04-23emu_window: Return pair from ClipToTouchScreen() instead of tupleLioncash1-4/+7
This is only a 2-tuple, so it can be converted over to the std::pair class.
2021-04-23emu_window: unsigned -> u32Lioncash1-7/+7
This is more concise and consistent with the rest of the codebase.
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2021-01-15Always initialize keyboard inputgerman1-3/+2
2021-01-15Add mutitouch support for touch screensgerman1-19/+23
2021-01-15Allow to return up to 16 touch inputs per enginegerman1-3/+5
2020-10-13core/CMakeLists: Make some warnings errorsLioncash1-4/+6
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
2020-05-15frontend: Set minimum window size to 640x360 instead of 1280x720 (#3413)Morph1-1/+1
2019-05-04core/frontend/emu_window: Make GraphicsContext's destructor virtualLioncash1-0/+2
This class is used in a polymorphic context, so destruction of the context will lead to undefined behavior if the destructor isn't virtual.
2019-04-01general: Use deducation guides for std::lock_guard and std::unique_lockLioncash1-3/+3
Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
2019-02-27core/frontend/emu_window: Make ClipToTouchScreen a const member functionLioncash1-1/+1
This member function doesn't modify instance state, so it can have the const specifier applied to it.
2018-08-12core: Namespace EmuWindowLioncash1-0/+4
Gets the class out of the global namespace.
2018-01-11frontend: Update for undocked Switch screen layout.bunnei1-35/+13
2017-08-25SidebySide Layout (#2859)ThaMighty901-0/+3
* added a SidebySide Layout * Reworked, so both screen have the same height and cleaned up screen translates. * added the option in the UI, hope this is the right way to do it. formated framebuffer_layout.cpp * delete the x64 files * deleted ui_configure_graphics.h * added Option for the Layout in the xml * got rid of SIDE_BY_SIDE_ASPECT_RATIO because it was useless. pulled translate into variables * changed shift variables to u32 and moved them in their respective branch. remove notr="true" for the Screen layout drop down * reworked intends :). changed function description for SideFrameLayout * some description reworking
2017-08-24EmuWindow: refactor touch input into a TouchDevicewwylele1-13/+58
2017-08-11move MotionEmu from core/frontend to input_common as a InputDevicewwylele1-23/+0
2017-05-28Move screen size constants from video_core to coreYuri Kunde Schlesner1-5/+3
video_core didn't even properly use them, and they were the source of many otherwise-unnecessary dependencies from core to video_core.
2017-03-01Input: remove unused stuff & clean upwwylele1-25/+1
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include
2017-02-27Core: Make PerfStats internally lockedYuri Kunde Schlesner1-1/+1
More ergonomic to use and will be required for upcoming changes.
2017-02-27PerfStats: Add method to get the instantaneous time ratioYuri Kunde Schlesner1-3/+2
2017-02-23Add custom layout settings.SonofUgly1-11/+15
2017-02-11hid: remove the touch field from PadState (#2557)Weiyi Wang1-2/+0
2017-01-29core: emu_window.cpp, fix conversion warnings from float to s16 on MSVCKloen1-6/+6
2016-12-29Frontend: make motion sensor interfaced thread-safewwylele1-0/+3
2016-12-26Frontend: emulate motion sensorwwylele1-0/+22
2016-12-23core: Move emu_window and key_map into coreMerryMage1-2/+2
* Removes circular dependences (common should not depend on core)
2016-11-05Support additional screen layouts.James Rowe1-53/+15
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-21/+27
2016-07-23Protection against a resize of size 0Alexandre LittleWhite Laurent1-4/+3
2016-05-15Refactor input subsystemwwylele1-4/+20
2016-02-12BitField: Make trivially copyable and remove assignment operatorMerryMage1-2/+2
2015-06-28Common: Cleanup emu_window includes.Emmanuel Gil Peyrot1-0/+6
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot1-1/+1
2015-05-02EmuWindow: Clip mouse input coordinates to emulated screen dimensions.Zaneo1-6/+16
If the mouse position for a mouse move/drag would take it outside the emulated screen dimensions, clip the coordinates to the emulated screen dimensions. Qt and GLFW will report negative coordinates for mouse positions to the left, or above citra window. Added restriction to mouse coordinates passed to touchmoved by Qt/GLFW to be greater or equal to zero.
2015-03-11HID: Complete refactor of pad/touch input to fix threading issues.bunnei1-46/+28
2015-03-10EmuWindow: Made pad/touch functions non-static.bunnei1-2/+0
2015-03-10EmuWindow: Added infrastructure code to enable touchpad support.bunnei1-1/+64
2015-03-08Fixed EmuWindow typo (fixes OSX build)bunnei1-1/+1
2015-03-07Set framebuffer layout from EmuWindow.bunnei1-0/+50
2015-01-21Added HID_SPVR service and split HID_U implementation into service/hid/hid.xxxarchshift1-4/+4
2014-12-21License changepurpasmart961-1/+1
2014-09-12Added support for multiple input device types for KeyMap and connected Qt.Kevin Hartman1-0/+17