diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2024-02-18 19:30:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 19:30:54 +0100 |
commit | 5361027ef09ef6e6a1bed320f174d01b8f9c154b (patch) | |
tree | 6a24e0722632eebe34937bfd82cf78ebdbb8dd20 /src | |
parent | Merge pull request #13067 from t895/xbox-automap-invert (diff) | |
parent | core: hid: Remove driver errors from log (diff) | |
download | yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.tar yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.tar.gz yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.tar.bz2 yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.tar.lz yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.tar.xz yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.tar.zst yuzu-5361027ef09ef6e6a1bed320f174d01b8f9c154b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/hid_core/frontend/emulated_controller.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp index 3fa06d188..d9d278fa3 100644 --- a/src/hid_core/frontend/emulated_controller.cpp +++ b/src/hid_core/frontend/emulated_controller.cpp @@ -174,9 +174,13 @@ void EmulatedController::LoadDevices() { // Only map virtual devices to the first controller if (npad_id_type == NpadIdType::Player1 || npad_id_type == NpadIdType::Handheld) { camera_params[1] = Common::ParamPackage{"engine:camera,camera:1"}; - ring_params[1] = Common::ParamPackage{"engine:joycon,axis_x:100,axis_y:101"}; nfc_params[0] = Common::ParamPackage{"engine:virtual_amiibo,nfc:1"}; +#ifdef HAVE_LIBUSB + ring_params[1] = Common::ParamPackage{"engine:joycon,axis_x:100,axis_y:101"}; +#endif +#ifdef ANDROID android_params = Common::ParamPackage{"engine:android,port:100"}; +#endif } output_params[LeftIndex] = left_joycon; |