diff options
| author | 2018-01-16 10:13:39 -0500 | |
|---|---|---|
| committer | 2018-01-16 10:13:39 -0500 | |
| 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.gz yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.tar.xz yuzu-d81879186674ed3732ff3539937a9ac0fb45b585.zip | |
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, | |||
| 71 | return circle_pad_param.Serialize(); | 71 | return circle_pad_param.Serialize(); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | namespace Polling { | ||
| 75 | |||
| 76 | std::vector<std::unique_ptr<DevicePoller>> GetPollers(DeviceType type) { | ||
| 77 | #ifdef HAVE_SDL2 | ||
| 78 | return SDL::Polling::GetPollers(type); | ||
| 79 | #else | ||
| 80 | return {}; | ||
| 81 | #endif | ||
| 82 | } | ||
| 83 | |||
| 84 | } // namespace Polling | ||
| 74 | } // namespace InputCommon | 85 | } // namespace InputCommon |