diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-12-03 19:33:54 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-12-03 19:33:54 -0500 |
| commit | 7ff8f0d916ae020ed736122a91d91f190afcc95c (patch) | |
| tree | 421562017647dbe50710016d12d4fe1b7c05f6f9 /src/core/hle/service/hid_user.cpp | |
| parent | 63b1453dd8f0f579929fe7341f559b916cebcc2b (diff) | |
hid_user: Pass by reference with PadButtonPress/PadButtonRelease
Diffstat (limited to 'src/core/hle/service/hid_user.cpp')
| -rw-r--r-- | src/core/hle/service/hid_user.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/hid_user.cpp b/src/core/hle/service/hid_user.cpp index d29de1a52..2abaf0f2f 100644 --- a/src/core/hle/service/hid_user.cpp +++ b/src/core/hle/service/hid_user.cpp @@ -55,7 +55,7 @@ static void UpdateNextCirclePadState() { /** * Sets a Pad state (button or button combo) as pressed */ -void PadButtonPress(PadState pad_state) { +void PadButtonPress(const PadState& pad_state) { next_state.hex |= pad_state.hex; UpdateNextCirclePadState(); } @@ -63,7 +63,7 @@ void PadButtonPress(PadState pad_state) { /** * Sets a Pad state (button or button combo) as released */ -void PadButtonRelease(PadState pad_state) { +void PadButtonRelease(const PadState& pad_state) { next_state.hex &= ~pad_state.hex; UpdateNextCirclePadState(); } |
