[DF-1290] Refactor OpenGL view input for MacOS