summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | input_poller: Remove several unnecessary @param tagsGravatar Lioncash2021-12-131-106/+106
| |/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silences quite a bit of -Wdocumentation warnings, given the @param tag is only intended to be used to identify function parameters, not what it contains.
* | | | | | | | | Merge pull request #7575 from lioncash/inputGravatar bunnei2021-12-1318-114/+109
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | input_engine: Minor object churn cleanup
| * | | | | | | | input_engine: Fix typo in TriggerOnAxisChange() parameter nameGravatar Lioncash2021-12-131-1/+1
| | | | | | | | |
| * | | | | | | | input_engine: Simplify PreSet* family of functionsGravatar Lioncash2021-12-132-24/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can make use of try_emplace() to insert values only if they don't already exist.
| * | | | | | | | input_engine: Avoid redundant map lookupsGravatar Lioncash2021-12-131-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can use iterators to avoid looking up into maps twice in the getter functions. At the same time we can also avoid copying the ControllerData structs, since they're 264 bytes in size.
| * | | | | | | | input_engine: Remove left-over namespace qualifiersGravatar Lioncash2021-12-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These types are part of the InputCommon namespace.
| * | | | | | | | input_engine: Iterate by reference rather than by value where applicableGravatar Lioncash2021-12-131-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids creating copies of several object instances (some of which being over 100 bytes in size).
| * | | | | | | | input_engine: Take BasicMotion by const reference with SetMotion() and ↵Gravatar Lioncash2021-12-133-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TriggerOnMotionChange() Copies the BasicMotion instance once instead of twice.
| * | | | | | | | input_engine: std::move InputIdentifier in SetCallback()Gravatar Lioncash2021-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows avoiding std::function allocations.
| * | | | | | | | input_engine: Pass LedStatus by const referenceGravatar Lioncash2021-12-133-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids copies where reasonably applicable
| * | | | | | | | input_engine: Pass VibrationStatus by const reference in SetRumble()Gravatar Lioncash2021-12-137-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids creating copies of the struct where not necessary.
| * | | | | | | | input_engine: std::move engine name where applicableGravatar Lioncash2021-12-1315-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can allow the name to be moved into, allowing allocations to be avoided.
| * | | | | | | | input_engine: Remove callback clearing in constructorGravatar Lioncash2021-12-131-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The callback map is a member variable, so this will always be empty on initial construction.
| * | | | | | | | input_engine: Remove unnecessary semi-colonsGravatar Lioncash2021-12-131-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silences -Wextra-semi warnings
| * | | | | | | | input_engine: Remove unnecessary returnGravatar Lioncash2021-12-131-3/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | This is a void function, so it doesn't need this.
* | | | | | | | tas_input: Avoid minor copies in Read/WriteCommandButtons()Gravatar Lioncash2021-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to copy the whole pair
* | | | | | | | tas_input: Remove unnecessary semicolonGravatar Lioncash2021-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolves a -Wextra-semi warning
* | | | | | | | tas_input: Execute clear() even if emptyGravatar Lioncash2021-12-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clear() when empty is simply a no-op, so we can get rid of the check here and let the stdlib do it for us.
* | | | | | | | tas_input: Remove unnecessary includesGravatar Lioncash2021-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gets rid of indirect includes and includes only what the interface needs.
* | | | | | | | tas_input: std::move strings into vectorGravatar Lioncash2021-12-131-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While we're in the same area, we can also avoid performing std::stoi in a loop when it only needs to be performed once.
* | | | | | | | tas_input: Use istringstream over stringstreamGravatar Lioncash2021-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is only using the input facilities, so we don't need to use the fully-fleged stringstream.
* | | | | | | | tas_input: Use u8string_view instead of u8stringGravatar Lioncash2021-12-132-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same behavior, but without the potential for extra allocations.
* | | | | | | | tas_input: Remove unused std::smatch variableGravatar Lioncash2021-12-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also means we can get rid of the dependency on <regex>
* | | | | | | | tas_input: Amend -Wdocumentation warningsGravatar Lioncash2021-12-132-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parameters shouldn't have the colon by their name.
* | | | | | | | tas_input: Make TasAxes enum an enum classGravatar Lioncash2021-12-132-5/+14
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents these values from potentially clashing with anything in other headers.
* | | | | | | Remove erroneous #pragma onceGravatar Valeri2021-12-131-2/+0
| | | | | | |
* | | | | | | Merge pull request #7462 from bunnei/kernel-improve-schedulingGravatar bunnei2021-12-1232-634/+895
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Kernel: Improve threading & scheduling V3
| * | | | | | hle: kernel k_scheduler: EnableScheduling: Remove redundant ↵Gravatar bunnei2021-12-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | GetCurrentThreadPointer calls.
| * | | | | | hle: kernel k_process: Remove unnecessary .at usage with thread pinning methods.Gravatar bunnei2021-12-061-3/+3
| | | | | | |
| * | | | | | hle: kernel: Remove unnecessary virtual specifier on NotifyAvailable.Gravatar bunnei2021-12-061-2/+2
| | | | | | |
| * | | | | | hle: kernel: Remove unnecessary virtual specifier on EndWait.Gravatar bunnei2021-12-061-1/+1
| | | | | | |
| * | | | | | hle: kernel: k_light_condition_variable: Revert unnecessary license comment ↵Gravatar bunnei2021-12-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | changes.
| * | | | | | hle: kernel: k_condition_variable: Revert unnecessary style changes.Gravatar bunnei2021-12-061-2/+2
| | | | | | |
| * | | | | | hle: kernel: Remove unnecessary virtual specifier on CancelWait.Gravatar bunnei2021-12-066-14/+14
| | | | | | |
| * | | | | | hle: kernel: service_thread: Force stop threads on destruction.Gravatar bunnei2021-12-061-1/+7
| | | | | | |
| * | | | | | hle: kernel: k_light_lock: Implement CancelWait.Gravatar bunnei2021-12-061-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixes a crash in Megadimension Neptunia VII.
| * | | | | | hle: kernel: service_thread: Use std::jthread.Gravatar bunnei2021-12-061-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixes a potential deadlock on service thread shutdown.
| * | | | | | hle: kernel: k_thread: Skip reschedule on DisableDispatch with SC.Gravatar bunnei2021-12-061-0/+5
| | | | | | |
| * | | | | | hle: kernel: k_thread: Rename sleeping_queue -> wait_queue.Gravatar bunnei2021-12-062-17/+13
| | | | | | |
| * | | | | | hle: kernel: svc: Fix deadlock that can occur with single core.Gravatar bunnei2021-12-061-10/+8
| | | | | | |
| * | | | | | hle: kernel: k_thread: Treat dummy threads as a special type.Gravatar bunnei2021-12-062-1/+4
| | | | | | |
| * | | | | | hle: kernel: fix timing on thread preemptionGravatar FernandoS272021-12-061-4/+2
| | | | | | |
| * | | | | | hle: kernel: fix scheduling ops from HLE host thread.Gravatar FernandoS272021-12-061-3/+3
| | | | | | |
| * | | | | | hle: kernel: Add a flag for indicating that the kernel is currently shutting ↵Gravatar bunnei2021-12-066-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | down.
| * | | | | | hle: kernel: KSynchronizationObject: Fix variable shadowing.Gravatar bunnei2021-12-061-8/+8
| | | | | | |
| * | | | | | hle: kernel: Cleanup to match coding style.Gravatar bunnei2021-12-066-26/+21
| | | | | | |
| * | | | | | hle: kernel: KProcess: Improvements for thread pinning.Gravatar bunnei2021-12-062-8/+26
| | | | | | |
| * | | | | | hle: kernel: KThreadQueue: Remove deprecated code.Gravatar bunnei2021-12-061-63/+0
| | | | | | |
| * | | | | | hle: kernel: KConditionVariable: Various updates & simplifications.Gravatar bunnei2021-12-062-121/+65
| | | | | | |
| * | | | | | hle: kernel: KThread: Migrate to updated KThreadQueue (part 2).Gravatar bunnei2021-12-061-29/+19
| | | | | | |