diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-02-20 10:10:56 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-02-20 10:10:56 +0000 |
commit | 136f81db70733595217bdf8d18601f3a47efe321 (patch) | |
tree | 6ac74ab2b3019a15f1c7cf8ac170671c67a75c7a /guilib | |
parent | 5080f89331e0171d2b213794f76452841ddc7ddd (diff) |
fixed: Direct keyboard input wasn't working
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27998 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r-- | guilib/Key.cpp | 11 | ||||
-rw-r--r-- | guilib/Key.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/guilib/Key.cpp b/guilib/Key.cpp index 6c031c7e90..cebcae3237 100644 --- a/guilib/Key.cpp +++ b/guilib/Key.cpp @@ -192,6 +192,17 @@ CAction::CAction(int actionID, unsigned int state, float posX, float posY, float m_holdTime = state; } +CAction::CAction(int actionID, wchar_t unicode) +{ + m_id = actionID; + for (unsigned int i = 0; i < max_amounts; i++) + m_amount[i] = 0; + m_repeat = 0; + m_buttonCode = 0; + m_unicode = unicode; + m_holdTime = 0; +} + CAction::CAction(int actionID, const CStdString &name, const CKey &key) { m_id = actionID; diff --git a/guilib/Key.h b/guilib/Key.h index d33ad9a82f..fd175d4b0e 100644 --- a/guilib/Key.h +++ b/guilib/Key.h @@ -404,6 +404,7 @@ class CAction { public: CAction(int actionID, float amount1 = 1.0f, float amount2 = 0.0f, const CStdString &name = ""); + CAction(int actionID, wchar_t unicode); CAction(int actionID, unsigned int state, float posX, float posY, float offsetX, float offsetY); CAction(int actionID, const CStdString &name, const CKey &key); |