summaryrefslogtreecommitdiffstats
path: root/minuitwrp/events.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-09gui: avoid high CPU usage while waiting for inputthat1-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
2015-02-01gui: fix lag (and event logging)that1-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
2015-01-30Move input handling into the main threadEthan Yonker1-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
2014-12-29Add TW_IGNORE_MT_POSITION_0 touch flagEthan Yonker1-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
2014-08-14Fix derpEthan Yonker1-1/+1
Change-Id: Idf41990258361e612635980700fd694b11c1c625
2014-08-14Allow blacklisting input devices by build flagEthan Yonker1-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
2014-06-30minuitwrp: use a whitelist for the input device instead of a hardcoded ignore listFlemmard1-0/+7
* use a whitelist for the input device to listen on, every other will be ignored Change-Id: I1296a45ec3d5ca0bca2a9e2601b0710e2c030fde
2014-06-04Whitespace and minor code cleanupMatt Mower1-3/+3
This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
2014-04-16Add support for actions triggered by key combinationVojtech Bocek1-1/+8
Change-Id: I9dfa7de40229f00412d63fc9c1eb3a809a6eb2e6 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-04-01Support Qualcomm overlay graphics in recoveryEthan Yonker1-1/+1
Change-Id: Ia75c34ab1a45b7c8802c902906198517aa3437d5
2014-02-20Look also for buttons when checking if input device is mouseVojtech Bocek1-3/+12
* Some touchscreens have REL_* events Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I332637ff58324895896ad09bf4ac08a2f127e49f
2014-02-07Implement mouse cursorVojtech Bocek1-8/+70
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
2014-02-06Add haptic feedbackSamer Diab (S.a.M.e.R_d)1-0/+2
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
2014-01-04Don't interpret ABS_MT_TOUCH_MAJOR == 0 as touch releaseIbrahim Awwal1-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
2013-08-24Revert "Fix touch not working due to gr_fb_width returning 0 in some cases"Dees_Troy1-15/+16
This reverts commit 70e1129612765b14e5aace0155d4683c91cde951. No longer needed after http://review.teamw.in/#/c/655/
2013-08-11Fix touch not working due to gr_fb_width returning 0 in some casesDees_Troy1-16/+15
Change-Id: Id5ce607a181110118ebc647fc07d387a7a3dc660
2013-07-08Remove unneeded touch code changesDees_Troy1-15/+0
2013-07-01Fix touch on some Samsung devicesDees_Troy1-11/+41
Change-Id: I3e2a67979c60a8e9f37f46f4fb0b0682c56ec95b
2013-05-03Allow for more input devicesDees_Troy1-1/+1
2013-04-04Move all AOSP code out of recovery binaryDees_Troy1-25/+25
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2012-12-11Ignore bma150 in event handlerDees_Troy1-1/+1
2012-09-28Fix compiler warningsDees_Troy1-0/+6
2012-09-05TWRP-ify AOSP codeDees_Troy1-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