added middle-click functionality. No use for it yet. Considering using it for zoom/scrolling or some sort of default command based on the object selected.