summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2022-02-02common_types: Remove NonCopyable structLioncash
Now that we're moved over to the YUZU_ defines, we can get rid of this struct.
2022-02-02general: Replace NonCopyable struct with equivalentsLioncash
2022-02-01Merge pull request #7807 from german77/moar-buttonsbunnei
input_common: Add home and hard touch press buttons to UDP controllers
2022-02-01Merge pull request #7809 from Morph1984/clock-constantsbunnei
common: wall_clock: Utilize constants for ms, us, and ns ratios
2022-02-01common/file: Remove [[nodiscard]] from Open()Lioncash
Since this has a void return value, there's nothing that can actually be used.
2022-01-30common: wall_clock: Check precision against the emulated CPU and CNTFRQMorph
In addition to requiring nanosecond precision, using the native clock requires that the hardware TSC has a precision greater than the emulated CPU and its clock counter.
2022-01-30common: wall_clock: Utilize constants for ms, us, and ns ratiosMorph
2022-01-30input_common: Add home and hard touch press buttons to UDP controllersgerman77
2022-01-28Merge pull request #7791 from german77/wall_clockMorph
wall_clock: Use standard wall clock if rtsc frequency is too low
2022-01-27wall_clock: use standard wall clock if rtsc frequency is too lowgerman77
2022-01-26common/xbyak_api: Make BuildRegSet() constexprLioncash
This allows us to eliminate any static constructors that would have been emitted due to the function not being constexpr.
2022-01-23yuzu: Add setting to disable controller navigationgerman77
2022-01-20Merge pull request #7695 from Morph1984/is-pow2bunnei
common: bit_util: Add IsPow2 helper function
2022-01-18Merge pull request #7725 from german77/mouse_in_motionbunnei
input_common: Reintroduce motion from mouse and use button names
2022-01-16input_common: Reintroduce motion from mouse and use button namesgerman77
2022-01-14common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.bunnei
- When the emulator crashes to desktop below, we don't even get this captured in a log, making such issues harder to debug.
2022-01-11common: bit_util: Add IsPow2 helper functionMorph
Makes use of std::has_single_bit() to check whether the value is a power of 2.
2022-01-09logging/log.h: move enum class formatter to a separate file ...liushuyu
... to common/logging/formatter.h
2022-01-08logging/log: use `underlying_type` instead of hardcoding typesliushuyu
2022-01-08logging: adapt to changes in fmt 8.1liushuyu
2022-01-04ShaderDecompiler: Add a debug option to dump the game's shaders.Fernando Sahmkow
2021-12-20Allow overriding SCM version infoAndrew Udvare
If the build is from a non-repository, these functions will return empty. This patch allows using defines to CMake to set version info such as -DGIT_BRANCH=master.
2021-12-14Merge pull request #7558 from Morph1984/unused-cpu-family-modelMai M
common/cpu_detect: Remove CPU family and model
2021-12-13common/input: Avoid numerous large copies of CallbackStatusLioncash
CallbackStatus instances aren't the cheapest things to copy around (relative to everything else), given that they're currently 520 bytes in size and are currently copied numerous times when callbacks are invoked. Instead, we can pass the status by const reference to avoid all the copying.
2021-12-13common/cpu_detect: Remove CPU family and modelMorph
We currently do not make use of these fields, remove them for now.
2021-12-13common/input: Remove unnecessary returnsLioncash
Given these return void, these can be omitted.
2021-12-13input_engine: Pass LedStatus by const referenceLioncash
Avoids copies where reasonably applicable
2021-12-13input_engine: Pass VibrationStatus by const reference in SetRumble()Lioncash
Avoids creating copies of the struct where not necessary.
2021-12-07Merge pull request #7525 from german77/notifabunnei
service/notif: Add notif:a and stub ListAlarmSettings, Initialize
2021-12-06service/notif: Add notif:a and stub ListAlarmSettings,Initializegerman77
Used by ring fit adventure 1.2.0
2021-12-05general: Add missing copyright noticesameerj
2021-12-03native_clock: Wait for less time in EstimateRDTSCFrequencyMorph
In my testing, waiting for 200ms provided the same level of precision as the previous implementation when estimating the RDTSC frequency. This significantly improves the yuzu executable launch times since we reduced the wait time from 3 seconds to 200 milliseconds.
2021-12-02general: Replace high_resolution_clock with steady_clockMorph
On some OSes, high_resolution_clock is an alias to system_clock and is not monotonic in nature. Replace this with steady_clock.
2021-11-27settings: Add debug setting to enable all controllersgerman77
2021-11-26config: Remove vibration configurationgerman77
2021-11-26input_common: Fully implement UDP controllersNarr the Reg
2021-11-24input_common: Move button names to the frontendgerman77
2021-11-24core/hid: Fully implement native mousegerman77
2021-11-24input_common: Allow keyboard to be backwards compatiblegerman77
2021-11-24core/hid: Improve accuracy of the keyboard implementationgerman77
2021-11-24config: Cleanup and documentationgerman77
2021-11-24core/hid: Prevent Emulated controller from flapping with multiple inputs devicesgerman77
2021-11-24core/hid: Fully emulate motion from buttongerman77
2021-11-24second commit lion reviewgerman77
2021-11-24settings: Fix Debug controller type optionsgerman77
2021-11-24kraken: Address comments from reviewgerman77
start lion review
2021-11-24core/hid: Add TAS inputgerman77
2021-11-24input_common: Add manual update options to input devicesgerman77
2021-11-24core/hid: Fix rumble too strong at 1%german77
2021-11-24core/hid: Only signal when neededgerman77