62 Commits

Author SHA1 Message Date
MikeBeaton
31b645f176 OpenCanopy: Restore boot timeout logic after recent kb changes 2021-03-23 15:21:02 +00:00
MikeBeaton
e69e28cb69 BootPickers: Apple Event kb handling + typing; Apple Key Map non-repeat key handling; CTRL indicator in Builtin. 2021-03-23 12:26:46 +00:00
Marvin Häuser
c47ed0785c OpenCanopy: Simplify pointer code 2021-03-22 19:01:09 +01:00
Marvin Häuser
324eae102d OpenCanopy: Fix cursor redraw inconsistency 2021-03-22 17:16:31 +01:00
Marvin Häuser
74c37dc153 OpenCanopy: Remove DEBUG-only code to really silence Coverity 2021-03-20 16:56:01 +01:00
Marvin Häuser
5cff4aa0a5 OpenCanopy: Silence Coverity uninit warning 2021-03-20 15:54:44 +01:00
Marvin Häuser
29b6a69845 OpenCanopy: Initial double-click support 2021-03-20 11:17:27 +01:00
Marvin Häuser
6e13160e22 OpenCanopy: Pull KeyEvent out of GUI objects
Key events cannot abstractly be propagated, hence there is no point to the abstraction.
2021-03-19 22:42:11 +01:00
Marvin Häuser
6925d74d08 OpenCanopy: Fix pointer event propagation
Resolves issue where clicking on selected boot entries would not work.
2021-03-18 19:22:16 +01:00
Marvin Häuser
7b7d36a866 OpenCanopy: Replace linked lists with arrays for GUI object children 2021-03-17 20:04:46 +01:00
Marvin Häuser
cc61bd7ee9 OpenCanopy: Do not disable interrupts
On some systems, disabling interrupts will severely limit the input quality as it disables the KeySupport and AppleEvent timers. Furthermore, the mechanism barely mitigated tearing, so it was ineffective anyway.
2021-03-17 19:53:16 +01:00
Marvin Häuser
fa75245727 OpenCanopy: Simplify draw request merging 2021-03-16 20:02:38 +01:00
Marvin Häuser
c7ba611e49 OpenCanopy: Fix child clipping
Width and Height may have exceeded the dimensions of the current object.
2021-03-11 01:22:44 +01:00
Marvin Häuser
7372f6d2e4 OpenCanopy: Simplify background colour drawing 2021-03-08 16:13:47 +01:00
Marvin Häuser
c3c3508ae0 OpenCanopy: Properly offset pointer image 2021-03-08 15:06:55 +01:00
Marvin Häuser
99d0262211 OpenCanopy: Reset FrameTime per GUI loop
Animations beyond GUI loop iterations are not supported.
2021-03-07 15:17:07 +01:00
Marvin Häuser
6fab23fb94 OpenCanopy: Do not delegate past pointer events 2021-03-07 15:10:41 +01:00
Marvin Häuser
06a0374352 OpenCanopy: Do not crop draw requests for always-on-screen elements 2021-03-07 13:41:39 +01:00
Marvin Häuser
90a1dbd828 OpenCore: Simplify screen crop code 2021-03-06 22:57:50 +01:00
Marvin Häuser
c352bd4f31 OpenCanopy: Overlay pointer late to further reduce input lag 2021-03-06 22:57:50 +01:00
Marvin Häuser
addabab242 OpenCanopy: Delay drawing based on draw requests 2021-03-06 22:57:50 +01:00
Marvin Häuser
28eb1cc675 OpenCanopy: Simplify draw requests 2021-03-06 11:46:05 +01:00
Marvin Häuser
71536e6d85 OpenCanopy: Merge draw requests iff not more area is drawn 2021-03-06 11:45:13 +01:00
Marvin Häuser
879f0e5c3c OpenCanopy: Restore the old cursor rectangle early 2021-03-05 17:53:24 +01:00
Marvin Häuser
626bb17d65 OpenCanopy: Fix potential crash on exit 2021-03-05 12:33:26 +01:00
Marvin Häuser
ca0b337f5b OpenCanopy: Remove unused parameter 2021-03-03 14:28:52 +03:00
Marvin Häuser
fac607bf94 OpenCanopy: Refactor pointer code to remove unnecessary abstractions 2021-03-03 14:28:52 +03:00
Marvin Häuser
4008e31d1b OpenCanopy: Re-poll coordinates on cursor draw to reduce input lag 2021-03-03 14:28:52 +03:00
Marvin Häuser
c2f30dc7f6 OpenCanopy: Simplify pointer state code 2021-03-03 14:28:52 +03:00
Marvin Häuser
a8522cc3a5 OpenCanopy: Optimise cursor (re)drawing 2021-03-03 14:28:52 +03:00
Marvin Häuser
d97fde1d27 OpenCanopy: Remove redundant ASSERTs 2021-03-03 14:28:52 +03:00
Marvin Häuser
da80bd038c OpenCanopy: Slightly optimise child clipping 2021-03-03 14:28:52 +03:00
Marvin Häuser
1e0ae75d7a OpenCanopy: Separate code paths for additional opaque blending 2021-03-03 14:28:52 +03:00
Marvin Häuser
cb998a2c2b OpenCanopy: Separate functions to draw images and fill 2021-03-03 14:28:52 +03:00
Marvin Häuser
7456a41d42 OpenCanopy: Allow redraw requests only from top-level 2021-03-03 14:28:52 +03:00
Marvin Häuser
2b4ee6ad96 OpenCanopy: Simplify code 2021-03-03 14:28:52 +03:00
Marvin Häuser
31bbb23776 OpenCanopy: Do not blend background colour 2021-03-03 14:28:52 +03:00
Marvin Häuser
dc0d11245b OpenCanopy: Slightly simplify blending control flow 2021-03-03 14:28:52 +03:00
vit9696
ec525758e8 OpenCanopy: Fix abort timeout sound on key press
closes acidanthera/bugtracker#1499
2021-02-21 12:13:07 +03:00
Marvin Häuser
6698ee9c36 OpenCanopy: Do not draw children outside their parent's bounds 2021-01-06 17:13:15 +01:00
Marvin Häuser
31c82e3bc0 OpenCanopy: Small optimisations 2021-01-06 17:13:15 +01:00
vit9696
c23174e701 OpenCanopy: Fix timeout sound in audio assistant 2021-01-02 16:19:56 +03:00
Michael Belyaev
d815a83be0
OpenCanopy: Basic audio assist support (#74)
Co-authored-by: Michael Belyaev <usrsse2@me.com>
Co-authored-by: vit9696 <vit9696@users.noreply.github.com>
2020-12-16 23:03:11 +03:00
vit9696
8de0843341 OpenCanopy: Do not try to draw cursor when pointer control is disabled 2020-12-06 05:13:58 +03:00
vit9696
b480c025ed OpenCanopy: Fix assertion with disabled mouse pointer 2020-12-06 05:04:29 +03:00
vit9696
5c9e826cc7 OpenCanopy: Made pointer control optional via PickerAttributes 2020-12-06 03:38:20 +03:00
dakanji
3be03979a8
OcPngLib: Use Standard OpenCore Function Name Format (#156) 2020-11-22 11:01:17 +03:00
vit9696
8ee217afbc OcSerializeLib: Fix potential compiler warning 2020-10-04 07:06:23 +03:00
Michael Belyaev
df50d19093 OpenCanopy: change VOID* to explicit BOOT_PICKER_GUI_CONTEXT* 2020-05-17 20:30:46 +03:00
vit9696
bd0cc2f54f OpenCanopy: Added partial hotkey support (e.g. Ctrl+Enter) 2020-05-11 02:55:25 +03:00