summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-01-09 21:35:34 +0100
committerMatt Mower <mowerm@gmail.com>2017-01-18 21:09:42 +0100
commit91584b2603456a1f57b593e588f381def18d8f01 (patch)
treecb79aa881d7e6e5e6a6eb92f0c51ad04212d3758 /gui
parentGUI: Mark local flip() function as static (diff)
downloadandroid_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.tar
android_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.tar.gz
android_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.tar.bz2
android_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.tar.lz
android_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.tar.xz
android_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.tar.zst
android_bootable_recovery-91584b2603456a1f57b593e588f381def18d8f01.zip
Diffstat (limited to 'gui')
-rw-r--r--gui/hardwarekeyboard.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/hardwarekeyboard.cpp b/gui/hardwarekeyboard.cpp
index f831727d1..68be9065d 100644
--- a/gui/hardwarekeyboard.cpp
+++ b/gui/hardwarekeyboard.cpp
@@ -37,6 +37,7 @@ extern "C" {
#include "../common.h"
}
+#include "../twcommon.h"
#include "objects.hpp"
#include <linux/input.h>
@@ -361,7 +362,7 @@ static int KeyCodeToChar(int key_code, bool shiftkey, bool ctrlkey)
#ifdef _EVENT_LOGGING
default:
- LOGE("Unmapped keycode: %i\n", key_code);
+ LOGERR("Unmapped keycode: %i\n", key_code);
break;
#endif
}
@@ -384,7 +385,7 @@ bool HardwareKeyboard::IsKeyDown(int key_code)
int HardwareKeyboard::KeyDown(int key_code)
{
#ifdef _EVENT_LOGGING
- LOGE("HardwareKeyboard::KeyDown %i\n", key_code);
+ LOGERR("HardwareKeyboard::KeyDown %i\n", key_code);
#endif
key_code = TranslateKeyCode(key_code);
mPressedKeys.insert(key_code);
@@ -410,7 +411,7 @@ int HardwareKeyboard::KeyDown(int key_code)
int HardwareKeyboard::KeyUp(int key_code)
{
#ifdef _EVENT_LOGGING
- LOGE("HardwareKeyboard::KeyUp %i\n", key_code);
+ LOGERR("HardwareKeyboard::KeyUp %i\n", key_code);
#endif
key_code = TranslateKeyCode(key_code);
std::set<int>::iterator itr = mPressedKeys.find(key_code);
@@ -424,7 +425,7 @@ int HardwareKeyboard::KeyUp(int key_code)
int HardwareKeyboard::KeyRepeat()
{
#ifdef _EVENT_LOGGING
- LOGE("HardwareKeyboard::KeyRepeat: %i\n", mLastKeyChar);
+ LOGERR("HardwareKeyboard::KeyRepeat: %i\n", mLastKeyChar);
#endif
if (mLastKeyChar)
PageManager::NotifyCharInput(mLastKeyChar);