Based on https://github.com/googlesamples/androidtv-VisualGameController