diff options
author | John Rennie <john.rennie@ratsauce.co.uk> | 2011-06-01 11:47:47 +0100 |
---|---|---|
committer | John Rennie <john.rennie@ratsauce.co.uk> | 2011-06-01 11:47:47 +0100 |
commit | 729395955eef1fc93e6532425b1f7f04a6554dfa (patch) | |
tree | 2e0028c040858f156f9868cd0e7220f47e887d11 | |
parent | 1c06fe899e9c6f932c13671fa7ed3d88e554a1f0 (diff) |
Correct typo in comment and make CMouseStat GetXXX functions const
-rw-r--r-- | xbmc/Application.cpp | 2 | ||||
-rw-r--r-- | xbmc/input/MouseStat.cpp | 2 | ||||
-rw-r--r-- | xbmc/input/MouseStat.h | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp index e6c722c561..ae1e084ecf 100644 --- a/xbmc/Application.cpp +++ b/xbmc/Application.cpp @@ -2919,7 +2919,7 @@ bool CApplication::ProcessMouse() CAction mouseaction = CButtonTranslator::GetInstance().GetAction(iWin, key); // If we couldn't find an action return false to indicate we have not - // handled this appcommand + // handled this mouse action if (!mouseaction.GetID()) { CLog::Log(LOGDEBUG, "%s: unknown mouse command %d", __FUNCTION__, mousecommand); diff --git a/xbmc/input/MouseStat.cpp b/xbmc/input/MouseStat.cpp index e51a1f25c2..7027e066e3 100644 --- a/xbmc/input/MouseStat.cpp +++ b/xbmc/input/MouseStat.cpp @@ -276,7 +276,7 @@ uint32_t CMouseStat::GetAction() const return actionID; } -int CMouseStat::GetHold(int ButtonID) +int CMouseStat::GetHold(int ButtonID) const { switch (ButtonID) { case MOUSE_LEFT_BUTTON: diff --git a/xbmc/input/MouseStat.h b/xbmc/input/MouseStat.h index 1dd996a4a4..33f6ac5403 100644 --- a/xbmc/input/MouseStat.h +++ b/xbmc/input/MouseStat.h @@ -78,11 +78,11 @@ public: MOUSE_STATE GetState() const { return m_pointerState; }; uint32_t GetAction() const; - int GetHold(int ButtonID); - inline int GetX(void) { return m_mouseState.x; } - inline int GetY(void) { return m_mouseState.y; } - inline int GetDX(void) { return m_mouseState.dx; } - inline int GetDY(void) { return m_mouseState.dy; } + int GetHold(int ButtonID) const; + inline int GetX(void) const { return m_mouseState.x; } + inline int GetY(void) const { return m_mouseState.y; } + inline int GetDX(void) const { return m_mouseState.dx; } + inline int GetDY(void) const { return m_mouseState.dy; } private: /*! \brief Holds information regarding a particular mouse button state |