Skip to content

Commit

Permalink
Reduce the complexity of some internal methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Feb 26, 2024
1 parent ce99816 commit f753a6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions final/input/fmouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,9 @@ void FMouseX11::processEvent (const TimeValue& time)
//----------------------------------------------------------------------
void FMouseX11::setKeyState (int btn) noexcept
{
getButtonState().shift_button = bool(btn & key_shift) == key_shift);
getButtonState().meta_button = bool(btn & key_meta) == key_meta);
getButtonState().control_button = bool(btn & key_ctrl) == key_ctrl);
getButtonState().shift_button = bool((btn & key_shift) == key_shift);
getButtonState().meta_button = bool((btn & key_meta) == key_meta);
getButtonState().control_button = bool((btn & key_ctrl) == key_ctrl);
}

//----------------------------------------------------------------------
Expand Down Expand Up @@ -952,9 +952,9 @@ void FMouseSGR::processEvent (const TimeValue& time)
//----------------------------------------------------------------------
void FMouseSGR::setKeyState (int btn) noexcept
{
getButtonState().shift_button = bool(btn & key_shift) == key_shift);
getButtonState().meta_button = bool(btn & key_meta) == key_meta);
getButtonState().control_button = bool(btn & key_ctrl) == key_ctrl);
getButtonState().shift_button = bool((btn & key_shift) == key_shift);
getButtonState().meta_button = bool((btn & key_meta) == key_meta);
getButtonState().control_button = bool((btn & key_ctrl) == key_ctrl);
}

//----------------------------------------------------------------------
Expand Down

0 comments on commit f753a6b

Please sign in to comment.