summaryrefslogtreecommitdiff
path: root/src/core/frontend (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* core/hid: Move input_interpreter to hidGravatar german772021-11-242-206/+0
|
* Fix screenshot dimensions when at 1x scaleGravatar ameerj2021-11-202-11/+7
| | | | | | | This was regressed by ART. Prior to ART, the screenshots were saved at the title's framebuffer resolution. A misunderstanding of the existing logic led to screenshot dimensions becoming dependent on the host render window size. This changes the behavior to match how it was prior to ART at 1x, with screenshots now always being the title's framebuffer dimensions scaled by the resolution scaling factor.
* bootmanager: Fix screenshot resolution factor usageGravatar ameerj2021-11-162-10/+7
| | | | Fixes screenshots at non integer scaling
* applets/swkbd: Skip text checking if the text has been confirmedGravatar Morph2021-11-082-5/+6
| | | | | | | Confirm means that the text has already been checked by the application to be correct, but is asking the user for confirmation. The confirmation text itself seems to be corrupted though, this needs to be investigated. Fixes the software keyboard in Famicom Detective Club: The Missing Heir
* core: Remove unused includesGravatar ameerj2021-11-035-5/+0
|
* core/profile_select: Avoid uninitialized read in SelectProfile()Gravatar Lioncash2021-09-221-1/+2
| | | | | The default constructor of UUID doesn't initialize its data members, so we need to directly initialize it to be invalid.
* applets: Append applet_ prefix to backend appletsGravatar Morph2021-07-142-2/+2
|
* general: Make most settings a BasicSettingGravatar lat9nq2021-06-281-1/+1
| | | | | | | | | | | Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting.
* General: Resolve fmt specifiers to adhere to 8.0.0 API where applicableGravatar Lioncash2021-06-231-0/+1
| | | | Also removes some deprecated API usages.
* input_common: Analog button, use time based position instead of frequent updatesGravatar german772021-05-301-0/+15
|
* core: Make variable shadowing a compile-time errorGravatar Lioncash2021-05-161-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.
* Merge pull request #6257 from Morph1984/fix-use-after-free-webappletGravatar bunnei2021-04-302-6/+7
|\ | | | | applets/web: Fix a use-after-free when passing in the URL string
| * applets/web: Fix a use-after-free when passing in the URL stringGravatar Morph2021-04-282-6/+7
| | | | | | | | | | | | The URL string was being deleted before being used, leading to a use-after-free occurring when it is used afterwards. Fix this by taking the string by const ref to extend its lifetime, ensuring it doesn't get deleted before use.
* | Merge pull request #6226 from german77/sevensixGravatar bunnei2021-04-291-3/+9
|\ \ | |/ |/| hid: Implement SevenSixAxis and ConsoleSixAxisSensor
| * hid: Implement SevenSixAxis and ConsoleSixAxisSensorGravatar german772021-04-231-3/+9
| |
* | emu_window: Return pair from ClipToTouchScreen() instead of tupleGravatar Lioncash2021-04-232-5/+8
| | | | | | | | | | This is only a 2-tuple, so it can be converted over to the std::pair class.
* | emu_window: unsigned -> u32Gravatar Lioncash2021-04-232-21/+21
|/ | | | This is more concise and consistent with the rest of the codebase.
* input_interpreter: Fix button hold being interpreted incorrectly on initGravatar Morph2021-04-152-1/+17
| | | | We reset all the button states to 0 except the first index (which has all the buttons as pressed) to prevent a button hold being interpreted as a button that was pressed once on the first poll.
* applets/swkbd: Implement the Default Software Keyboard frontendGravatar Morph2021-04-152-2/+236
|
* applets: Remove the previous software keyboard applet implementationGravatar Morph2021-04-152-53/+1
|
* common: Move settings to common from core.Gravatar bunnei2021-04-143-3/+3
| | | | - Removes a dependency on core and input_common from common.
* hid: Implement GC controllerGravatar german2021-02-071-0/+1
|
* Make settings controller image change with controller inputGravatar german2021-02-061-0/+11
|
* Merge pull request #5270 from german77/multiTouchGravatar bunnei2021-01-203-26/+37
|\ | | | | HID: Add multitouch support
| * Always initialize keyboard inputGravatar german2021-01-152-7/+7
| |
| * Add mutitouch support for touch screensGravatar german2021-01-152-23/+31
| |
| * Allow to return up to 16 touch inputs per engineGravatar german2021-01-152-6/+9
| |
* | input_interpreter: Mark two member functions as constGravatar Lioncash2021-01-161-4/+4
| | | | | | | | | | | | These aren't stateful functions, so we can make use of const. While we're at, we can resolve some -Wdocumentation warnings.
* | input_interpreter: Add method to check for a button press stateGravatar Morph2021-01-162-0/+25
|/ | | | This allows to check for continuous input for the duration of a button press/hold
* applets/web: Implement the online web browser appletGravatar Morph2020-12-182-0/+17
|
* main, applets/web: Re-add progress dialog for RomFS extractionGravatar Morph2020-12-182-8/+8
|
* frontend/input_interpreter: Add InputInterpreter APIGravatar Morph2020-12-182-0/+165
| | | | | | The InputInterpreter class interfaces with HID to retrieve button press states. Input is intended to be polled every 50ms so that a button is considered to be held down after 400ms has elapsed since the initial button press and subsequent repeated presses occur every 50ms. Co-authored-by: Chloe <25727384+ogniK5377@users.noreply.github.com>
* applets/web: Implement the default web browser applet frontendGravatar Morph2020-12-182-0/+20
|
* applets: Remove the previous web browser applet implementationGravatar Morph2020-12-184-136/+0
|
* core: Remove unnecessary enum casts in log callsGravatar Lioncash2020-12-071-3/+4
| | | | | Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
* Merge pull request #4939 from german77/MouseInputGravatar bunnei2020-11-291-2/+7
|\ | | | | InputCommon: Implement full mouse support
| * Implement full mouse supportGravatar german2020-11-251-2/+7
| |
* | Merge pull request #4976 from comex/poll-eventsGravatar Rodrigo Locatti2020-11-251-2/+2
|\ \ | | | | | | Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread
| * | Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off ↵Gravatar comex2020-11-231-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main thread EmuWindow::PollEvents was called from the GPU thread (or the CPU thread in sync-GPU mode) when swapping buffers. It had three implementations: - In GRenderWindow, it didn't actually poll events, just set a flag and emit a signal to indicate that a frame was displayed. - In EmuWindow_SDL2_Hide, it did nothing. - In EmuWindow_SDL2, it did call SDL_PollEvents, but this is wrong because SDL_PollEvents is supposed to be called on the thread that set up video - in this case, the main thread, which was sleeping in a busyloop (regardless of whether sync-GPU was enabled). On macOS this causes a crash. To fix this: - Rename EmuWindow::PollEvents to OnFrameDisplayed, and give it a default implementation that does nothing. - In EmuWindow_SDL2, do not override OnFrameDisplayed, but instead have the main thread call SDL_WaitEvent in a loop.
* | Fix warnings in core/frontend/input.h with [[maybe_unused]]Gravatar bunnei2020-11-231-1/+3
| | | | | | Fixes build break due to #4927
* | input_common: Treat warnings as errorsGravatar Lioncash2020-11-221-1/+1
|/ | | | | Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
* input_common: Add VibrationDevice and VibrationDeviceFactoryGravatar Morph2020-11-151-0/+7
| | | | | | A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
* controllers/npad: Add heuristics to reduce rumble state changesGravatar Morph2020-11-151-1/+1
| | | | | Sending too many state changes in a short period of time can cause massive performance issues. As a result, we have to use several heuristics to reduce the number of state changes to minimize/eliminate this performance impact while maintaining the quality of these vibrations as much as possible.
* hid: Reorder all HID commandsGravatar Morph2020-11-151-2/+2
| | | | Reorders all HID commands in command id order.
* settings: Preparation for per-game input settingsGravatar Morph2020-11-152-3/+3
|
* controller: Pass ControllerParameters by reference in ReconfigureControllers()Gravatar Lioncash2020-10-262-3/+3
| | | | Prevents unnecessary copies and heap reallocations from occurring.
* Revert "core: Fix clang build"Gravatar bunnei2020-10-202-3/+2
|
* core: Fix clang buildGravatar Lioncash2020-10-172-2/+3
| | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* core/CMakeLists: Make some warnings errorsGravatar Lioncash2020-10-132-7/+9
| | | | | | | | | 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.
* Merge pull request #4291 from german77/ImplementControllerRumbleGravatar David2020-09-301-0/+3
|\ | | | | input_common: First implementation of controller rumble