Skip to content

Commit

Permalink
RailModBase: remove check on wheel flags with extended mouse: flag is…
Browse files Browse the repository at this point in the history
… only button1,2 and down
  • Loading branch information
jonathanpoelen committed Apr 5, 2024
1 parent cdfb8b9 commit c36c5be
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/mod/internal/rail_mod_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,8 @@ void RailModBase::rdp_input_mouse(uint16_t device_flags, uint16_t x, uint16_t y)

void RailModBase::rdp_input_mouse_ex(uint16_t device_flags, uint16_t x, uint16_t y)
{
if (device_flags & (MOUSE_FLAG_WHEEL | MOUSE_FLAG_HWHEEL)) {
x = this->old_mouse_x;
y = this->old_mouse_y;
}
else {
this->old_mouse_x = x;
this->old_mouse_y = y;
}
this->old_mouse_x = x;
this->old_mouse_y = y;

this->screen.rdp_input_mouse_ex(device_flags, x, y);
}
Expand Down

0 comments on commit c36c5be

Please sign in to comment.