Disable the right mouse button on "Clickables"

This commit is contained in:
Henrik Rydgård 2024-11-05 01:08:02 +01:00
parent 19f4b22a56
commit c250838167

View File

@ -250,7 +250,7 @@ bool Clickable::Touch(const TouchInput &input) {
}
// Ignore buttons other than the left one.
if ((input.flags & TOUCH_MOUSE) && input.id != 0) {
if ((input.flags & TOUCH_MOUSE) && (input.buttons & 1) == 0) {
return contains;
}