A new Apple patent describes the use of new Optical Angle Sensors for Folding Devices with Touch Displays  Patently Apple