Refactored the crosshair and button-hover features into a new class.