I believe I've also fixed a bug here, where mouseReleased(mx, my) would always have been called, because of missing braces.