kraken: Fix errors from rebase and format files
This commit is contained in:
parent
06a5ef5874
commit
e0da5c1bbc
20 changed files with 83 additions and 53 deletions
|
@ -91,6 +91,7 @@ void EmulatedController::ReloadFromSettings() {
|
|||
}
|
||||
|
||||
void EmulatedController::ReloadInput() {
|
||||
// If you load any device here add the equivalent to the UnloadInput() function
|
||||
const auto player_index = NpadIdTypeToIndex(npad_id_type);
|
||||
const auto left_side = button_params[Settings::NativeButton::ZL];
|
||||
const auto right_side = button_params[Settings::NativeButton::ZR];
|
||||
|
@ -113,7 +114,7 @@ void EmulatedController::ReloadInput() {
|
|||
battery_devices[0] = Input::CreateDevice<Input::InputDevice>(left_side);
|
||||
battery_devices[1] = Input::CreateDevice<Input::InputDevice>(right_side);
|
||||
|
||||
button_params[Settings::NativeButton::ZL].Set("output",true);
|
||||
button_params[Settings::NativeButton::ZL].Set("output", true);
|
||||
output_devices[0] =
|
||||
Input::CreateDevice<Input::OutputDevice>(button_params[Settings::NativeButton::ZL]);
|
||||
|
||||
|
@ -179,6 +180,9 @@ void EmulatedController::UnloadInput() {
|
|||
for (auto& battery : battery_devices) {
|
||||
battery.reset();
|
||||
}
|
||||
for (auto& output : output_devices) {
|
||||
output.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void EmulatedController::EnableConfiguration() {
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "common/settings.h"
|
||||
#include "core/core.h"
|
||||
#include "core/core_timing.h"
|
||||
#include "core/frontend/input.h"
|
||||
#include "core/hardware_properties.h"
|
||||
#include "core/hle/ipc_helpers.h"
|
||||
#include "core/hle/kernel/k_readable_event.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue