From c6af766af1a806e2721d1fd4a5b1acbd7b36402b Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 3 Feb 2022 13:14:09 -0500 Subject: [PATCH] Add GetGamepadName() --- include/Functions.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/Functions.hpp b/include/Functions.hpp index 499c0ed1..63ae37b1 100644 --- a/include/Functions.hpp +++ b/include/Functions.hpp @@ -60,6 +60,13 @@ RLCPPAPI inline void TakeScreenshot(const std::string& fileName) { ::TakeScreenshot(fileName.c_str()); } +/** + * Get gamepad internal name id + */ +RLCPPAPI inline std::string GetGamepadName(int gamepad) { + return ::GetGamepadName(gamepad); +} + /** * Load text data from file (read) */