diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-16 16:13:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 16:13:39 +0100 |
commit | d81879186674ed3732ff3539937a9ac0fb45b585 (patch) | |
tree | 4ced33464372737e8a98ee37432f1e389f8d325f /src/input_common/main.cpp | |
parent | Merge pull request #38 from goaaats/citra_merges (diff) | |
parent | Adding meumart's Citra SDL Joystick support. Citra PR #3116 (diff) | |
download | yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar.gz yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar.bz2 yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar.lz yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar.xz yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar.zst yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.zip |
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r-- | src/input_common/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index 557353740..95d40f09f 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -71,4 +71,15 @@ std::string GenerateAnalogParamFromKeys(int key_up, int key_down, int key_left, return circle_pad_param.Serialize(); } +namespace Polling { + +std::vector<std::unique_ptr<DevicePoller>> GetPollers(DeviceType type) { +#ifdef HAVE_SDL2 + return SDL::Polling::GetPollers(type); +#else + return {}; +#endif +} + +} // namespace Polling } // namespace InputCommon |