Use Mouse-funktions in classes