From 1fc30fc77b5588c4b651085c21003aceb4ec5083 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Wed, 29 Jan 2014 18:37:19 +0100 Subject: Implement mouse cursor Signed-off-by: Vojtech Bocek Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913 --- gui/Android.mk | 3 +- gui/devices/1024x600/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/1024x600/res/ui.xml | 7 ++ gui/devices/1024x768/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/1024x768/res/ui.xml | 7 ++ gui/devices/1080x1920/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/1080x1920/res/ui.xml | 7 ++ gui/devices/1200x1920/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/1200x1920/res/ui.xml | 7 ++ gui/devices/1280x800/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/1280x800/res/ui.xml | 7 ++ gui/devices/1920x1200/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/1920x1200/res/ui.xml | 7 ++ gui/devices/2560x1600/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/2560x1600/res/ui.xml | 7 ++ gui/devices/320x480/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/320x480/res/ui.xml | 7 ++ gui/devices/480x800/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/480x800/res/ui.xml | 7 ++ gui/devices/480x854/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/480x854/res/ui.xml | 7 ++ gui/devices/540x960/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/540x960/res/ui.xml | 7 ++ gui/devices/720x1280/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/720x1280/res/ui.xml | 7 ++ gui/devices/800x1280/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/800x1280/res/ui.xml | 7 ++ gui/devices/800x480/res/images/cursor.png | Bin 0 -> 1452 bytes gui/devices/800x480/res/ui.xml | 7 ++ gui/gui.cpp | 63 +++++++++++- gui/mousecursor.cpp | 154 ++++++++++++++++++++++++++++ gui/objects.hpp | 25 +++++ gui/pages.cpp | 40 +++++++- gui/pages.hpp | 5 + 34 files changed, 384 insertions(+), 4 deletions(-) create mode 100644 gui/devices/1024x600/res/images/cursor.png create mode 100644 gui/devices/1024x768/res/images/cursor.png create mode 100644 gui/devices/1080x1920/res/images/cursor.png create mode 100644 gui/devices/1200x1920/res/images/cursor.png create mode 100644 gui/devices/1280x800/res/images/cursor.png create mode 100644 gui/devices/1920x1200/res/images/cursor.png create mode 100644 gui/devices/2560x1600/res/images/cursor.png create mode 100644 gui/devices/320x480/res/images/cursor.png create mode 100644 gui/devices/480x800/res/images/cursor.png create mode 100644 gui/devices/480x854/res/images/cursor.png create mode 100644 gui/devices/540x960/res/images/cursor.png create mode 100644 gui/devices/720x1280/res/images/cursor.png create mode 100644 gui/devices/800x1280/res/images/cursor.png create mode 100644 gui/devices/800x480/res/images/cursor.png create mode 100644 gui/mousecursor.cpp (limited to 'gui') diff --git a/gui/Android.mk b/gui/Android.mk index ac0b2037c..29d99f7f8 100644 --- a/gui/Android.mk +++ b/gui/Android.mk @@ -22,7 +22,8 @@ LOCAL_SRC_FILES := \ keyboard.cpp \ input.cpp \ blanktimer.cpp \ - partitionlist.cpp + partitionlist.cpp \ + mousecursor.cpp ifneq ($(TWRP_CUSTOM_KEYBOARD),) LOCAL_SRC_FILES += $(TWRP_CUSTOM_KEYBOARD) diff --git a/gui/devices/1024x600/res/images/cursor.png b/gui/devices/1024x600/res/images/cursor.png new file mode 100644 index 000000000..32c8ae1ca Binary files /dev/null and b/gui/devices/1024x600/res/images/cursor.png differ diff --git a/gui/devices/1024x600/res/ui.xml b/gui/devices/1024x600/res/ui.xml index f1ec1443e..4597fb3a3 100755 --- a/gui/devices/1024x600/res/ui.xml +++ b/gui/devices/1024x600/res/ui.xml @@ -38,6 +38,7 @@ + @@ -205,6 +206,12 @@ + + + + + +