diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-16 10:13:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 10:13:39 -0500 |
commit | d81879186674ed3732ff3539937a9ac0fb45b585 (patch) | |
tree | 4ced33464372737e8a98ee37432f1e389f8d325f /src/input_common/main.cpp | |
parent | 3b28d382d041f1caebc30957dffb1e4a4bb6452e (diff) | |
parent | eaff98dbb3da3c7524a504abb1cdd5daa3480dda (diff) |
Merge pull request #24 from nkatz565/nk-inputs
Adding meumart's Citra SDL Joystick support. Citra PR #3116
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 |