summaryrefslogtreecommitdiffstats
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authormuemart <muemart@users.noreply.github.com>2017-12-06 05:26:29 +0100
committernoah katz <n-katz@hotmail.com>2018-01-16 02:02:30 +0100
commiteaff98dbb3da3c7524a504abb1cdd5daa3480dda (patch)
tree4e5d28ed590b01d001c065e6ac08f2df6daabf75 /src/input_common/main.cpp
parentpctl: Clang format. (diff)
downloadyuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.tar
yuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.tar.gz
yuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.tar.bz2
yuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.tar.lz
yuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.tar.xz
yuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.tar.zst
yuzu-eaff98dbb3da3c7524a504abb1cdd5daa3480dda.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/main.cpp11
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