summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/joycon.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-01-14 07:36:03 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-20 07:51:46 +0100
commitfafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f (patch)
treed26a185d5fedbb4662df112ec02dc94dc4f82c77 /src/input_common/drivers/joycon.h
parentinput_common: Address byte review (diff)
downloadyuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.tar
yuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.tar.gz
yuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.tar.bz2
yuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.tar.lz
yuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.tar.xz
yuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.tar.zst
yuzu-fafa92cfb8f78f3a3adaf5bc87f35f495a70ec3f.zip
Diffstat (limited to 'src/input_common/drivers/joycon.h')
-rw-r--r--src/input_common/drivers/joycon.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input_common/drivers/joycon.h b/src/input_common/drivers/joycon.h
index 6d2e2ec78..316d383d8 100644
--- a/src/input_common/drivers/joycon.h
+++ b/src/input_common/drivers/joycon.h
@@ -88,9 +88,12 @@ private:
/// Returns a JoyconHandle corresponding to a PadIdentifier
std::shared_ptr<Joycon::JoyconDriver> GetHandle(PadIdentifier identifier) const;
- /// Returns a PadIdentifier corresponding to the port number
+ /// Returns a PadIdentifier corresponding to the port number and joycon type
PadIdentifier GetIdentifier(std::size_t port, Joycon::ControllerType type) const;
+ /// Returns a ParamPackage corresponding to the port number and joycon type
+ Common::ParamPackage GetParamPackage(std::size_t port, Joycon::ControllerType type) const;
+
std::string JoyconName(std::size_t port) const;
Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;