partial support for mac trackpad and FORMATTED THE FUCKING CODE