CN112698780A - Virtual rocker control method and device - Google Patents

Virtual rocker control method and device Download PDF

Info

Publication number
CN112698780A
CN112698780A CN202011600461.4A CN202011600461A CN112698780A CN 112698780 A CN112698780 A CN 112698780A CN 202011600461 A CN202011600461 A CN 202011600461A CN 112698780 A CN112698780 A CN 112698780A
Authority
CN
China
Prior art keywords
rocker
touch screen
screen
virtual
simulated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011600461.4A
Other languages
Chinese (zh)
Inventor
李启光
张雪芹
张鹤翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Gloud Technology Co ltd
Original Assignee
Guiyang Gloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guiyang Gloud Technology Co ltd filed Critical Guiyang Gloud Technology Co ltd
Priority to CN202011600461.4A priority Critical patent/CN112698780A/en
Publication of CN112698780A publication Critical patent/CN112698780A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The document discloses a virtual rocker control method and a device, and relates to the virtual rocker control technology of a mobile terminal. The virtual joystick control method provided herein is applied to a touch electronic device, and includes: detecting touch screen operation in an operation area corresponding to the virtual rocker; when the touch screen operation is detected, determining the rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation for representing the touch screen operation and the simulated rocker operation; and carrying out corresponding processing according to the rocker operation. The technical scheme of the application provides a control scheme of a virtual rocker, and various control operations of the physical rocker can be simulated through different touch screen operations in a preset operation area of a touch electronic device, so that the effect of truly simulating the physical rocker operation is achieved through the touch operation of the virtual rocker.

Description

Virtual rocker control method and device
Technical Field
The present invention relates to a virtual joystick control technology of a mobile terminal, and in particular, to a virtual joystick control method and device.
Background
At present, a common physical handle is shown in fig. 1, which includes a plurality of keys, a trigger key with levels, cross keys with 8 directions, two rockers with two-dimensional range coordinates, and the like.
Due to the disadvantage of physical handles that are not portable, virtual handles have emerged that simulate physical handles. The display interface of a common virtual handle is shown in fig. 2. And the circular control displayed on the left side of the display interface of the virtual handle is the corresponding virtual rocker control. However, the operation experience of the conventional virtual handle is not good.
Disclosure of Invention
The application provides a virtual rocker control method and device.
The application discloses a virtual rocker control method, which is applied to touch electronic equipment and comprises the following steps:
detecting touch screen operation in an operation area corresponding to the virtual rocker;
when the touch screen operation is detected, determining the rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation for representing the touch screen operation and the simulated rocker operation;
and carrying out corresponding processing according to the rocker operation.
Optionally, in the method, the detecting a touch screen operation in an operation region corresponding to the virtual joystick includes:
any one or more of a click screen, a touch screen and a sliding operation are detected in the operation area range corresponding to the virtual rocker, and the operation is used for determining whether the simulated rocker operation comprises the operation of pressing a key corresponding to the rocker and/or swinging the rocker.
Optionally, the method further includes:
and detecting any one or more of a click screen, a touch screen and a sliding operation in the operation area range corresponding to the virtual rocker, and determining whether the simulated rocker operation comprises the operation of pressing down a key corresponding to the rocker and/or swinging the rocker, and then determining that the simulated rocker operation comprises the operation of lifting up the key after pressing down the key corresponding to the rocker and/or swinging the rocker back to the initial position again after swinging the rocker.
Optionally, in the above method, the detecting any one or more of a click screen, a touch screen, and a sliding operation in an operation area range corresponding to the virtual joystick, to determine whether the simulated joystick operation includes a key press and/or a joystick swing operation corresponding to the joystick includes:
and when the combined operation of sequentially detecting the screen clicking in the operation area and touching the screen again at the same position of the screen clicking is performed, determining that the simulated rocker operation comprises the operation of pressing down the key corresponding to the rocker.
Optionally, in the above method, the detecting any one or more of a click screen, a touch screen, and a sliding operation in an operation area range corresponding to the virtual joystick, to determine whether the simulated joystick operation includes a key press and/or a joystick swing operation corresponding to the joystick includes:
after combined operation of sequentially detecting a click screen in the operation area and touching the screen again at the same position of the click screen, detecting that the operation of touching the screen is changed into sliding operation; and determining that the simulated rocker operation comprises the operation of swinging the rocker after the key corresponding to the rocker is pressed.
Optionally, in the above method, the detecting any one or more of a click screen, a touch screen, and a sliding operation in an operation area range corresponding to the virtual joystick, to determine whether the simulated joystick operation includes a key press and/or a joystick swing operation corresponding to the joystick includes:
dividing an operation area corresponding to the virtual rocker into a first partition and a second partition, wherein the first partition is a central area of the operation area corresponding to the virtual rocker, and the second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker;
when the combined operation of clicking the screen and touching the screen at the same position of the clicked screen is detected in sequence in the second partition, the detected rocker operation corresponding to the touch screen operation is determined to be the operation of pressing down the key corresponding to the rocker after the rocker swings.
Optionally, in the above method, the detecting any one or more of a click screen, a touch screen, and a sliding operation in an operation area range corresponding to the virtual joystick, to determine whether the simulated joystick operation includes a key press and/or a joystick swing operation corresponding to the joystick includes:
dividing an operation area corresponding to the virtual rocker into a first partition and a second partition, wherein the first partition is a central area of the operation area corresponding to the virtual rocker, and the second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker;
when the click screen is detected in the second partition in sequence and the touch screen combination operation at the same position of the click screen is detected, the operation change of the touch screen is detected to be sliding operation, and after the detected rocker operation corresponding to the touch screen operation is determined to be rocker swinging, the operation of swinging the rocker again after the key corresponding to the rocker is pressed down is determined.
The application also discloses a virtual rocker controlling means includes:
the detection module is used for detecting touch screen operation in an operation area corresponding to the virtual rocker;
the corresponding module is used for determining the rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation used for representing the touch screen operation and the simulated rocker operation when the touch screen operation is detected;
and the virtual rocker operation processing module is used for carrying out corresponding processing according to the rocker operation.
Optionally, in the above apparatus, the corresponding module is configured to, when a touch screen operation is detected, determine, according to a preset correspondence between a touch screen operation and a simulated rocker operation, a rocker operation corresponding to the detected touch screen operation, and includes:
any one or more of a click screen, a touch screen and a sliding operation are detected in the operation area range corresponding to the virtual rocker, and the operation is used for determining whether the simulated rocker operation comprises the operation of pressing a key corresponding to the rocker and/or swinging the rocker.
Optionally, the apparatus further comprises:
the second corresponding module is used for detecting any one or more of a click screen, a touch screen and a sliding operation in an operation area range corresponding to the virtual rocker, and is used for determining whether the simulated rocker operation comprises a key pressing operation corresponding to the rocker and/or a rocker swinging operation, and then determining that the simulated rocker operation comprises a key lifting operation after the key pressing operation corresponding to the rocker and/or a rocker swinging operation after swinging back to an initial position.
Optionally, in the above apparatus, the first corresponding module includes a first sub-module;
the first sub-module is used for determining that the simulated rocker operation comprises the operation of pressing down the key corresponding to the rocker when the detection module detects the touch screen operation in the operation area corresponding to the virtual rocker, including the combined operation of sequentially detecting the click screen and touching the screen again at the same position of the click screen. Optionally, in the above apparatus, the first corresponding module includes a second sub-module;
the second sub-module is used for detecting, at the detection module, that the touch screen operation in the operation area corresponding to the virtual rocker includes a combined operation of sequentially detecting a click screen and touching the screen again at the same position of the click screen, and determining that the simulated rocker operation includes an operation of swinging the rocker after a key corresponding to the rocker is pressed when the touch operation is changed into a sliding operation.
Optionally, in the above apparatus, the first corresponding module includes a third sub-module;
the third sub-module is used for detecting, at the detection module, that the touch screen operation in the operation area corresponding to the virtual rocker includes sequentially detecting a click screen in the second sub-area of the operation area, and determining that the detected rocker operation corresponding to the touch screen operation is a key pressing operation corresponding to the rocker after the rocker swings when the touch screen is touched at the same position of the click screen;
the first partition is a central area of an operation area corresponding to the virtual rocker, and the second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker.
Optionally, in the above apparatus, the first corresponding module includes a fourth sub-module;
the fourth sub-module is configured to detect, at the detection module, that the touch screen operation in the operation area corresponding to the virtual rocker includes sequentially detecting a click screen in the second partition of the operation area and a touch screen combination operation at the same position of the click screen, then detect that the operation of the touch screen changes into a sliding operation, and determine that the detected rocker operation corresponding to the touch screen operation is a rocker swinging operation, and then swing the rocker again after a key corresponding to the rocker is pressed.
The application also discloses a virtual rocker controlling means includes:
a processor;
and a memory storing processor-executable instructions;
wherein the processor is configured to:
instructions to implement the virtual rocker control method described above are executed.
The present application also discloses a computer-readable storage medium having stored thereon a computer program which, when executed, implements the steps of the virtual rocker control method described above.
The technical scheme of the application provides a control scheme of a virtual rocker, and various control operations of the physical rocker can be simulated through different touch screen operations in a preset operation area of a touch electronic device, so that the effect of truly simulating the physical rocker operation is achieved through the touch operation of the virtual rocker.
Drawings
Fig. 1 is a schematic view of a game physical pad common in the related art.
Fig. 2 is a schematic view of an operation interface of a game virtual handle common in the related art.
Fig. 3 is a schematic view of an operation interface of a game virtual handle in the related art.
FIG. 4 is a flow chart illustrating a method for virtual rocker control according to an exemplary embodiment of the present application.
FIG. 5 is a diagram illustrating a correspondence between two-dimensional operating regions of a virtual joystick and a three-dimensional operating space of a physical joystick according to an exemplary embodiment of the present application.
FIG. 6 is a block diagram illustrating a virtual rocker control device according to an exemplary embodiment of the present application.
FIG. 7 is a block diagram illustrating a virtual rocker control device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be further described in detail with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments of the present application may be arbitrarily combined with each other without conflict.
In the related art, as the function of the physical handle is continuously updated, the function of the rocker device in the physical handle is also updated. In addition to being able to swing within a certain range of values in a two-dimensional coordinate system, a rocker device may also have a key function, i.e. the rocker may be pressed. For example, the left rocker in the xbox handle has a key LS function, i.e., the left rocker is pressed to trigger the key LS function. The right rocker in the xbox handle has a key RS function, namely the key RS function is triggered when the right rocker is pressed.
The applicant has found that the current modes of implementing the rocker operation by the virtual handle are mainly divided into two types. The rocker device in the first type of virtual handle does not have a key function, such as the virtual handle shown in fig. 2. Another type of virtual handle separates the swing control function and the key function of the rocker, such as the virtual handle shown in fig. 3. As can be seen from FIG. 3, the virtual handle includes a left rocker 31a and a right rocker 32a which are controlled swingably, and a virtual key 31b corresponding to the left rocker 31a and a virtual key 32b corresponding to the right rocker 32 a. Thus, when the rocker needs to be swung and the corresponding key of the rocker is pressed at the same time, two fingers of the user are required to participate simultaneously. For example, when the left joystick is swung and the key corresponding to the joystick is pressed, the operation of controlling the swing direction of the joystick by a left thumb and placing a right thumb in a left thumb key touch area is required, which is very different from the operation intuition of the interactive device.
Based on the above problems, the present disclosure provides a method and an apparatus for controlling a virtual joystick, which can simulate various control operations of a physical joystick through different touch screen operations in a preset operation region of a touch electronic device, including simulating a button press corresponding to the physical joystick, and simulating an operation of swinging the joystick while the button press corresponding to the physical joystick is pressed.
FIG. 4 is a flow chart illustrating a method for virtual rocker control in accordance with an exemplary embodiment. The method can be applied to a touch electronic device, and as shown in fig. 4, the method includes the following operation steps:
step S401, detecting touch screen operation in an operation area corresponding to a virtual rocker;
and the touch screen operation detected in the operation area corresponding to the virtual rocker can be used for simulating the operation of the rocker.
Step S402, when a touch screen operation is detected, determining a rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation for representing the touch screen operation and the simulated rocker operation;
step S403, perform corresponding processing according to the rocker operation.
The preset correspondence relationship used for representing the touch screen operation and the simulated joystick operation in step S402 may be used to represent the correspondence relationship between different touch screen operations and the simulated joystick operations thereof. The touch screen operations corresponding to different rocker operations are different, and one rocker operation can correspond to one or more combined operations of the touch screen operations. For example, any one or more of a click screen, a touch screen and a sliding operation are detected in the operation area range corresponding to the virtual rocker, and whether the simulated rocker operation comprises a key press corresponding to the rocker and/or a rocker swing and touch separation operation can be determined.
Herein, the operation of clicking the screen refers to an operation of quickly lifting up after the finger touches the screen, that is, an operation of touch separation in a short time after the finger touches the screen. For example, after receiving a contact event through the touch down interface, the touch up interface receives a separation event in a short time, and thus it can be confirmed that the operation of clicking the screen is detected. .
The operation of touching the screen means that the finger does not lift up after touching the screen, i.e. the operation of continuously touching the screen for at least a certain time. For example, after receiving a contact event through the touch down interface, the touch up interface does not receive a separation event in a short time, and thus it can be confirmed that the operation of touching the screen is detected.
The slide operation is an operation of changing the connection of the touch position after the finger touches the screen. For example, when a touch down interface receives a touch event, a move interface receives an event that the touch position changes continuously, and thus it can be confirmed that a slide operation is detected.
In this embodiment, the correspondence between the touch screen operation and the simulated joystick operation at least includes the following four types:
firstly, the combined operation of clicking the screen and touching the screen again at the same position of the clicked screen corresponds to the operation of pressing down the key corresponding to the control rocker; herein, the same position of the click screen refers to a coordinate range including the coordinates of the contact point when the screen is clicked.
Secondly, the combined operation of clicking the screen and touching the screen again at the same position of the clicked screen is changed into sliding operation (namely, sliding is started from the coordinate position of the touched screen as an initial position), and the sliding operation corresponds to the combined operation of controlling the rocking bar to swing after the key corresponding to the rocking bar is pressed;
thirdly, clicking the screen in a second partition of the operation area corresponding to the virtual rocker, and performing combined operation of touching the screen at the same position of the clicked screen, wherein the combined operation corresponds to the combined operation of pressing down the key corresponding to the rocker after controlling the rocker to swing;
and fourthly, clicking the screen in a second partition of the operation area corresponding to the virtual rocker, and performing combined operation of touching the screen at the same position of the clicked screen, wherein the operation of touching the screen is changed into sliding operation, and the sliding operation corresponds to the combined operation of controlling the rocker to swing the rocker again after a key corresponding to the rocker is pressed.
In the third and fourth corresponding relations, the operation area corresponding to the virtual rocker is divided into a first partition and a second partition. The first partition is the central region of the operation region corresponding to the virtual rocker, and can be considered as the original position of the rocker. The second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker, and can be regarded as an area range in which the rocker can swing. The joystick operations simulated by the touch screen operations detected in different partition ranges are different. In the first and second corresponding relationships, the operation area corresponding to the virtual joystick may be wholly regarded as a detected area of the touch screen operation, or the operation area corresponding to the virtual joystick may be divided into a first partition and a second partition. When the whole operation area corresponding to the virtual rocker is regarded as the detected area of the touch screen operation, the first corresponding relation and the second corresponding relation are applicable to the whole operation area. And when the operation area is divided into a first partition and a second partition, the first corresponding relation needs to be limited, and the combined operation of clicking the screen in the first partition and touching the screen again at the same position of the clicked screen corresponds to the operation of pressing down the key corresponding to the control rocker. The second correspondence relationship needs to be defined, namely, a combined operation of clicking the screen in the first partition and touching the screen again at the same position of the clicked screen, and then changing the operation of touching the screen into a sliding operation of moving from the first partition to the second partition (that is, a sliding track at least comprises a coordinate change of moving from the first partition to the second partition, and when the sliding track slides out of the second partition, a state is maintained), which corresponds to a combined operation of controlling the rocker to swing after a key corresponding to the control rocker is pressed.
For example, for the first corresponding relationship, in step S401, when the screen is clicked in the operation area and the operation of clicking the touch screen at the same position of the screen is detected within the set time duration, in step S403, corresponding processing may be performed according to the operation that the key corresponding to the rocker in the current application is pressed. The set time length is used for judging whether two or more touch screen operations are combined operations, namely, when the time interval between two or more touch screen operations does not exceed the set time length, the two touch screen operations can be determined to be the combined operations. The value of the set duration may be greater than or equal to 0. For example, if two or more preset touch screen operations are detected within a set time period, all the detected operations are considered as combined operations. If the time interval between different touch screen operations exceeds the set time length when two or more preset touch screen operations are detected, the detected different operations are considered to be independent operations respectively, and no combination relation exists between the operations and other operations.
For the second corresponding relationship, in step S401, after detecting that the screen is clicked in the operation area and detecting the operation of clicking the touch screen at the same position of the screen within the set duration, if it is detected that the coordinates of the touch point of the current touch screen continuously change, that is, the operation of the touch screen changes into a sliding operation, in step S403, corresponding processing is performed according to the operation of swinging the rocker after the key corresponding to the rocker in the current application is pressed. Wherein the swing direction of the rocker can be determined according to the sliding direction of the sliding operation.
For the third correspondence, in step S401, when the click screen is detected in the second partition of the operation area and the combined operation of the touch screens at the same position of the click screen is detected within the set duration, in step S403, corresponding processing is performed according to the operation of pressing down the key corresponding to the rocker after the rocker corresponding to the rocker in the current application swings. The ray direction from the center point coordinate of the first partition to the touch point coordinate of the touch screen in the second partition can be simulated as the swinging direction of the rocker before the key corresponding to the rocker is pressed.
For the fourth correspondence, in step S401, after detecting the click screen in the second partition of the operation area and detecting the combined operation of the touch screens at the same position of the click screen within the set time period, if it is detected that the coordinates of the touch point of the current touch screen continuously change, that is, the operation change of the touch screen is a sliding operation, in step S403, corresponding processing is performed according to the operation of swinging the rocker again after the rocker swings in the current application and the key corresponding to the rocker is pressed. The ray direction from the center point coordinate of the first partition to the touch point coordinate of the touch screen in the second partition can be simulated as the swinging direction of the rocker before the key corresponding to the rocker is pressed. When the operation of the touch screen is changed into sliding operation, the swinging direction of the rocker can be simulated according to the sliding direction after the key corresponding to the rocker is pressed.
The correspondence may be set by default or autonomously by the user. For example, the correspondence stored in the initial configuration information of the virtual rocker may be considered to be a default setting. For another example, the user may modify the corresponding relationship in the configuration information of the virtual joystick according to a requirement of the user (for example, an operation habit of the user), and the modified corresponding relationship is set by the user. In addition, the correspondence relationship may further include an extension item. In this way, when there is an update or addition operation for the physical rocker operation, a touch screen operation corresponding to the physical rocker operation for simulating the update or addition may be added in the extension item of the corresponding relationship.
The position information of the operation area corresponding to the virtual joystick also belongs to the configuration information of the virtual joystick, so the operation area corresponding to the virtual joystick can also be set by default or set by a user.
As can be seen from the above description, in the present embodiment, various control operations of the physical joystick can be simulated through different touch screen operations in the operation region corresponding to the virtual joystick of the touch electronic device, including simulating the pressing of a key corresponding to the physical joystick, and simulating the operation of swinging the joystick while the key corresponding to the physical joystick is pressed. Therefore, according to the control method of the virtual rocker provided by the embodiment, the user only needs to perform one-hand touch screen operation in the operation area to trigger the pressing of the key corresponding to the rocker, and the pressing of the key corresponding to the rocker and the control of swinging the rocker. The experience of the user using the virtual rocker is improved, and the simulation effect of the virtual rocker is enhanced. Optionally, in this embodiment, the operation area corresponding to the virtual joystick is further divided into different partitions for detecting different touch screen operations, so as to simulate different joystick operations. Because the position relationship of the two partitions is the adjacent relationship between the inside and the outside, different touch screen operations in the two partitions can be completed by a user within a set time length conveniently, that is, the user can initiate the combined operation of more than two touch screen operations. So that the combined operation of the rocker can be simulated. Namely, the combined operation of pressing the key corresponding to the rocker and swinging the rocker is simulated. Therefore, all operation control of the physical rocker is simulated, and the experience of the user on the virtual rocker is further enhanced.
The embodiment also provides a virtual rocker control method, which adds the control operation of restoring the rocker on the basis of the operation. According to the method of the embodiment, any one or more of the click screen, the touch screen and the sliding operation is/are detected in the operation area range corresponding to the virtual rocker, and the operation of touch separation is detected after the simulated rocker operation is determined to include the operation of pressing down the key corresponding to the rocker and/or swinging the rocker, and then the simulated rocker operation is determined to include the operation of lifting up the key after pressing down the key corresponding to the rocker and/or swinging the rocker back to the initial position again.
For example, in the above embodiment, according to the first corresponding relationship, after the operation in step S403 is performed, a touch-and-separate operation is detected, that is, it is detected that the operation of the touch screen detected in step S401 is changed to touch-and-separate, and it is determined that the simulated operation of the joystick is the operation of lifting the key after the key corresponding to the joystick is pressed. That is, the key corresponding to the rocker is restored to the key-up state.
According to the second corresponding relationship, after the operation of step S403 is performed, a touch-and-separate operation is detected, that is, it is detected that the detected sliding operation in step S401 is changed into touch-and-separate operation, it is determined that the simulated operation of the rocker is an operation in which the key is lifted after the key corresponding to the rocker is pressed, and the rocker swings back to the original position. That is, the key corresponding to the stick is restored to the state in which the key is lifted, and the stick is restored to the original position before the stick swings.
According to the third corresponding relationship, after the operation of step S403 is executed, a touch-and-separate operation is detected, that is, it is detected that the operation of the touch screen in the second partition, which has been detected in step S401, is changed into touch-and-separate, and it is determined that the simulated operation of the joystick is the operation of lifting the key after the key corresponding to the joystick is pressed. That is, the joystick is restored to the original position before the joystick is swung, and the key corresponding to the joystick is restored to the key-up state.
According to the fourth corresponding relationship, after the operation of step S403 is executed, a touch separation operation is detected, that is, it is detected that the sliding operation detected in step S401 is changed into touch separation, it is determined that the simulated operation of the joystick is an operation in which the key is lifted after the key corresponding to the joystick is pressed, and the joystick swings back to the original position. That is, the joystick is restored to the original position before the joystick is swung, and the key corresponding to the joystick is restored to the key-up state.
In this embodiment, control information related to controlling the operation of the joystick may be required in consideration of the operation of the joystick simulated by the touch screen operation. For example, the operation of the rocker swing involves control information such as direction, amplitude, speed, etc. of the rocker swing. Therefore, when the touch screen operation for simulating the rocker operation includes sliding, the control information of the simulated rocker operation can be determined according to the detected sliding operation information, so that the simulation effect of the virtual rocker is increased.
Specifically, the slide operation information includes at least any one of:
the sliding direction of the sliding, the distance of the sliding track of the sliding deviating from the center position of the operation area corresponding to the virtual rocker, the sliding speed of the sliding and the touch pressure of the sliding.
The control information of the rocker operation at least comprises any one of the following information:
the swing direction of the rocker is controlled, the swing amplitude of the rocker is controlled, and the swing speed of the rocker is controlled.
Based on the above information, in the method provided in this embodiment, when the touch screen operation detected in the operation region corresponding to the virtual joystick includes a sliding operation, a process of determining control information of the joystick operation corresponding to the touch screen operation according to the sliding operation information may refer to at least any one of the following manners.
The direction of the swing of the control rocker can be determined according to the sliding direction. The manner of determining the sliding direction may include various manners, which is not limited in this embodiment. For example, it may be determined whether the sliding direction of the entire sliding trajectory belongs to the clockwise direction or the counterclockwise direction according to the direction of any one or more coordinate points in the sliding trajectory with respect to the start coordinate point of the sliding trajectory. So that the direction of the rocking motion of the rocking lever can be determined according to the direction of the sliding motion. Additionally, the joystick operation simulated by the virtual joystick may be forward or reverse. That is, the sliding direction and the simulated rocking direction of the rocking bar can be the same direction or opposite directions.
The swing amplitude of the control rocker can be determined according to the distance of the sliding track deviating from the center position of the operation area corresponding to the virtual rocker. The manner of determining the distance that the sliding track deviates from the center position of the operation area corresponding to the virtual joystick may include various manners, which is not limited in this embodiment. For example, a touch point farthest from the center position of the operation area corresponding to the virtual stick (i.e., the center point of the operation area) may be searched from the sliding track of the slide. The distance between the touch point and the center position of the operation region corresponding to the virtual stick may be determined as the distance that the sliding trajectory of the sliding deviates from the center position of the operation region corresponding to the virtual stick. The average distance between all touch points in the sliding track of the sliding motion and the center position of the operation area corresponding to the virtual rocker can also be determined as the distance that the sliding track of the sliding motion deviates from the center position of the operation area corresponding to the virtual rocker. After the sliding track deviates from the distance of the central position of the operating area corresponding to the virtual rocker, the determined distance can be converted into the swing amplitude when the rocker is controlled to swing, namely, the distance of the uppermost end of the rocker deviating from the central point of the chassis of the rocker when the rocker is controlled to swing. And the swing amplitude of the swing of the rocker obtained by conversion and the distance of the determined sliding track deviating from the center position of the operation area corresponding to the virtual rocker are scaled according to a set proportion.
The speed of the rocking of the control rocker can be determined according to the sliding speed of the sliding. The manner of determining the sliding speed may include various manners, which is not limited in this embodiment. For example, the sliding speed of the entire sliding trajectory may be determined according to the average speed of the coordinate change of the touch point during the sliding. So that the speed at which the rocker swings can be determined from the determined speed of sliding. The rocker swing can also be determined as variable speed swing according to the dynamic change of the sliding speed. Namely, the swing speed of the swing rod is dynamically controlled along with the change of the sliding speed value. The swing speed at which the rocker swings may be positively correlated with the determined slip speed.
The speed of the rocking bar swing can be determined according to the sliding touch pressure. The manner of determining the sliding touch pressure may include various manners, which is not limited in this embodiment. For example, the touch pressure of the entire sliding trajectory may be determined according to the average touch pressure of all touch points during the sliding process. So that the speed at which the stick swings can be determined according to the determined touch pressure of the slide. The sliding touch pressure can be compared with a set threshold, and when the sliding touch pressure is equal to or greater than the set threshold, the swinging speed of the swinging of the rocker is controlled to be the speed corresponding to the set threshold. The rocker swing can also be determined as a variable speed swing according to the dynamic change of the sliding touch pressure. I.e., the swing speed at which the rocker swings is dynamically controlled in accordance with the change in the value of the sliding touch pressure. The swing speed of the rocker swing may be positively correlated to the determined touch pressure of the swipe.
Therefore, in the embodiment, the sliding touch screen is used for operating and simulating the swinging operation of the rocker, wherein control information such as the swinging direction, amplitude, speed and the like of the rocker can be simulated according to the sliding direction, the distance of the sliding track deviating from the center position of the operating area corresponding to the virtual rocker, the sliding speed and the sliding touch pressure. Therefore, the control difference of rocker operation simulated by different touch screen operations is enhanced, and the simulation effect of the virtual rocker is greatly enhanced.
In addition, when the virtual rocker control is realized according to the method, the control information of the rocker operation corresponding to the touch screen operation can be determined according to the touch screen operation information. When corresponding processing is carried out according to the operation of the rocker: the corresponding processing of the rocker operation can be carried out according to the control information. For example, when the operations of clicking the screen in the second partition of the operation area corresponding to the virtual rocker and clicking the touch screen at the same position of the screen are detected, it is simulated that the key corresponding to the rocker is pressed after the rocker swings. The swing direction of the rocker can be determined before the key corresponding to the rocker is pressed according to the position information of the touch screen operation and the center position information of the operation area. For example, the direction for determining the swing of the rocker may be a connecting line direction of the coordinate position of the center point of the first partition and the coordinate position of the touch screen operation. The speed at which the rocker swings may be associated with the touch pressure of the touch screen operation. For example, the speed of rocker swing may be positively or inversely related to the touch pressure of a press.
FIG. 5 is a diagram illustrating a correspondence between two-dimensional operating regions of a virtual joystick and a three-dimensional operating space of a physical joystick according to an exemplary embodiment. As can be seen from the figure, the operation region corresponding to the virtual joystick provided in this embodiment includes a T region and an R region, and a central point of the T region and a central point of the R region are the same point. The T zone is an operation zone mapped by the top end of the joystick, and may be considered as the first zone in the operation zone corresponding to the above-mentioned virtual joystick. The R zone is a planar operation zone mapped by the space range in which the lever handle of the rocker can swing, i.e. the effective swing range of the virtual rocker, and can be regarded as the second zone in the operation zone corresponding to the virtual rocker.
The control process of the virtual rocker comprises the following operation steps:
detecting touch screen operation in the T area and the R area;
when the operation of clicking the screen and the operation of touching the screen at the same position of the screen are detected in the T zone, the rocker operation simulated by the operation can be determined to be the operation of pressing the key corresponding to the rocker according to the preset corresponding relation for representing the touch screen operation and the simulated rocker operation. The graphical change effect can be displayed in the T area or on the periphery of the T area on the UI interface, and the graphical change effect indicates that the key corresponding to the rocker is pressed. After that, if it is detected that the operation of the touch screen has changed, for example, a touch-separation operation is detected. The touch separation operation-simulated rocker operation can be determined to be the operation of lifting the key after the key corresponding to the rocker is pressed according to the preset corresponding relation for representing the touch screen operation and the simulated rocker operation. The graphical change effect can be displayed in the T area or on the periphery of the T area on the UI interface, and the graphical change effect indicates that the key corresponding to the rocker is lifted after being pressed.
When a click screen and a touch screen at the same position of the click screen are detected in the T area, and then the continuous change of the coordinates of the touch point of the touch screen operation is detected, namely the sliding operation moving from the T area to the R area occurs, if the time interval of the touch screen operations is within the set time length, the combined operation of the click screen, the touch screen at the same position of the click screen and the sliding operation with the coordinate position of the touch screen as the starting position is considered to be detected in the operation area corresponding to the virtual rocker. According to the preset corresponding relation used for representing the touch screen operation and the simulated rocker operation, the rocker operation simulated by the combined operation can be determined to be the operation of swinging the rocker after the key corresponding to the rocker is pressed. The method comprises the following steps that a graphical change effect can be displayed in or on the periphery of a T area on a UI (user interface), a rocker key is pressed, the changed graph of the T area moves along with the movement of the sliding position of a finger, and the graphical periphery of the T area does not exceed the outer circle range of an R area. The swing degree of the rocker can be simulated according to the degree of the deviation of the T zone from the central point. In addition, when the movement track of the sliding operation shows that the area returns from the R area to the T area, the swinging operation of the rocker is cleared, and only the pressing operation of the rocker is simulated. It should be noted that, if it is detected that the sliding operation is changed, for example, a touch separation operation is detected in the R region, and it indicates that the trajectory endpoint of the sliding operation belongs to the range of the R region, it may be determined that the rocker operation simulated by the touch separation operation is an operation in which the key corresponding to the rocker is pressed and the key is lifted, and the rocker swings back to the original position, according to a preset corresponding relationship for representing the touch screen operation and the simulated rocker operation. If the touch separation operation is detected in the T area and the track endpoint of the sliding operation belongs to the range of the T area, the rocker operation simulated by the touch separation operation can be determined to be the operation of lifting the key after the key corresponding to the rocker is pressed according to the preset corresponding relation for representing the touch screen operation and the simulated rocker operation.
And when the combined operation of the touch screen of the click screen at the same position of the click screen is detected in the R area. According to the preset corresponding relation between the touch screen operation and the simulated rocker operation, the rocker operation simulated by the combined operation can be determined to be the operation of pressing down the key corresponding to the rocker after the rocker swings. Wherein, the graph which can be displayed as the T area on the UI interface moves rapidly to the position of click pressing, and the graph change effect is generated in or at the periphery of the T area. If the operation of the touch screen is detected to be changed, for example, the touch separation operation is detected in the R region, it can be determined that the rocker operation simulated by the touch separation operation is the operation that the rocker swings back to the original position and the key corresponding to the rocker is lifted up after the key is pressed according to a preset corresponding relationship for representing the touch screen operation and the simulated rocker operation.
When a combined operation of detecting a click screen and a touch screen at the same position of the click screen in the R region is performed, the coordinates of a touch point at which the touch screen operation is detected are continuously changed, that is, when a sliding operation moving in the R region occurs, it can be considered that the combined operation is detected in an operation region corresponding to the virtual joystick. According to the preset corresponding relation between the touch screen operation and the simulated rocker operation, the rocker operation simulated by the combined operation can be determined to be the operation of pressing a key corresponding to the rocker after the rocker swings and then swinging the rocker. The graph which can be displayed as the T area on the UI interface rapidly moves to the click-pressed position, the graph change effect is generated in or on the periphery of the T area, and then the graph moves along with the finger touch position, but the periphery of the graph of the T area does not exceed the outer circle range of the R area. The swing degree of the rocker can be simulated according to the degree of the deviation of the T zone from the central point. If the operation of the touch screen is detected to be changed, for example, the touch separation operation is detected in the R region, it can be determined that the rocker operation simulated by the touch separation operation is the operation that the rocker swings back to the original position and the key corresponding to the rocker is lifted up after the key is pressed according to a preset corresponding relationship for representing the touch screen operation and the simulated rocker operation.
It should be noted that, in practical applications, the same game interface may include a plurality of virtual joysticks, and at this time, the plurality of virtual joysticks may be controlled simultaneously, and the control operations of different virtual joysticks are independent and do not affect each other. For example, two virtual joysticks are included in one game interface, and the operating areas corresponding to the two virtual joysticks do not have an intersection. At this time, the user may initiate the control operation of the virtual joystick in any of the manners described above in the operation region corresponding to any of the virtual joysticks. The user can also simultaneously initiate the control operation of different virtual rockers in the operation areas corresponding to the two virtual rockers.
The present embodiment provides a virtual joystick control device, as shown in fig. 6, the device at least includes a detection module 61, a corresponding module 62 and a virtual joystick operation processing module 63.
The detection module 61 is configured to detect a touch screen operation in an operation area corresponding to the virtual joystick;
the corresponding module 62 is configured to, when a touch screen operation is detected, determine a rocker operation corresponding to the detected touch screen operation according to a preset corresponding relationship for representing the touch screen operation and the simulated rocker operation;
and a virtual rocker operation processing module 63 configured to perform corresponding processing according to the rocker operation determined by the corresponding module.
In this embodiment, the process of determining, by the corresponding module 62, a joystick operation corresponding to a detected touch screen operation includes:
any one or more of a screen clicking operation, a touch screen operation and a sliding operation are detected in the operation area range corresponding to the virtual rocker, and the operation area range is used for determining whether the simulated rocker operation comprises the operation of pressing a key corresponding to the rocker and/or swinging the rocker.
The present embodiment further provides a virtual joystick control device, wherein a second corresponding module is added to the device architecture. When any one or more of a click screen, a touch screen and a sliding operation is detected in the operation area range corresponding to the virtual rocker, whether the simulated rocker operation comprises the operation of pressing down a key corresponding to the rocker and/or swinging the rocker is determined, and if the operation of touch separation is detected, the second corresponding module determines that the simulated rocker operation comprises the operation of lifting up the key after pressing down the key corresponding to the rocker and/or swinging the rocker back to the initial position again. At this time, the virtual joystick operation processing module 63 may perform corresponding processing according to the joystick operation determined by the second corresponding module. It can be seen that the operation of the rocker determined in the second corresponding module is mainly a reset operation, that is, after the operation of controlling the pressing of the key corresponding to the rocker and/or the swinging of the rocker, if a touch separation is detected, which is equivalent to the user finishing the current touch screen operation, the rocker needs to be restored to the initial state, that is, the state of pressing the key corresponding to the rocker is restored to the state of lifting the key, and the state of swinging the rocker is restored to the state of returning the rocker to the original position.
According to an actual application scenario, the first corresponding module may include a plurality of sub-modules.
For example, the first corresponding module may include a first sub-module. The first sub-module determines the detected combination operation of clicking the screen and touching the screen again at the same position of the clicked screen as the operation of simulating the pressing of the key corresponding to the rocker.
The first counterpart module may include a second sub-module. And the second sub-module determines the operation of simulating swinging of the rocker after the key corresponding to the rocker is pressed when the combined operation of detecting the screen clicking and touching the screen again at the same position of the screen clicking and the detected touch operation is changed into sliding operation.
The first counterpart module may include a third sub-module. And the third sub-module determines the combined operation of sequentially detecting the click screen in the second partition of the operation area corresponding to the virtual rocker and touching the screen at the same position of the click screen as the operation of simulating the pressing of the key corresponding to the rocker after the rocker swings.
The first counterpart module may include a fourth sub-module. The fourth sub-module detects that the screen is clicked in sequence in the second partition of the operation area corresponding to the virtual rocker, and the touch screen at the same position of the screen is combined, then the operation of detecting the touch screen is changed into sliding operation, and the sliding operation is determined as the operation of swinging the rocker again after the key corresponding to the rocker is pressed after the rocker is simulated to swing.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 7 is a block diagram illustrating an apparatus 700 for virtual rocker control in accordance with an exemplary embodiment. Referring to fig. 7, the apparatus 700 includes a processor 701, and the number of the processors may be set to one or more as needed. The apparatus 700 also includes a memory 702 for storing instructions, such as an application program, that are executable by the processor 701. The number of the memories can be set to one or more according to needs. Which may store one or more application programs. The processor 701 is configured to execute instructions to perform the virtual rocker control method described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 702 comprising instructions, executable by the processor 701 of the apparatus 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a virtual joystick control method, comprising:
detecting touch screen operation in an operation area corresponding to the virtual rocker;
when the touch screen operation is detected, determining the rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation for representing the touch screen operation and the simulated rocker operation;
and carrying out corresponding processing according to the rocker operation.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, including, but not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer, and the like. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.

Claims (16)

1. A virtual rocker control method is applied to touch electronic equipment and is characterized by comprising the following steps:
detecting touch screen operation in an operation area corresponding to the virtual rocker;
when the touch screen operation is detected, determining the rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation for representing the touch screen operation and the simulated rocker operation;
and carrying out corresponding processing according to the rocker operation.
2. The method according to claim 1, wherein the detecting a touch screen operation in an operation area corresponding to the virtual joystick comprises:
any one or more of a click screen, a touch screen and a sliding operation are detected in the operation area range corresponding to the virtual rocker, and the operation is used for determining whether the simulated rocker operation comprises the operation of pressing a key corresponding to the rocker and/or swinging the rocker.
3. The method of claim 2, further comprising:
and detecting any one or more of a click screen, a touch screen and a sliding operation in the operation area range corresponding to the virtual rocker, and determining whether the simulated rocker operation comprises the operation of pressing down a key corresponding to the rocker and/or swinging the rocker, and then determining that the simulated rocker operation comprises the operation of lifting up the key after pressing down the key corresponding to the rocker and/or swinging the rocker back to the initial position again after swinging the rocker.
4. The method according to claim 2 or 3, wherein the detecting of any one or more of a click screen, a touch screen and a sliding operation within the operation area corresponding to the virtual joystick is used for determining whether the simulated joystick operation comprises a key pressing operation and/or a joystick swinging operation corresponding to the joystick, and comprises the following steps:
and when the combined operation of sequentially detecting the screen clicking in the operation area and touching the screen again at the same position of the screen clicking is performed, determining that the simulated rocker operation comprises the operation of pressing down the key corresponding to the rocker.
5. The method according to claim 2 or 3, wherein the detecting of any one or more of a click screen, a touch screen and a sliding operation within the operation area corresponding to the virtual joystick is used for determining whether the simulated joystick operation comprises a key pressing operation and/or a joystick swinging operation corresponding to the joystick, and comprises the following steps:
and after the combined operation of sequentially detecting the screen clicking in the operation area and touching the screen again at the same position of the screen clicking, detecting that the operation change of the touch screen is sliding operation, and determining that the simulated rocker operation comprises the operation of swinging the rocker after the key corresponding to the rocker is pressed down.
6. The method according to claim 2 or 3, wherein the detecting of any one or more of a click screen, a touch screen and a sliding operation within the operation area corresponding to the virtual joystick is used for determining whether the simulated joystick operation comprises a key pressing operation and/or a joystick swinging operation corresponding to the joystick, and comprises the following steps:
dividing an operation area corresponding to the virtual rocker into a first partition and a second partition, wherein the first partition is a central area of the operation area corresponding to the virtual rocker, and the second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker;
when the combined operation of clicking the screen and touching the screen at the same position of the clicked screen is detected in sequence in the second partition, the detected rocker operation corresponding to the touch screen operation is determined to be the operation of pressing down the key corresponding to the rocker after the rocker swings.
7. The method according to claim 2 or 3, wherein the detecting any one or more of a click screen, a touch screen and a sliding operation within the operation area corresponding to the virtual joystick for determining whether the simulated joystick operation comprises a key pressing operation and/or a joystick swinging operation corresponding to the joystick comprises:
dividing an operation area corresponding to the virtual rocker into a first partition and a second partition, wherein the first partition is a central area of the operation area corresponding to the virtual rocker, and the second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker;
when the click screen is detected in the second partition in sequence and the touch screen combination operation at the same position of the click screen is detected, the operation change of the touch screen is detected to be sliding operation, and after the detected rocker operation corresponding to the touch screen operation is determined to be rocker swinging, the operation of swinging the rocker again after the key corresponding to the rocker is pressed down is determined.
8. A virtual rocker control device, the device comprising:
the detection module is used for detecting touch screen operation in an operation area corresponding to the virtual rocker;
the touch screen control device comprises a first corresponding module, a second corresponding module and a control module, wherein the first corresponding module is used for determining the rocker operation corresponding to the detected touch screen operation according to a preset corresponding relation used for representing the touch screen operation and the simulated rocker operation when the touch screen operation is detected;
and the virtual rocker operation processing module is used for carrying out corresponding processing according to the rocker operation.
9. The apparatus according to claim 8, wherein the corresponding module is configured to, when a touch screen operation is detected, determine a rocker operation corresponding to the detected touch screen operation according to a preset corresponding relationship between a representation of the touch screen operation and a simulated rocker operation, and includes:
any one or more of a click screen, a touch screen and a sliding operation are detected in the operation area range corresponding to the virtual rocker, and the operation is used for determining whether the simulated rocker operation comprises the operation of pressing a key corresponding to the rocker and/or swinging the rocker.
10. The apparatus of claim 9, further comprising:
the second corresponding module is used for detecting any one or more of a click screen, a touch screen and a sliding operation in an operation area range corresponding to the virtual rocker, and is used for determining whether the simulated rocker operation comprises a key pressing operation corresponding to the rocker and/or a rocker swinging operation, and then determining that the simulated rocker operation comprises a key lifting operation after the key pressing operation corresponding to the rocker and/or a rocker swinging operation after swinging back to an initial position.
11. The apparatus of claim 9 or 10, wherein the first counterpart module comprises a first sub-module;
the first sub-module is used for determining that the simulated rocker operation comprises the operation of pressing down the key corresponding to the rocker when the detection module detects the touch screen operation in the operation area corresponding to the virtual rocker, including the combined operation of sequentially detecting the click screen and touching the screen again at the same position of the click screen.
12. The apparatus of claim 9 or 10, wherein the first corresponding module comprises a second sub-module;
the second sub-module is used for detecting, at the detection module, that the touch screen operation in the operation area corresponding to the virtual rocker includes a combined operation of sequentially detecting a click screen and touching the screen again at the same position of the click screen, and determining that the simulated rocker operation includes an operation of swinging the rocker after a key corresponding to the rocker is pressed when the touch operation is changed into a sliding operation.
13. The apparatus of claim 9 or 10, wherein the first corresponding module comprises a third sub-module;
the third sub-module is used for detecting, at the detection module, that the touch screen operation in the operation area corresponding to the virtual rocker includes sequentially detecting a click screen in the second sub-area of the operation area, and determining that the detected rocker operation corresponding to the touch screen operation is a key pressing operation corresponding to the rocker after the rocker swings when the touch screen is touched at the same position of the click screen;
the first partition is a central area of an operation area corresponding to the virtual rocker, and the second partition is an edge area except the first partition in the operation area corresponding to the virtual rocker.
14. The apparatus of claim 9 or 10, wherein the first corresponding module comprises a fourth sub-module;
the fourth sub-module is configured to detect, at the detection module, that the touch screen operation in the operation area corresponding to the virtual rocker includes sequentially detecting a click screen in the second partition of the operation area and a touch screen combination operation at the same position of the click screen, then detect that the operation of the touch screen changes into a sliding operation, and determine that the detected rocker operation corresponding to the touch screen operation is a rocker swinging operation, and then swing the rocker again after a key corresponding to the rocker is pressed.
15. A virtual rocker control device, comprising:
a processor;
and a memory storing processor-executable instructions;
wherein the processor is configured to:
executing instructions implementing the virtual rocker control method of any of the claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed, implements the steps of the virtual rocker control method according to any one of claims 1 to 7.
CN202011600461.4A 2020-12-29 2020-12-29 Virtual rocker control method and device Pending CN112698780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011600461.4A CN112698780A (en) 2020-12-29 2020-12-29 Virtual rocker control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011600461.4A CN112698780A (en) 2020-12-29 2020-12-29 Virtual rocker control method and device

Publications (1)

Publication Number Publication Date
CN112698780A true CN112698780A (en) 2021-04-23

Family

ID=75512148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011600461.4A Pending CN112698780A (en) 2020-12-29 2020-12-29 Virtual rocker control method and device

Country Status (1)

Country Link
CN (1) CN112698780A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113476822A (en) * 2021-06-11 2021-10-08 荣耀终端有限公司 Touch method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373336A (en) * 2015-12-17 2016-03-02 网易(杭州)网络有限公司 Information panel presentation control method and device
CN107132988A (en) * 2017-06-06 2017-09-05 网易(杭州)网络有限公司 Virtual objects condition control method, device, electronic equipment and storage medium
US20180024660A1 (en) * 2015-10-10 2018-01-25 Tencent Technology (Shenzhen) Company Limited Information processing method, terminal, and computer storage medium
JP2018190181A (en) * 2017-05-04 2018-11-29 望月 貴里子 User interface
CN109918004A (en) * 2015-12-17 2019-06-21 网易(杭州)网络有限公司 Virtual role control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180024660A1 (en) * 2015-10-10 2018-01-25 Tencent Technology (Shenzhen) Company Limited Information processing method, terminal, and computer storage medium
CN105373336A (en) * 2015-12-17 2016-03-02 网易(杭州)网络有限公司 Information panel presentation control method and device
CN109918004A (en) * 2015-12-17 2019-06-21 网易(杭州)网络有限公司 Virtual role control method and device
JP2018190181A (en) * 2017-05-04 2018-11-29 望月 貴里子 User interface
CN107132988A (en) * 2017-06-06 2017-09-05 网易(杭州)网络有限公司 Virtual objects condition control method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113476822A (en) * 2021-06-11 2021-10-08 荣耀终端有限公司 Touch method and device

Similar Documents

Publication Publication Date Title
US11875031B2 (en) System, method and graphical user interface for controlling a game
CN107930122B (en) Information processing method, device and storage medium
CN109885245B (en) Application control method and device, terminal equipment and computer readable storage medium
CN102479027A (en) Control method and device of application icons on touch screen
CN105607851A (en) Scene control method and device for touch terminal
US20220334716A1 (en) Adaptive display method and apparatus for virtual scene, electronic device, storage medium, and computer program product
CN111840988B (en) Game skill triggering method, game skill triggering device, game client and medium
CN110075522A (en) The control method of virtual weapons, device and terminal in shooting game
CN110448904B (en) Game view angle control method and device, storage medium and electronic device
JP7403583B2 (en) Game scene processing methods, devices, storage media and electronic devices
US20210162296A1 (en) Method and device for controlling virtual object, electronic device and storage medium
CN105320410A (en) Method and device for touch control on touch terminal
CN113476824A (en) Method for operating props in game, touch terminal, electronic equipment and storage medium
CN110404257B (en) Formation control method and device, computer equipment and storage medium
CN112698780A (en) Virtual rocker control method and device
CN111078069A (en) Interface icon moving method, storage medium and terminal
KR101407483B1 (en) Method and system for playing on-line game using mobile phone equipped with a touch screen
CN110795015A (en) Operation prompting method, device, equipment and storage medium
US10627991B2 (en) Device and control methods therefor
CN108635850B (en) Information processing method, device and storage medium
US10983602B2 (en) Identifying an input device
WO2024007675A1 (en) Virtual object switching method and apparatus, storage medium, and electronic apparatus
CN113440835A (en) Control method and device of virtual unit, processor and electronic device
CN112957735A (en) Game control method and device
CN112370781B (en) Operation control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210423

WD01 Invention patent application deemed withdrawn after publication