CPC G06F 3/04886 (2013.01) [G06F 1/1618 (2013.01); G06F 1/1643 (2013.01); G06F 1/1683 (2013.01)] | 20 Claims |
1. An electronic device comprising:
a display;
at least one motion sensor configured to detect motion of the electronic device;
a coupling device coupled to an external device to be rotatable with respect to the electronic device;
a connector connected to the external device to transmit a signal to the external device or receive a signal from the external device as the electronic device is coupled to the external device; and
at least one processor operatively connected to the display, the at least one motion sensor, and the connector,
wherein the at least one processor is configured to:
obtain first motion data on motion of the electronic device through the at least one motion sensor;
obtain second motion data on motion of the external device through the connector;
determine a folding angle between the electronic device and the external device based on the first motion data and the second motion data; and
determine an input mode for setting whether to display a user interface on the display and/or whether to block an input signal received through the connector based on the determined folding angle.
|