OcConfigLib: Use safe value 1 as KeySubsequentDelay failsafe

This commit is contained in:
Marvin Häuser 2021-04-02 23:22:24 +02:00
parent 2e8dbb1229
commit 0651dd9175
2 changed files with 4 additions and 3 deletions

View File

@ -6195,11 +6195,12 @@ functioning. Feature highlights:
\item
\texttt{KeySubsequentDelay}\\
\textbf{Type}: \texttt{plist\ integer}\\
\textbf{Failsafe}: \texttt{0} (no delay)\\
\textbf{Failsafe}: \texttt{1}\\
\textbf{Description}: Configure subsequent keyboard repeat delay in OpenCore implementation
of Apple Event protocol, in units of 10ms.
Configures the gap between key repeats. The Apple OEM default value is \texttt{5} (50ms).
\texttt{0} is an invalid value for this option.
When using \texttt{KeySupport}, you may find that you get one additional slow key repeat
before normal speed key repeat starts. If so, set \texttt{KeyInitialDelay} to \texttt{0}

View File

@ -588,8 +588,8 @@ typedef enum {
#define OC_UEFI_APPLEINPUT_FIELDS(_, __) \
_(OC_STRING , AppleEvent , , OC_STRING_CONSTR ("Auto", _, __) , OC_DESTR (OC_STRING) ) \
_(OC_STRING , CustomDelays , , OC_STRING_CONSTR ("Auto", _, __) , OC_DESTR (OC_STRING) ) \
_(UINT16 , KeyInitialDelay , , 0 , ()) \
_(UINT16 , KeySubsequentDelay , , 0 , ())
_(UINT16 , KeyInitialDelay , , 0 , ()) \
_(UINT16 , KeySubsequentDelay , , 1 , ()) \
OC_DECLARE (OC_UEFI_APPLEINPUT)
///