Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fix keystroke delay postponing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareltucek committed Dec 2, 2024
1 parent 3ba9eec commit 9783278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion right/src/postponer.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static void appendEvent(postponer_event_t event)

bool PostponerCore_EventsShouldBeQueued(void)
{
return runState.eventsShouldBeQueued || EventScheduler_Vector & EventVector_NativeActionsPostponing || EventScheduler_Vector & EventVector_MacroEnginePostponing;
return runState.eventsShouldBeQueued || (EventScheduler_Vector & EventVector_NativeActionsPostponing) || (EventScheduler_Vector & EventVector_MacroEnginePostponing);
}

bool PostponerCore_IsActive(void)
Expand Down
6 changes: 1 addition & 5 deletions right/src/usb_report_updater.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,7 @@ static void updateActiveUsbReports(void)

void justPreprocessInput(void) {
// Make preprocessKeyState push new events into postponer queue.


//// As a side-effect, postpone first cycle after we switch back to regular update loop
//// Eh? but why?
//PostponerCore_PostponeNCycles(0);
EventVector_Set(EventVector_NativeActionsPostponing);

for (uint8_t slotId=0; slotId<SLOT_COUNT; slotId++) {
for (uint8_t keyId=0; keyId<MAX_KEY_COUNT_PER_MODULE; keyId++) {
Expand Down

0 comments on commit 9783278

Please sign in to comment.