Scott's powerglove + mouse code