ELECTRONIC DEVICE AND SCREEN CONTROL METHOD USING INPUT DEVICE

According to various embodiments of the disclosure, an electronic device may include a communication circuit, a display, and a processor operatively connected to the communication circuit and the display. The processor according to an embodiment may obtain first location information related to the location of an input device connected for communication through the communication circuit. The processor according to an embodiment may receive, from a second electronic device connected for communication through the communication circuit, second location information related to the location of the input device obtained by the second electronic device. The processor according to an embodiment may identify the relative location of the second electronic device with respect to the electronic device, based on the obtained first location information related to the location of the input device and the received second location information related to the location of the input device. The processor according to an embodiment may configure an arrangement of the display and the second display of the second electronic device, based on the identified relative location of the second electronic device. Various other embodiments other than those disclosed in this document may be possible.