aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guilib/Key.cpp4
-rw-r--r--guilib/Key.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/guilib/Key.cpp b/guilib/Key.cpp
index 7d19a2a47d..c820c1c889 100644
--- a/guilib/Key.cpp
+++ b/guilib/Key.cpp
@@ -63,10 +63,10 @@ uint32_t CKey::GetButtonCode() const // for backwards compatibility only
return m_buttonCode;
}
-uint32_t CKey::GetUnicode() const
+wchar_t CKey::GetUnicode() const
{
if (m_buttonCode>=KEY_ASCII && m_buttonCode < KEY_UNICODE) // will need to change when Unicode is fully implemented
- return m_buttonCode-KEY_ASCII;
+ return (wchar_t)(m_buttonCode - KEY_ASCII);
else
return 0;
}
diff --git a/guilib/Key.h b/guilib/Key.h
index d5328443c0..e1805c9d8b 100644
--- a/guilib/Key.h
+++ b/guilib/Key.h
@@ -428,7 +428,7 @@ public:
virtual ~CKey(void);
const CKey& operator=(const CKey& key);
uint32_t GetButtonCode() const; // for backwards compatibility only
- uint32_t GetUnicode() const; // http api does not really support unicode till now. It only simulates unicode when ascii codes are available:
+ wchar_t GetUnicode() const; // http api does not really support unicode till now. It only simulates unicode when ascii codes are available:
uint8_t GetLeftTrigger() const;
uint8_t GetRightTrigger() const;
float GetLeftThumbX() const;