diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-03 16:42:17 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-03 16:56:47 -0400 |
commit | cfac942e633d20793c75389bad6f0180d85bc1e1 (patch) | |
tree | f3a8baf5a38ce9074e5d54240a24e70491d4c84b /src/input_common/sdl/sdl_impl.h | |
parent | b9b23c98ff1747dc322b32eb4f10965e63e5e5cd (diff) |
input_common/sdl/sdl_impl: Move documentation comments to header where applicable
Places the documentation comments with the rest of SDLState's member
function documentation.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.h')
-rw-r--r-- | src/input_common/sdl/sdl_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_common/sdl/sdl_impl.h b/src/input_common/sdl/sdl_impl.h index fadcf3139..606a32c5b 100644 --- a/src/input_common/sdl/sdl_impl.h +++ b/src/input_common/sdl/sdl_impl.h @@ -34,7 +34,13 @@ public: /// Handle SDL_Events for joysticks from SDL_PollEvent void HandleGameControllerEvent(const SDL_Event& event); + /// Get the nth joystick with the corresponding GUID std::shared_ptr<SDLJoystick> GetSDLJoystickBySDLID(SDL_JoystickID sdl_id); + + /** + * Check how many identical joysticks (by guid) were connected before the one with sdl_id and so + * tie it to a SDLJoystick with the same guid and that port + */ std::shared_ptr<SDLJoystick> GetSDLJoystickByGUID(const std::string& guid, int port); /// Get all DevicePoller that use the SDL backend for a specific device type |