Added cursor control cpp file.