summaryrefslogtreecommitdiffstats
path: root/minuitwrp/events.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gui: avoid high CPU usage while waiting for inputthat2015-02-091-2/+2
| | | | | | | | | - add a timeout to ev_get - set timeout to 1 second when idle - delay timeout for 15 frames to keep animation objects working - stop kinetic scrolling immediately at end of list Change-Id: I77138055c464b65b71e296f9c7ef63ea06809bc1
* gui: fix lag (and event logging)that2015-02-011-1/+2
| | | | | | | | | | | | | | - Process multiple input events per frame even if rendering takes longer than 33 ms. Limit minimum frames per second to 2 instead, allowing us to catch up with the input events. The lag was especially visible when using the mouse. - Move blankTimer calls to the main input function so that moving the mouse also unblanks. - Fix a compile error with event logging. Change-Id: If9e0360f5cc0562c4356611afc61b6d583fb1ec4
* Move input handling into the main threadEthan Yonker2015-01-301-26/+22
| | | | | | | | | This also makes the hardwarekeyboard.cpp file that I created for the Asus Transformer tablets with a keyboard dock the default hardware keyboard handler. USB keyboards should work properly now if present for keyboard input. Change-Id: I724606e91ffe2a55265a9d1cb1ec714de244d38b
* Add TW_IGNORE_MT_POSITION_0 touch flagEthan Yonker2014-12-291-0/+12
| | | | | | | | This fixes touch on the a11 when fastboot booting the image. We are also adding event logging for ABS_MT_POSITION data which we should have been logging before but for some reason we did not. Change-Id: I1b38c31c716efdcbe48db4faa5d0cef97c91c58e
* Fix derpEthan Yonker2014-08-141-1/+1
| | | | Change-Id: Idf41990258361e612635980700fd694b11c1c625
* Allow blacklisting input devices by build flagEthan Yonker2014-08-141-1/+16
| | | | | | | | | | | | | | | | | | | Usage: TW_INPUT_BLACKLIST := accelerometer TW_INPUT_BLACKLIST := "accelerometer\x0agyroscope" This can be used to fix touch input on devices where an input device is breaking touch processing in TWRP. We are using new line chars to separate multiple devices and in the make file you specify the new line character with \x0a which is the hex code in ASCII for a new line. The new line character might be a bit of a pain to use as a delimeter, but it is highly unlikely that an OEM will ever name an input device with a new line character in the name. Change-Id: I255136b7a686909a23e649918c661843153c2853
* minuitwrp: use a whitelist for the input device instead of a hardcoded ignore listFlemmard2014-06-301-0/+7
| | | | | | * use a whitelist for the input device to listen on, every other will be ignored Change-Id: I1296a45ec3d5ca0bca2a9e2601b0710e2c030fde
* Whitespace and minor code cleanupMatt Mower2014-06-041-3/+3
| | | | | | This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
* Add support for actions triggered by key combinationVojtech Bocek2014-04-161-1/+8
| | | | | Change-Id: I9dfa7de40229f00412d63fc9c1eb3a809a6eb2e6 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Support Qualcomm overlay graphics in recoveryEthan Yonker2014-04-011-1/+1
| | | | Change-Id: Ia75c34ab1a45b7c8802c902906198517aa3437d5
* Look also for buttons when checking if input device is mouseVojtech Bocek2014-02-201-3/+12
| | | | | | | | * Some touchscreens have REL_* events Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I332637ff58324895896ad09bf4ac08a2f127e49f
* Implement mouse cursorVojtech Bocek2014-02-071-8/+70
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
* Add haptic feedbackSamer Diab (S.a.M.e.R_d)2014-02-061-0/+2
| | | | Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
* Don't interpret ABS_MT_TOUCH_MAJOR == 0 as touch releaseIbrahim Awwal2014-01-041-0/+2
| | | | | | | | | | | | On n8013 at least, this event is sometimes/often sent on touch start which causes touches to be randomly rejected and throws you back to the start screen. Touch releases still work fine for me, since it sends ABS_MT_TRACKING_ID == -1 for that purpose. Adds a flag TW_IGNORE_MAJOR_AXIS_0 to configure this behavior. Change-Id: I14bb036a2c2d4ee676b642c3ab297c55bb6c2084
* Revert "Fix touch not working due to gr_fb_width returning 0 in some cases"Dees_Troy2013-08-241-15/+16
| | | | | This reverts commit 70e1129612765b14e5aace0155d4683c91cde951. No longer needed after http://review.teamw.in/#/c/655/
* Fix touch not working due to gr_fb_width returning 0 in some casesDees_Troy2013-08-111-16/+15
| | | | Change-Id: Id5ce607a181110118ebc647fc07d387a7a3dc660
* Remove unneeded touch code changesDees_Troy2013-07-081-15/+0
|
* Fix touch on some Samsung devicesDees_Troy2013-07-011-11/+41
| | | | Change-Id: I3e2a67979c60a8e9f37f46f4fb0b0682c56ec95b
* Allow for more input devicesDees_Troy2013-05-031-1/+1
|
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-25/+25
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Ignore bma150 in event handlerDees_Troy2012-12-111-1/+1
|
* Fix compiler warningsDees_Troy2012-09-281-0/+6
|
* TWRP-ify AOSP codeDees_Troy2012-09-051-0/+640
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere