Electronic device and operation method for display control based on wheel manipulation
A method of controlling a user interface in an electronic device may include: obtaining a wheel-based signal being executed by wheel manipulation; and obtaining an input signal type supported by a running application; based on the input signal type being a first input signal type, transferring the obtained wheel-based signal to the running application; and based on the input signal type being a second input signal type, changing the obtained wheel-based signal to a direction control signal and transferring same to the running application.
1 . A method for controlling a user interface in an electronic device, the method comprising:
obtaining a wheel base signal for a running application by manipulation of a wheel;
obtaining an input signal type supported in the running application;
based on the input signal type supported in the running application being a first input signal type, transferring the obtained wheel base signal to the running application; and
based on the input signal type supported in the running application being a second input signal type, changing the obtained wheel base signal into a direction control signal and transferring the direction control signal to the running application,
wherein the first input signal type includes an input signal type indicating that the running application may process the wheel base signal, and the second input signal type includes an input signal type indicating that the running application may not process the wheel base signal.
2 . The method of claim 1 , comprising: receiving a key base signal corresponding to an electrical signal generated in response to manipulation of a key input device, and transferring the received key base signal to the running application for performing control based on the key base signal.
3 . The method of claim 1 , wherein the wheel base signal includes at least one of a first wheel base signal according to counterclockwise rotation of the wheel by a manipulation or a second wheel base signal according to clockwise rotation of the wheel by the manipulation, and
wherein the direction control signal includes at least one of a first direction control signal controlling a focus movement in an upper direction, a second direction control signal controlling the focus movement in a lower direction, a third direction control signal controlling the focus movement in a left direction, or a fourth direction control signal controlling the focus movement in a right direction.
4 . The method of claim 3 , further comprising:
based on a plurality of target objects being arranged in a vertical direction,
outputting the obtained first wheel base signal as the first direction control signal; or
outputting the obtained second wheel base signal as the second direction control signal.
5 . The method of claim 4 , further comprising:
based on the plurality of target objects being arranged in the vertical direction, and a focus indicating a target object positioned at an upper end, outputting the first direction control signal as a fifth direction control signal to move the focus to indicate a target object positioned at a lower end of a left column.
6 . The method of claim 4 , further comprising:
based on the plurality of target objects being arranged in the vertical direction, and a focus indicating a target object positioned at a lower end, outputting the second direction control signal as a sixth direction control signal to move the focus to indicate the target object positioned at an upper end of a right column.
7 . The method of claim 3 , further comprising:
based on a plurality of target objects being arranged in a horizontal direction,
outputting the obtained first wheel base signal as the third direction control signal; or
outputting the obtained second wheel base signal as the fourth direction control signal.
8 . The method of claim 7 , further comprising:
based on the plurality of target objects being arranged in the horizontal direction, and a focus indicating a target object positioned at a left end, outputting the third direction control signal as a seventh direction control signal to move the focus to indicate a target object positioned at a right end of an upper row.
9 . The method of claim 7 , further comprising:
based on the plurality of target objects being arranged in the horizontal direction, and a focus indicating a target object positioned at a right end, outputting the fourth direction control signal as an eighth direction control signal to move the focus to indicate the target object positioned at a left end of a lower row.
10 . The method of claim 7 , further comprising: storing information about a type of an input device; and
transferring the direction control signal to the running application based on information about the type of the input device.
11 . An electronic device comprising:
a transceiver configured to transmit and/or receive a wheel base signal generated by manipulation of a wheel based on a specified communication scheme; and
at least one processor, comprising processing circuitry, individually and/or collectively configured to:
generate a command to perform a specific operation by the wheel base signal;
obtain the wheel base signal;
obtain an input signal type supported in a running application;
based on the input signal type supported in the running application being a first input signal type, transfer the obtained wheel base signal to the running application; and
based on the input signal type supported in the running application being a second input signal type, change the obtained wheel base signal into a direction control signal and transfer the direction control signal to the running application,
wherein the first input signal type includes an input signal type indicating that the running application may process the wheel base signal, and the second input signal type includes an input signal type indicating that the running application may not process the wheel base signal.
12 . The electronic device of claim 11 , wherein the at least one processor, individually and/or collectively, is configured to:
receive a key base signal corresponding to an electrical signal generated in response to manipulation of a key input device, and
transfer the received key base signal to the running application for performing control based on the key base signal.
13 . The electronic device of claim 11 , wherein the wheel base signal includes at least one of a first wheel base signal according to counterclockwise rotation of the wheel by a manipulation or a second wheel base signal according to clockwise rotation of the wheel by the manipulation, and
wherein the direction control signal includes at least one of a first direction control signal controlling a focus movement in an upper direction, a second direction control signal controlling the focus movement in a lower direction, a third direction control signal controlling the focus movement in a left direction, or a fourth direction control signal controlling the focus movement in a right direction.
14 . The electronic device of claim 13 , wherein the at least one processor, individually and/or collectively, is configured to:
based on a plurality of target objects being arranged in a vertical direction,
output the obtained first wheel base signal as the first direction control signal; or
output the obtained second wheel base signal as the second direction control signal.
15 . The electronic device of claim 14 , wherein the at least one processor, individually and/or collectively, is configured to:
based on the plurality of target objects being arranged in the vertical direction, and a focus indicating a target object positioned at an upper end, output the first direction control signal as a fifth direction control signal to move the focus to indicate a target object positioned at a lower end of a left column.
16 . The electronic device of claim 14 , wherein the at least one processor, individually and/or collectively, is configured to:
based on the plurality of target objects being arranged in the vertical direction, and a focus indicating a target object positioned at a lower end, output the second direction control signal as a sixth direction control signal to move the focus to indicate the target object positioned at an upper end of a right column.
17 . The electronic device of claim 13 , wherein the at least one processor, individually and/or collectively, is configured to:
based on a plurality of target objects being arranged in a horizontal direction,
output the obtained first wheel base signal as the third direction control signal; or
output the obtained second wheel base signal as the fourth direction control signal.
18 . The electronic device of claim 17 , wherein the at least one processor, individually and/or collectively, is configured to:
based on the plurality of target objects being arranged in the horizontal direction, and a focus indicating a target object positioned at a left end, output the third direction control signal as a seventh direction control signal to move the focus to indicate a target object positioned at a right end of an upper row.
19 . The electronic device of claim 17 , wherein the at least one processor, individually and/or collectively, is configured to:
based on the plurality of target objects being arranged in the horizontal direction, and a focus indicating a target object positioned at a right end, output the fourth direction control signal as an eighth direction control signal to move the focus to indicate the target object positioned at a left end of a lower row.
20 . The electronic device of claim 11 , wherein the at least one processor, individually and/or collectively, is configured to store information about a type of an input device and transfer the direction control signal to the running application.