diff options
author | spiff_ <spiff_@svn> | 2010-07-23 12:52:12 +0000 |
---|---|---|
committer | spiff_ <spiff_@svn> | 2010-07-23 12:52:12 +0000 |
commit | b3cb985b561778e806d789c2d19b88ab6bfbbddb (patch) | |
tree | d0d41e1e5c209f97f5a213ebe4b481907e9f8b70 | |
parent | 7ae0931d75ea0ef3a208c86bdb79c859c9b7dd49 (diff) |
added: log details about enabled joysticks. thanks to dandel
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32095 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | guilib/common/SDLJoystick.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guilib/common/SDLJoystick.cpp b/guilib/common/SDLJoystick.cpp index d7d0b472eb..34559a6555 100644 --- a/guilib/common/SDLJoystick.cpp +++ b/guilib/common/SDLJoystick.cpp @@ -94,6 +94,8 @@ void CJoystick::Initialize() { m_JoystickNames.push_back(string(SDL_JoystickName(i))); CLog::Log(LOGNOTICE, "Enabled Joystick: %s", SDL_JoystickName(i)); + CLog::Log(LOGNOTICE, "Details: Total Axis: %d Total Hats: %d Total Buttons: %d", + SDL_JoystickNumAxes(joy), SDL_JoystickNumHats(joy), SDL_JoystickNumButtons(joy)); } else { |