Infrared tracking based pointer