summaryrefslogtreecommitdiffstats
path: root/minuitwrp/events.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-18Vibration: allow BoardConfig to disable vibration for a device.bigbiff bigbiff1-0/+4
Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
2019-01-16minuitwrp: Support haptics drivers registered with LED class frameworknotsyncing1-15/+21
This type of vibrator is found on newer kernel versions (4.9+) and registers with LED class framework (located at /sys/class/leds/vibrator). Change-Id: I85e93fdac17b3f4b6f2ae689bbbd490806b5c29b
2017-02-23Use LOGI/LOGE for non-EVENT_LOGGING eventsMatt Mower1-10/+14
Change-Id: Iaebc613a25a727a91205d2f361e9d7719036d88d
2016-08-11Make input whitelist and blacklist work for mouse devices tooEthan Yonker1-4/+6
Includes some minor code clean up. Also we are now outputting the name of the first mouse device that we encounter to make it easier to identify which device(s) may need to be blacklisted. Change-Id: I515baf92967390edd224728f3a7092239138e6b8
2016-01-27Update minuitwrp graphics in line with latest minuiEthan Yonker1-1/+1
Note: events.cpp is still old code renamed to cpp to make it easier to call functions like gr_fb_width(). I had to modify AOSP fbdev code to provide a separate memory surface for drawing to as drawing directly to the framebuffer resulted in rendering taking about 5 times longer. I also modified AOSP adf code to provide a separate memory surface for drawing for the same performance reasons. The Nexus 9 supports adf graphics. Overlay graphics work on at least one device. Overlay provides a separate memory buffer already so performance is good. I do not have a drm device yet that I know of. I made some attempt to update the drm code to determine the correct pixel format based on the drm graphics format, but what is available in pixel flinger and what is available in drm do not line up all that well. Reports are that the Pixel C is using drm graphics, but performance is slow, likely due to the use of a mmap instead of a memory buffyer. Change-Id: Ibd45bccca6ac2cb826037aa9b2aa5065cf683eed
2015-08-26Add TW_IGNORE_ABS_MT_TRACKING_IDEthan Yonker1-0/+10
Fixes touch on Oppo R7 Plus Oppo R7 Plus, when recovery is flashed and booted from the actual recovery partition, the digitizer sends some extra touch data for up to 10 different touch slots even if no actual touch is present for those slots (ABS_MT_SLOT). This patch allows TWRP to handle touch data properly for this device and maybe others. Change-Id: I8f9171b605566788b674b3d4d96bd9f2f65736c2
2015-03-19Ingore touch events for 0,0Ethan Yonker1-0/+6
Change-Id: I63eb29d7a39956d92cb5da81c5cb4405930d43ae
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