Add new sample code for OpenGL ES and input.