mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
vboot_reference: Fix keyboard input lag at confirm screen.
Changing languages is terribly slow at the confirm screen, when switching from dev to normal. Reduce sleep time to improve user experience. BUG=chrome-os-partner:15726 TEST=boot in dev, hit space, hit arrows rapidly to change language, observe no lag. BRANCH=butterfly, stout Change-Id: I0943debc31d78dcfce87e7f7d4537ae47f5f8cfd Reviewed-on: https://gerrit.chromium.org/gerrit/36956 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Ready: Shawn Nematbakhsh <shawnn@google.com> Tested-by: Shawn Nematbakhsh <shawnn@google.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
Gerrit
parent
ca8c372e60
commit
ba7fd8dff8
@@ -105,6 +105,8 @@ uint32_t VbTryLoadKernel(VbCommonParams* cparams, LoadKernelParams* p,
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define CONFIRM_KEY_DELAY 20 /* Check confirm screen keys every 20ms */
|
||||||
|
|
||||||
/* Ask the user to confirm something. We should display whatever the question
|
/* Ask the user to confirm something. We should display whatever the question
|
||||||
* is first, then call this. ESC is always "no", ENTER is always "yes", and
|
* is first, then call this. ESC is always "no", ENTER is always "yes", and
|
||||||
* we'll specify what SPACE means. We don't return until one of those keys is
|
* we'll specify what SPACE means. We don't return until one of those keys is
|
||||||
@@ -139,7 +141,7 @@ static int VbUserConfirms(VbCommonParams* cparams, int space_means_no) {
|
|||||||
default:
|
default:
|
||||||
VbCheckDisplayKey(cparams, key, &vnc);
|
VbCheckDisplayKey(cparams, key, &vnc);
|
||||||
}
|
}
|
||||||
VbExSleepMs(1000);
|
VbExSleepMs(CONFIRM_KEY_DELAY);
|
||||||
}
|
}
|
||||||
/* not reached, but compiler will complain without it */
|
/* not reached, but compiler will complain without it */
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user