Use a callback for RetroPlayer input instead of accessing a global variable