Zach Hilman
2d8a5a4e9b
hid: Use player-defined controller type as PREFERRED_CONTROLLER
7 years ago
Zach Hilman
8e4125d25f
hid/npad: Update NPad to use player controller bindings and type
7 years ago
Zach Hilman
651d96479a
hid/touchscreen: Update Touchscreen to use advanced parameters
Including finger ID, diamater x/y, and angle. Additionally, checks if the touchscreen is enabled.
7 years ago
Zach Hilman
1abee80ce3
hid: Add controller bindings for Mouse controller
7 years ago
Zach Hilman
701c23ec92
hid: Add keyboard bindings for Keyboard controller
7 years ago
Zach Hilman
ba768cfdc7
hid: Add controller bindings for DebugPad controller
Used by developers to test games, not present on retail systems. Some games are known to respond to DebugPad input though, for example Kirby Star Allies.
7 years ago
Zach Hilman
bcbd6015f3
settings: Add settings for multiple players and controllers
Uses the PlayerInput struct to represent all of the data that constitutes a player.
7 years ago
Zach Hilman
8cfe1e015d
settings: Add Native type for keyboard
7 years ago
Zach Hilman
b75d8cbc89
settings: Add Native type for mouse buttons
7 years ago
David Marcec
d59c9bc684
Added missing start/end touch attributes to touchscreen
7 years ago
David Marcec
a15c3d6b27
Added debugpad skeleton
7 years ago
David Marcec
8ed0216784
Added controller helper funcs
7 years ago
David Marcec
2c23ad1189
Changed polling rate of hid and Right joycon rotation
7 years ago
David Marcec
7a38294b38
Left joycon rotation button remapping
7 years ago
David Marcec
086c24e4ed
Added automatic npad switch based on supported stylesets
7 years ago
David Marcec
e9cf16c9ac
Added multi-input support and controller assignment at any port
7 years ago
Tobias
66be135276
svc: ResetSignal is not stubbed
https://user-images.githubusercontent.com/20753089/48677874-b8e01c80-eb7b-11e8-8043-b99faa29022c.PNG
7 years ago
Zach Hilman
f46fd39579
ldr_ro: Add error check for memory allocation failure
7 years ago
Zach Hilman
f167646149
vi: Implement TransactParcel for Disconnect and DetachBuffer
Used by homebrew on exit. According to switchbrew, returns an empty response parcel with one zero in it.
7 years ago
MysticExile
da0f4cb242
Stubbed am:EnableApplicationCrashReport
7 years ago
bunnei
8d4328026d
hwopus: DecodeInterleavedWithPerformance: Fix ordering of output parameters.
- Fixes audio issues with Pokemon: Let's Go Pikachu & Eevee.
7 years ago
David Marcec
f60294d740
Implemented CalculateStandardUserSystemClockDifferenceByUser
Seems pokemon calls this sometimes and it caused "random crashes"
7 years ago
Lioncash
99cdc2b5d1
kernel/errors: Clean up error codes
Similar to PR 1706, which cleans up the error codes for the filesystem
code, but done for the kernel error codes. This removes the ErrCodes
namespace and specifies the errors directly. This also fixes up any
straggling lines of code that weren't using the named error codes where
applicable.
7 years ago
David Marcec
867288b9d6
Added various bluetooth based cmds for palma
It seems palma is done through bluetooth, we need this for pokemon go however more research needs to be done when we actually get palma working. This is presumably used for transfering data between the controller and the console, it does not seem for actual input as far as I know.
7 years ago
David Marcec
6a1b7d2da0
Added SetIsPalmaAllConnectable, SetPalmaBoostMode
Currently unclear what these do yet, will be researched at a later time when we want to implement palma.
7 years ago
Lioncash
57fca18145
file_sys/errors: Remove currently unused filesystem error codes
Rather than keeping around unused values, we can just introduce them as
needed.
7 years ago
Lioncash
21e653aab6
file_sys/errors: Get rid of the ErrCodes namespace
There's no real point to keeping the separate enum around, especially
given the name of the error code itself is supposed to document what the
value actually represents.
7 years ago
Lioncash
55f9f05772
file_sys/errors: Extract FS-related error codes to file_sys/errors.h
Keeps filesystem-related error codes in one spot.
7 years ago
David
548149cdbb
Fixed priority switching edge case for handheld ( #1675 )
* Fixed priority switching edge case for handheld
We accidently used controller index instead of npad id
* Moved NPadIdToIndex
7 years ago
Zach Hilman
dd46e96bcf
csrng: Use random integer distribution instead of raw engine
Prevents returning the same value every single call.
7 years ago
Zach Hilman
74180648c4
ldr_ro: Implement UnloadNro (command 1)
Includes actual unmapping and address error checking.
7 years ago
Zach Hilman
5780aa1101
ldr_ro: Fully Implement LoadNro (command 0)
Includes NRO and BSS error checking, maximum loaded NRO check, NRR hash check, and proper remapping of BSS data.
7 years ago
Zach Hilman
9b94cb0f89
ldr_ro: Implement UnloadNrr (command 3)
Includes initialization check, proper address check, alignment check, and actual unloading of a loaded NRR.
7 years ago
Zach Hilman
d20dafc3f2
ldr_ro: Fully implement LoadNrr (command 2)
Includes parameter error checking, hash enforcement, initialization check, and max NRR load check.
7 years ago
Zach Hilman
d8ce48b5ea
process: Make MirrorMemory take state to map new memory as
Credits to Subv
7 years ago
Zach Hilman
fd06f180dc
pl_u: Resize buffers in shared font data getter to what game requests
Fixes unmapped spam in SMP and buffer size errors in some other games
7 years ago
Lioncash
7cd4750c41
service/acc: Correct error case within TrySelectUserWithoutInteraction()
empty() in this case will always return false, since the returned
container is a std::array. Instead, check if all given users are invalid
before returning the error code.
7 years ago
Lioncash
373186d4a6
profile_manager: Replace iterative loop with a ranged-for loop in ParseUserSaveFile()
7 years ago
Lioncash
e7a4830abe
profile_manager: Move UUID Format function definitions into the cpp file
Avoids relying on fmt always being indirectly included.
7 years ago
Lioncash
7df52a0e86
nfp: Correct erroneous sizeof expression within GetTagInfo()
The previous expression would copy sizeof(size_t) amount of bytes (8 on
a 64-bit platform) rather than the full 10 bytes comprising the uuid
member.
Given the source and destination types are the same, we can just use an
assignment here instead.
7 years ago
Lioncash
ac1c1c74de
service/audren_u: Forward RequestUpdateAuto through the same function as RequestUpdate
Based off RE, they both currently go through the same codepath with no
difference in behavior.
7 years ago
Lioncash
4a2457cc5a
hid/npad: Add missing break in switch statement within Controller_NPad::OnUpdate()
7 years ago
Lioncash
ae386bc209
service: Mark MakeFunctionString with the [[maybe_unused]] attribute.
When yuzu is compiled in release mode this function is unused, however,
when compiled in debug mode, it's used within a LOG_TRACE statement.
This prevents erroneous compilation warnings about an unused function
(that isn't actually totally unused).
7 years ago
Lioncash
992e814e2c
kernel/thread: Deduplicate scheduler switching code
The code in both places was the same verbatim, so we can extract it to a
function to deduplicate the logic.
7 years ago
Lioncash
bb5a818691
hle/audren_u: Implement Get/SetRenderingTimeLimit
These appear to be a basic getter and setter pair, so these are fairly
trivial to implement and get out of the way.
7 years ago
Lioncash
a61ed2279c
vm_manager: Unstub GetTotalHeapUsage()
Now that we've moved all of the heap-related stuff to the VMManager
class, we can unstub this function, as the necessary members are visible
now.
7 years ago
Lioncash
1de14301c3
kernel/process: Migrate heap-related memory management out of the process class and into the vm manager
Avoids a breach of responsibilities in the interface and keeps the
direct code for memory management within the VMManager class.
7 years ago
Zach Hilman
deb5d6be60
svc: Use proper random entropy generation algorithm
7 years ago
Zach Hilman
4c0e453e08
svc: Return random seed for svcGetInfo RandomEntropy
7 years ago
Zach Hilman
6af690c2b8
settings: Add config option to set RNG seed
7 years ago