Video games for Linux do their rendering through OpenGL and their input e.g. through Simple DirectMedia Layer.