summaryrefslogtreecommitdiffstats
path: root/gui/gui.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-12-31 01:10:37 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:41:17 +0100
commita8a89d1961998a0dffbafbec3de90774933ca515 (patch)
treeb3fab0d1413ebcdb49e77919f6196bf0c5a6a67c /gui/gui.cpp
parentgui: remove old unmaintained 2.x theme (diff)
downloadandroid_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.tar
android_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.tar.gz
android_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.tar.bz2
android_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.tar.lz
android_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.tar.xz
android_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.tar.zst
android_bootable_recovery-a8a89d1961998a0dffbafbec3de90774933ca515.zip
Diffstat (limited to '')
-rw-r--r--gui/gui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gui/gui.cpp b/gui/gui.cpp
index df41939fb..17ed108fc 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -300,15 +300,15 @@ void InputHandler::process_EV_KEY(input_event& ev)
// Handle key-press here
LOGEVENT("TOUCH_KEY: %d\n", ev.code);
// Left mouse button is treated as a touch
- if(ev.code == BTN_LEFT)
+ if (ev.code == BTN_LEFT)
{
MouseCursor *cursor = PageManager::GetMouseCursor();
- if(ev.value == 1)
+ if (ev.value == 1)
{
cursor->GetPos(x, y);
doTouchStart();
}
- else if(touch_status)
+ else if (touch_status)
{
// Left mouse button was previously pressed and now is
// being released so send a TOUCH_RELEASE
@@ -323,9 +323,9 @@ void InputHandler::process_EV_KEY(input_event& ev)
}
}
// side mouse button, often used for "back" function
- else if(ev.code == BTN_SIDE)
+ else if (ev.code == BTN_SIDE)
{
- if(ev.value == 1)
+ if (ev.value == 1)
kb->KeyDown(KEY_BACK);
else
kb->KeyUp(KEY_BACK);
@@ -366,12 +366,12 @@ void InputHandler::process_EV_REL(input_event& ev)
// Mouse movement
MouseCursor *cursor = PageManager::GetMouseCursor();
LOGEVENT("EV_REL %d %d\n", ev.code, ev.value);
- if(ev.code == REL_X)
+ if (ev.code == REL_X)
cursor->Move(ev.value, 0);
- else if(ev.code == REL_Y)
+ else if (ev.code == REL_Y)
cursor->Move(0, ev.value);
- if(touch_status) {
+ if (touch_status) {
cursor->GetPos(x, y);
LOGEVENT("Mouse TOUCH_DRAG: %d, %d\n", x, y);
key_status = KS_NONE;