Skip to content

Commit f3290fe

Browse files
committed
fix(input): Fix broken single click command after right mouse double click
1 parent 783bdb7 commit f3290fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3874,6 +3874,10 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
38743874
}
38753875

38763876
//-----------------------------------------------------------------------------
3877+
// TheSuperHackers @bugfix Treat the raw double click event identical to the raw button down event
3878+
// because it implicitly is a raw button down event as well. Failing to do so would mess with the
3879+
// button timings in later events on button up.
3880+
case GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK:
38773881
case GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN:
38783882
{
38793883
// There are two ways in which we can ignore this as a deselect:

0 commit comments

Comments
 (0)