boolean canBeFoldedWith ( MouseState ms ) { return ms . buttonsPressed . equals ( buttonsPressed ) && ms . wheel == wheel ; }
Finds out whether two non - null states are identical in everything but their coordinates