diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-02-19 02:01:22 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-02-19 02:01:22 +0000 |
commit | 560a80d4bb09745a75ea9bea9eeac6c815a3a938 (patch) | |
tree | 267afbc4095d03af03cf5019b7347e3389bf4562 /guilib/Key.h | |
parent | 596a6280c9e1c13a4db5473e2dc8483908272983 (diff) |
cleanup: Move initialisation of CAction objects to the constructor.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27959 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/Key.h')
-rw-r--r-- | guilib/Key.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/guilib/Key.h b/guilib/Key.h index ff439bd8b7..d210045ab1 100644 --- a/guilib/Key.h +++ b/guilib/Key.h @@ -393,14 +393,17 @@ #define ICON_TYPE_WEATHER 107 #define ICON_TYPE_SETTINGS 109 +class CKey; + /*! \ingroup actionkeys - \brief + \brief class encapsulating information regarding a particular user action to be sent to windows and controls */ class CAction { public: - CAction():actionId(0),amount1(0), amount2(amount1), repeat(0), buttonCode(0), unicode(0), holdTime(0){}; + CAction(int actionID, float amount1 = 1.0f, float amount2 = 0.0f, const CStdString &name = ""); + CAction(int actionID, const CStdString &name, const CKey &key); int actionId; float amount1; float amount2; |