Input from trackpad working. Got rid of unused code