Abstract:
An electronic device according to various embodiments includes: a display, a sensor module including a touch sensor configured to receive a touch input and generate touch data, a memory, and a processor operatively connected to the display, the sensor module, and the memory, wherein the processor is configured to: generate a first filter having a first time filter value and a first magnitude filter value, generate a second filter having a second time filter value greater than the first time filter value and a second magnitude filter value greater than the first magnitude filter value, acquire the touch data including a first point where a touch starts and a second point where the touch ends, apply the first filter based on a moving from the first point to the second point being closer to a center line that vertically bisects a keyboard, apply the second filter based on the moving being farther away from the center line, determine that a key of the keyboard corresponding to the first point has been touched based on a duration of the touch input being less than the time filter value of the filter and a distance between the first point and the second point being less than the magnitude filter value, and determine that a key of the keyboard corresponding to the second point has been touched based on the duration of the touch input being equal to or greater than the time filter value of the filter and the distance between the first point and the second point being equal to or greater than the magnitude filter value.
Abstract:
An electronic device is provided. The electronic device includes a display, a camera module configured to be positioned below the display, a memory configured to store instructions, and a processor configured to be functionally connected to the display, the camera module, and the memory, wherein the processor is configured, by executing the instructions, to cause the electronic device to identify a change in an operating state of the camera module while displaying a predetermined image in an area of the display surrounding the camera module, change a size of the area surrounding the camera module in response to identifying the change in the operating state of the camera module, and display the predetermined image in the changed area.
Abstract:
A method and apparatus of providing a mouse function in a touch device includes displaying a mouse interface which is divided into a panning area and a pointer move area. An input of a mouse gesture is received through the mouse interface, processing a panning operation of a contents screen which is displayed in a display device when the mouse gesture is inputted in the panning area, and processing a move operation of a mouse pointer which is displayed in the display device when the mouse gesture is inputted in the pointer move area. The touch device at the time of execution of the mouse mode, and generates a control event for panning the contents screen and moving the mouse pointer according to a mouse gesture which is inputted from the panning area and the pointer move area may provide a mouse function for a display device.
Abstract:
A method of controlling an alarm with a more improved alarm function and an electronic device supporting the same are provided. The method of controlling an alarm includes determining sleep start time information and alarm start time information, calculating a sleep time based on the sleep start time information and the alarm start time information, and outputting an alarm having a different characteristic according to a length of the calculated sleep time.
Abstract:
A method for operating an electronic device including a display, according to one embodiment, may comprise an operation of receiving a touch input having a point of contact on a first key from among a plurality of keys in a virtual keyboard displayed through the display. The method may comprise an operation of identifying, in response to the touch input, (a) one from among a first character and a second character on the basis of the first character represented by the first key, the second character represented by a second key adjacent to the first key from among the plurality of keys, and at least one third character displayed before the touch input is received within a text input part displayed together with the virtual keyboard. The method may comprise an operation of displaying the identified character within the text input part through the display.
Abstract:
An electronic device comprising: at least one camera; an accelerometer; a memory; and at least one processor operatively coupled to the memory, configured to: detect a movement of the electronic device by using the accelerometer; and perform an operation associated with the at least one camera based on the movement.