summaryrefslogtreecommitdiffstats
path: root/gui/keyboard.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Vibration: allow BoardConfig to disable vibration for a device.bigbiff bigbiff2019-03-181-0/+8
| | | | Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
* Merge AOSP android-9.0.0_r3Ethan Yonker2018-08-241-3/+3
| | | | | | Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
* Unused variable cleanupMatt Mower2017-01-181-1/+0
| | | | Change-Id: I2397d0bd221dcf5c9d0f971ba157519bcf014a70
* Update minuitwrp graphics in line with latest minuiEthan Yonker2016-01-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* gui: add keyboard support for Ctrl layer and more special keysthat2016-01-071-21/+84
| | | | | | | | | | | - rename NotifyKeyboard to NotifyCharInput - input: handle arrow keys in NotifyKey with standard KEY_* codes - fix page handler to return 0 from NotifyKey if key was handled - fix GUIAction::NotifyKey to not swallow all keys - change home button code from KEY_HOME to KEY_HOMEPAGE (to avoid collision with Home/End, conforms to Android 3.0+) Change-Id: Ib138afa492df8d0c1975415e8b5334c8778ccc90
* Allow text to scale to fitEthan Yonker2015-10-161-2/+2
| | | | Change-Id: Iacd4bb78f551b51d092ecde09521b5541e7dadcd
* gui: keyboard: support longpress label offset, code cleanupthat2015-07-141-149/+116
| | | | | | | | | | | | To position the longpress label: <longpress font="..." textcolor="..." x="5" y="0"/> x and y is the distance from the upper right corner. - extract method GUIKeyboard::DrawKey - clean up handling of currently pressed key - integrate key highlighting into main key drawing loops Change-Id: I80ccf2975d30cffa2a48627a74ab3693c84e4fa4
* [WIP] gui: software drawn keyboard (code only)that2015-06-201-12/+163
| | | | Change-Id: I9f05c85f8d43ab012228a78b79220a27876a299d
* gui: keyboard: introduce struct Layout and simplify caps handlingthat2015-03-151-68/+58
| | | | | | | | Also minor cleanups: - move array limits from #defines to a protected enum - zero fill layouts in ctor Change-Id: I8fe0f8465ebc646ad3bf3cc3f8490dbdd384f43d
* gui: keyboard: add HitTestKey method, minor simplificationsthat2015-03-141-114/+100
| | | | Change-Id: I6cd0251dd9d933e6ebef977a553be7473e2d7034
* gui: keyboard doesn't need its own actionthat2015-03-141-28/+2
| | | | | | | This was questionable design and is unused anyway. Also reduced a few redundant #includes. Change-Id: I65bb01120e6072c5695755920242f6f9d73c816e
* GUI: Support styles in xml to reduce xml file sizeEthan Yonker2015-02-211-27/+9
| | | | | | | Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308
* gui: make resources type safethat2015-02-151-3/+3
| | | | | | | | | | | - add string, int, color and resource loading helpers - use typed resource classes, and some cleanup in loading code - remove abstract GetResource() to enforce type safe access - add height and width query methods to resources and use them - minor cleanup - simplify LoadPlacement Change-Id: I9b81785109a80b3806ad6b50cba4d893b87b0db1
* Scale the GUI to fit the screenEthan Yonker2015-02-101-3/+4
| | | | | | | | | | | | With this patch set, if needed, we scale the images during early boot. TTF support is needed to properly scale the font. No font scaling is done on the old style fixed width font used in the console. Special thanks to _that for figuring out the scaling and blending function calls to make this possible. Change-Id: If2f79bef16d6db2e1298bfc3d00c9bcca2bee37a
* gui: simplify code in GUIKeyboardthat2015-02-011-126/+68
| | | | | | | | - merge duplicated code into new ParseKey method - convert some unsigned int to int to avoid warnings - add local variable for current key in NotifyTouch to reduce clutter Change-Id: I98ddbaca50d487c97ab6e98938df91ef03b9aed5
* Add capslock support to keyboardEthan Yonker2014-02-171-2/+61
| | | | Change-Id: I4be3849ff0485536575395d798aa5edbe12651a7
* Properly delete all GUIObjects and pages on theme reloadVojtech Bocek2014-02-121-3/+0
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34
* Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek2014-02-121-1/+1
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
* Expansion of vibrate optionsEthan Yonker2014-02-071-2/+2
| | | | | | | Improve location / timing of vibration Split out vibrate settings for buttons, keyboard, and long actions Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
* Add haptic feedbackSamer Diab (S.a.M.e.R_d)2014-02-061-0/+3
| | | | Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
* Update licenses to all matchDees Troy2013-10-221-21/+17
|
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-11/+10
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Increase char array sizes to allow for null char for strcpyDees_Troy2013-01-101-1/+1
|
* Add keyboard key highlightDees_Troy2012-10-201-4/+86
|
* Fix weird keyboard problemDees_Troy2012-10-151-3/+3
|
* TWRP-ify AOSP codeDees_Troy2012-09-051-0/+442
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