Changed MouseButton::operator==() to compare buttons via their ButtonIndices instead of CharCodes
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m16s
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m16s
This commit is contained in:
@@ -11,7 +11,7 @@ MouseButton::MouseButton(const char* charcode, unsigned int index) {
|
||||
}
|
||||
|
||||
bool MouseButton::operator==(const MouseButton &mb) const {
|
||||
return (mb.CharCode == this->CharCode);
|
||||
return (mb.ButtonIndex == this->ButtonIndex);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user