Fixed selection

This commit is contained in:
Brian Da Silva 2022-12-29 06:45:51 +01:00
parent da3b79eb19
commit 1189beed4c

View file

@ -35,13 +35,7 @@ void IHid<ListDirection, PageDirection, Delay>::update(size_t count)
mMaxPages = (count % mMaxVisibleEntries == 0) ? count / mMaxVisibleEntries : count / mMaxVisibleEntries + 1;
if (leftTriggerDown()) {
pageBack();
}
else if (rightTriggerDown()) {
pageForward();
}
else if (leftTriggerHeld()) {
if (leftTriggerHeld()) {
if (currentTime <= mLastTime + Delay) {
return;
}