Permalink
Browse files

Completely new Input/Touchscreen Handler - Thanks to agrabren from TWRP

Remove all calibration need.
  • Loading branch information...
1 parent 99320de commit ea100b05c16ac0deaba42a4cc744d5a6b04ce9c8 @amarullz committed Oct 3, 2012
@@ -16,12 +16,12 @@
#
### FILE INFO:
#
-# AROMA Installer 2.00 - AROMA Installer Test Script Configuration
+# AROMA Installer 2.51 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
-# Binary Version : 2.50
+# Binary Version : 2.55
# Binary Codename : Edelweis
#
### INFO:
@@ -70,7 +70,9 @@
# ini_set("dp","5");
#
-##[ REQUIRED ]
+#### NOTE >> THIS VERSION DOESN'T NEED ANY CALIBRATION DATA :)
+
+##[ DEPRECATED - WONT DO ANYTHING FOR THIS VERSION ]
# Calibrate Touchscreen - MATRIX METHOD
#
# For other device, run the installer, then press "menu"
@@ -84,10 +86,10 @@
#
# Current calibration was for HTC Sensation/XE/4G Devices:
#
-calibrate_matrix(
- "63052.50", "840.00", "-903390.00", "-1680.00",
- "125895.00", "-371670.00", "120021.25", "0"
-);
+#calibrate_matrix(
+# "63052.50", "840.00", "-903390.00", "-1680.00",
+# "125895.00", "-371670.00", "120021.25", "0"
+#);
##[ DEPRECATED ]
# Calibrate Touchscreen
@@ -127,10 +129,10 @@ calibrate_matrix(
# Initializing Rom Information
#
ini_set("rom_name", "AROMA Test Zip");
-ini_set("rom_version", "2.50");
+ini_set("rom_version", "2.55");
ini_set("rom_author", "amarullz");
ini_set("rom_device", "Any Device");
-ini_set("rom_date", "Apr, 25 2012");
+ini_set("rom_date", "Oct, 03 2012");
##
@@ -160,11 +162,11 @@ anisplash(
"splash/a6", 30
);
-##
+##[DEPRECATED]
# Show Calibrating Tools Directly before show any UI
#
#--- Remove this calibtool if you already know the calibrate data
-calibtool("");
+# calibtool("");
#
# Set Small Font to Support all fonts
@@ -1,3 +1,10 @@
+<b><#selectbg_g>EDELWEIS - 2.55</#></b>
+<*>Completely new Input/Touchscreen Handler</*>
+<*>Remove all calibration need. calibtool(), calibrate() and calibrate_matrix() won't do anything now. :)</*>
+
+<b><#selectbg_g>EDELWEIS - 2.51</#></b>
+<*>Add Support for Galaxy Nexus</*>
+
<b><#selectbg_g>EDELWEIS - 2.50</#></b>
<*>Add Calibration Matrix for More Accurate Touch screen calibration</*>
<*>Set ROBOTO as Default True Type Font</*>
View
@@ -75,8 +75,8 @@
// AROMA Main Configurations
//
#define AROMA_NAME "AROMA INSTALLER"
-#define AROMA_VERSION "2.50"
-#define AROMA_BUILD "120716-025"
+#define AROMA_VERSION "2.55"
+#define AROMA_BUILD "121003-030"
#define AROMA_BUILD_CN "Edelweis"
#define AROMA_BUILD_L "Bandung - Indonesia"
#define AROMA_BUILD_A "<support@amarullz.com>"
@@ -637,11 +637,15 @@ byte ag_text_exl(CANVAS *_b,int maxwidth,int x,int y, const char *s, color cl_de
// Copyright (C) 2007 The Android Open Source Project
// Licensed under the Apache License
//
+/*
int atouch_gethack();
void atouch_sethack(int t);
+*/
struct input_event;
+/*
void atouch_set_calibrate(float dx, int ax, float dy, int ay);
void atouch_matrix_calibrate(AW_CALIBMATRIXP matrix);
+*/
int atouch_wait(ATEV *atev);
int atouch_wait_ex(ATEV *atev, byte calibratingtouch);
byte atouch_send_message(dword msg);
@@ -52,7 +52,7 @@ static void *ac_scrolltothread(void *cookie){
aw_draw(dt->ctl->win);
if (dt->requestHandler[0]!=dt->requestValue) break;
if (!dt->ctl->win->isActived) break;
- if (ui_key_pressed(atmsg())){
+ if (ontouch()){
ACONTROLP nctl = (ACONTROLP) dt->ctl->win->controls[dt->ctl->win->touchIndex];
if (nctl==dt->ctl)
break;
@@ -167,7 +167,7 @@ static void *ac_bouncethread(void *cookie){
aw_draw(dt->ctl->win);
if (!dt->ctl->win->isActived) break;
- if (ui_key_pressed(atmsg())){
+ if (ontouch()){
ACONTROLP nctl = (ACONTROLP) dt->ctl->win->controls[dt->ctl->win->touchIndex];
if (nctl==dt->ctl)
break;
@@ -233,7 +233,7 @@ static void *ac_flingthread(void *cookie){
if (!dt->ctl->win->isActived) break;
if ((dt->scrollY[0]<0-(dt->ctl->h/4))||(dt->scrollY[0]>dt->maxScrollY+(dt->ctl->h/4))) break;
- if (ui_key_pressed(atmsg())){
+ if (ontouch()){
ACONTROLP nctl = (ACONTROLP) dt->ctl->win->controls[dt->ctl->win->touchIndex];
if (nctl==dt->ctl)
break;
@@ -1246,7 +1246,16 @@ byte aw_calibmatrix(AW_CALIBPOINTP displayPtr, AW_CALIBPOINTP screenPtr, AW_CALI
return retValue;
} /* end of setCalibrationMatrix() */
+
byte aw_calibtools(AWINDOWP parent){
+ aw_alert(parent,
+ "No Need Calibration",
+ "This version doesn't need any calibration data...",
+ NULL,
+ NULL);
+ return 1;
+}
+byte aw_calibtools_(AWINDOWP parent){
int USE_HACK = aw_confirm(
parent,
"Use alternative touch",
Oops, something went wrong.

0 comments on commit ea100b0

Please sign in to comment.