Patent attributes
According to one aspect of the disclosure an electronic device comprises a foldable housing including: a hinge structure, a first housing structure connected to the hinge structure, and including a first face and a second face opposite the first face, and a second housing structure connected to the hinge structure and including a third face and a fourth face opposite the third face, the second housing structure being configured to be rotated about the hinge structure; a flexible display extending over the first face and over the third face; at least one sensor disposed within the foldable housing, and configured to sense an angle formed between the first face and the third face; a first haptic actuator disposed within the first housing structure; a second haptic actuator disposed within the second housing structure; at least one processor disposed within the first housing structure or the second housing structure, and operatively connected to the flexible display, the at least one sensor, the first haptic actuator, and the second haptic actuator. The at least one processor may detect a folding state of the foldable housing using the at least one sensor, and independently control the first haptic actuator and the second haptic actuator based on at least part of the detected folding state.