Skip to content

Commit

Permalink
Fix mouse in touchpad mode emitting two mouse clicks when tapping whi…
Browse files Browse the repository at this point in the history
…le in the on-screen menu or keyboard
  • Loading branch information
schellingb committed Jul 10, 2024
1 parent c931f07 commit 7515d8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dosbox_pure_osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1497,11 +1497,11 @@ struct DBP_MenuInterceptor : DBP_Interceptor
}
}

// query input states and generate input events
for (DBP_InputBind &b : intercept_binds)
// query input states and generate input events (ignore mouse on touchpad mode)
for (DBP_InputBind* b = intercept_binds + (dbp_mouse_input == 'p' ? 3 : 0), *bEnd = intercept_binds + sizeof(intercept_binds)/sizeof(*intercept_binds); b != bEnd; b++)
{
Bit16s val = input_state_cb(b.port, b.device, b.index, b.id);
if (val != b.lastval) b.Update(val);
Bit16s val = input_state_cb(b->port, b->device, b->index, b->id);
if (val != b->lastval) b->Update(val);
}

if (DBP_MenuInterceptorRefreshSystem)
Expand Down

0 comments on commit 7515d8f

Please sign in to comment.