fixed game controller by converting to ppar fn