Screen focus control method and device, equipment and storage medium
By distinguishing component type information of the vehicle HMI page and finding the hash table operation method, the remote off-screen control of the multi-level composite vehicle central control components is realized, and the diversification of the interaction needs of the vehicle HMI page is solved. Reduces equipment development costs and improves user experience.
Patent Information
- Application Number
- CN202411057514.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-29
AI Technical Summary
The prior art is difficult to meet the diverse needs of automotive and machine HMI page interaction, resulting in high cost of remote equipment development and the aesthetics of visual design.
By setting type information for each component on the screen, distinguishing between ordinary components and composite components, obtaining user's focus displacement information and operation information, and using hash table to quickly find operation methods to realize the remote end of the composite vehicle central control component Off-screen control to reduce interactive buttons.
While meeting the interactive needs of diverse automotive HMI pages, it reduces equipment development costs, improves system response speed and user experience, reduces the coupling between design modules and technical modules, and improves the convenience and aesthetics of interaction.
Smart Images

Figure CN119045701A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a screen focus control method, device, equipment and storage medium. Background Art
[0002] At present, with the development of intelligent connected cars, the trend of intelligent car cockpits is becoming increasingly obvious. The central control screen in the car cockpit is a key HMI (Human Machine Interface) component that connects people and cars for human-machine interaction. In traditional car cockpits, there is generally only one central control screen, and it can only be interacted with by pressing the hardware buttons or touch screen on the central control. It has the characteristics of small number, single interaction method, and short interaction distance.
[0003] In the tide of intelligence, compared with the traditional car cockpit, a significant change of the new cockpit is that it has multiple central control screens, and the interaction methods are becoming more and more diversified. In traditional car computers, for the application scenario of remote control of the car computer central control screen, it is generally only supported on a remote smart device to control the focus position on the central control screen through the preset up, down, left, and right buttons, and then trigger the car computer function carried by the focus component by clicking the button. However, with the increasing complexity of the car computer HMI page, the methods of the prior art can no longer meet the increasingly diverse interaction needs of the car computer HMI page. If a corresponding function button is implemented on the remote device for each interaction requirement of the central control screen, this will increase the development cost of the remote device on the one hand, and affect its visual design aesthetics on the other hand.
[0004] Therefore, there is an urgent need for a method that can reduce the cost of setting function buttons and equipment development while meeting the diverse needs of vehicle HMI page interaction. Summary of the invention
[0005] Based on this, the present application provides a screen focus control method, device, equipment and storage medium to solve the problems existing in the prior art.
[0006] In a first aspect, a screen focus control method is provided, the method comprising:
[0007] Setting type information for each component in the screen, the type information including a composite component and a common component, the composite component being composed of a plurality of subcomponents;
[0008] Acquire focus displacement information sent by a user, and determine a current focus and a current component corresponding to the current focus based on the focus displacement information;
[0009] Acquire type information of the current component, and if the current component is a common component, acquire first operation information sent by a user, and control the common component based on the first operation information;
[0010] If the current component is a composite component, focus status information sent by the user is obtained, the subcomponent in the composite component is focused based on the focus status information, and second operation information sent by the user is obtained, and the subcomponent is controlled based on the second operation information.
[0011] According to an achievable method in an embodiment of the present application, if the current component is a common component, obtaining first operation information sent by a user, and controlling the common component based on the first operation information includes:
[0012] If the current component is a common component, obtaining first operation information sent by the user;
[0013] According to the common component and the first operation information, searching a hash table to determine a first operation method corresponding to the common component and the first operation information, wherein a hash table is pre-established for the common component, and the first operation method corresponding to the first operation information is stored in the hash table;
[0014] The function of the common component is executed based on the first operation method.
[0015] According to an achievable method in an embodiment of the present application, if the current component is a composite component, obtaining focus state information sent by a user, and focusing the subcomponent in the composite component based on the focus state information includes:
[0016] If the type of the current component is a composite component, acquiring focus state information sent by the user, wherein the focus state information includes focus or out of focus;
[0017] If the focus status information sent by the user is focused, the second visual effect is displayed on the composite component, and the first subcomponent in the middle of the composite component is focused, the state of the first subcomponent is set to selected, and the first visual effect is displayed on the first subcomponent.
[0018] According to an achievable manner in an embodiment of the present application, the obtaining of the second operation information sent by the user and the controlling of the subcomponent based on the second operation information include:
[0019] Acquire second operation information sent by a user, where the second operation information includes third operation information representing focus displacement or fourth operation information representing control;
[0020] In response to receiving the third operation information, the screen focus is moved from the first subcomponent to the second subcomponent based on the focus displacement information in the third operation information, the state of the second subcomponent is set to be selected, and the first visual effect is displayed for the second subcomponent;
[0021] In response to receiving the fourth operation information, a hash table is searched to determine a fourth operation method corresponding to the first subcomponent and the fourth operation information based on the first subcomponent and the fourth operation information, and the function of the first subcomponent is executed based on the fourth operation method, wherein, for the first subcomponent, a hash table is pre-established, and the fourth operation method corresponding to the fourth operation information is stored in the hash table.
[0022] According to an achievable manner in the embodiment of the present application, the method further includes:
[0023] If the composite component displays the second visual effect, the state of any subcomponent in the composite component is selected, and the subcomponent displays the first visual effect, then acquiring the focus state information sent by the user;
[0024] If the focus state information sent by the user is out of focus, canceling the selected state and the first visual effect of the subcomponent;
[0025] The state of the composite component is set to selected, and a first visual effect is displayed for the composite component.
[0026] According to an achievable method in an embodiment of the present application, acquiring focus displacement information sent by a user, and determining a current focus and a current component corresponding to the current focus based on the focus displacement information, includes:
[0027] Acquire focus displacement information sent by the user, and when the focus displacement information is received, parse the focus displacement information to obtain a screen ID and a focus displacement vector;
[0028] Based on the screen ID, determining a target screen and a default focus on the target screen;
[0029] The focus of the target screen is moved from the default focus to the current focus based on the focus displacement vector, a current component corresponding to the current focus is determined, a state of the current component is set to selected, and a first visual effect is displayed.
[0030] According to an achievable method in an embodiment of the present application, moving the focus of the target screen from the default focus to the current focus based on the focus displacement vector, and determining the current component corresponding to the current focus, includes:
[0031] According to the default focus on the target screen, determining a default component corresponding to the default focus;
[0032] Search the index list of the default component, determine the component after the default component moves based on the direction represented by the focus displacement vector, and determine the moved component as the current component, wherein the index list is preset with the corresponding moved component after the default component moves based on the direction represented by each focus displacement vector.
[0033] In a second aspect, a screen focus control device is provided, the device comprising:
[0034] Classification means: used to set type information for each component in the screen, the type information includes a composite component and a common component, the composite component is composed of a plurality of subcomponents;
[0035] Acquisition device: used for acquiring focus displacement information sent by a user, and determining a current focus and a current component corresponding to the current focus based on the focus displacement information;
[0036] Control device: used to obtain type information of the current component. If the current component is a common component, obtain first operation information sent by the user, and control the common component based on the first operation information; if the current component is a composite component, obtain focus status information sent by the user, focus on the subcomponent in the composite component based on the focus status information, and obtain second operation information sent by the user, and control the subcomponent in the composite component based on the second operation information.
[0037] In a third aspect, a computer device is provided, comprising:
[0038] at least one processor; and
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to perform the method involved in the first aspect above.
[0041] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that the computer instructions are used to enable a computer to execute the method involved in the first aspect above.
[0042] According to the technical content provided by the embodiments of the present application, the present application sets type information for each component on the screen, determines the current component based on the control signal sent by the user and obtains the type information. If it is a common component, the first operation information sent by the user is obtained to control the common component; if it is a composite component, the focus state information is obtained to focus on the subcomponent, and the second operation information is obtained to control the subcomponent. The present application disassembles and analyzes the complex and diverse vehicle HMI page interaction forms by setting type information for components to distinguish between common components and composite components. By only adding an additional focus state information, remote off-screen control of multi-level composite vehicle central control components can be achieved, and the corresponding buttons on the mobile device can also be reduced, achieving the purpose of controlling more complex central control pages with fewer interactive buttons, while meeting the diverse vehicle HMI page interaction needs and reducing equipment development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flow chart of a screen focus control method in one embodiment;
[0044] Figure 2 This is a system architecture diagram of the screen focus control method in this application;
[0045] Figure 3 One of the screen focus diagrams in one embodiment;
[0046] Figure 4 Screen focus diagram 2 in one embodiment;
[0047] Figure 5 Schematic diagram of screen focus in one embodiment;
[0048] Figure 6 A fourth schematic diagram of screen focus in one embodiment;
[0049] Figure 7 Screen focus diagram 5 in one embodiment;
[0050] Figure 8 is a structural block diagram of a screen focus control device in one embodiment;
[0051] Fig. 9 FIG. 4 is a schematic structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] Figure 1 A flowchart of a screen focus control method provided in an embodiment of the present application, Figure 2 is a system architecture diagram of the screen focus control method of the present application, such as Figure 2 As shown, the system includes a vehicle terminal 101 and a smart terminal 102, the vehicle terminal 101 and the smart terminal 102 are connected in communication, the user inputs a screen control request on the smart terminal 102, and the smart terminal 102 sends the screen control request to the vehicle terminal 101, wherein the device type of the smart terminal 102 can be a mobile phone, a smart remote control, a game controller, etc., and this application does not limit this. A screen focus control method provided in an embodiment of the present application is applied to the vehicle terminal 101.
[0054] Figure 1 A flowchart of a screen focus control method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method may include the following steps:
[0055] Step 101: Set type information for each component in the screen. The type information includes composite components and common components. Composite components are composed of multiple subcomponents.
[0056] Specifically, Figure 1 As shown, combined with Figure 3 A composite component is a UI component composed of multiple subcomponents. It is recursive and can contain other composite components to form a nested structure, such as a sliding list component. Ordinary components are the basic elements that make up a UI interface. They usually have a single function and a simple structure, such as a search box component. In this step, type information is set for each component on the screen. The type information includes composite components and ordinary components. The component type of any component can be determined based on its type information. For example, Figure 3 Components 0, 1, 2, 3, 4, 5, and 6 are six subcomponents, which together form a composite component; components 1, 2, 3, 4, and 5 are five ordinary components.
[0057] Step 102: Obtain focus displacement information sent by the user, and determine the current focus and the current component corresponding to the current focus based on the focus displacement information.
[0058] Specifically, when focus displacement information is received, the focus displacement information is parsed to obtain the screen ID and the focus displacement vector. Based on the screen ID, the target screen and the default focus on the target screen are determined. Based on the focus displacement vector, the focus of the target screen is moved from the default focus to the current focus, and the current component corresponding to the current focus is determined.
[0059] Step 103: Obtain type information of the current component. If the current component is a common component, obtain first operation information sent by the user, and control the common component based on the first operation information.
[0060] Specifically, the component type information corresponding to the component ID is searched from the index list according to the current component. If the current component is a common component, the first operation information sent by the user is obtained. The first operation information represents the operation command input by the user to the common component, such as "click", etc. The operation is performed on the current component based on the first operation information, such as "click the current button component and execute the corresponding function".
[0061] Step 104: If the current component is a composite component, then the focus state information sent by the user is obtained, the subcomponent in the composite component is focused based on the focus state information, and the second operation information sent by the user is obtained, and the subcomponent is controlled based on the second operation information.
[0062] Specifically, if the current component is a composite component, then further obtain focus state information sent by the user, such as a "focus signal", and focus on a subcomponent in the composite component based on the "focus signal". In response to the current focus being on a subcomponent in the composite component according to the focus state information sent by the user, obtain second operation information sent by the user, and perform an operation on a subcomponent in the composite component based on the second operation information.
[0063] It can be seen that the embodiment of the present application sets type information for each component on the screen, determines the current component based on the control signal sent by the user and obtains the type information. If it is a common component, the first operation information sent by the user is obtained to control the common component; if it is a composite component, the focus state information is obtained to focus on the subcomponent, and the second operation information is obtained to control the subcomponent. The present application disassembles and analyzes the complex and diverse vehicle HMI page interaction forms by setting type information for components to distinguish between common components and composite components. By only adding an additional focus state information, remote off-screen control of multi-level composite vehicle central control components can be achieved. The corresponding buttons on the mobile device can also be reduced, achieving the purpose of controlling more complex central control pages with fewer interactive buttons, while meeting the diverse vehicle HMI page interaction needs and reducing equipment development costs.
[0064] In one embodiment of the present application, if the current component is a common component, first operation information sent by a user is obtained, and the common component is controlled based on the first operation information, including: if the current component is a common component, the first operation information sent by the user is obtained; based on the common component and the first operation information, a hash table is searched to determine a first operation method corresponding to the common component and the first operation information, wherein, for the common component, a hash table is pre-established, and the first operation method corresponding to the first operation information is stored in the hash table; and a function of the common component is executed based on the first operation method.
[0065] Specifically, the first operation information represents the operation command input by the user to the ordinary component. For each ordinary component that supports the focus function, a hash table is established with its user operation information as the key and the actual function, that is, the operation method, as the value. For example, for the air-conditioning temperature button component, its first operation information key includes "up" or "down", and the corresponding first operation method Value includes "increase the air-conditioning temperature" or "lower the air-conditioning temperature". For each ordinary component, a hash table is established in advance, and the first operation method corresponding to the first operation information is stored in the hash table, and the function of the ordinary component is executed based on the first operation method.
[0066] The embodiment of the present application uses a hash table to quickly search for the operation method corresponding to the current component and user operation, which can greatly shorten the search time and improve the response speed and user experience of the system. A hash table containing the corresponding relationship between user operation and operation method is pre-established for each component, so that the code structure is clearer, easy to understand and maintain. When the interaction logic of a component needs to be modified or extended, it is only necessary to update or add the corresponding entry in the hash table, without the need to deeply modify the internal code of the component, thereby reducing the coupling between codes. With the continuous development of the application, new components and user operations may be introduced. Using a hash table to manage the mapping relationship between these operations and methods, new entries can be easily added to support new interaction scenarios without large-scale changes to the original architecture, thereby improving the scalability of the system.
[0067] In one embodiment of the present application, if the current component is a composite component, focus status information sent by the user is obtained, and subcomponents in the composite component are focused based on the focus status information, including: if the type of the current component is a composite component, focus status information sent by the user is obtained, wherein the focus status information includes focus or out of focus; if the focus status information sent by the user is focus, a second visual effect is displayed for the composite component, and a first subcomponent in the middle of the composite component is focused, the state of the first subcomponent is set to selected, and a first visual effect is displayed for the first subcomponent.
[0068] Specifically, Figure 4 As shown, if the type of the current component is a composite component, the focus state information sent by the user is obtained, wherein the focus state information includes focus or out of focus; if the focus state information sent by the user is focus, a second visual effect is displayed for the composite component, for example Figure 4 In the example, the second visual effect is to display a yellow border, or other visual effects, which are not limited in this embodiment. After displaying the second visual effect to the composite component, focus on the first subcomponent in the middle of the composite component, such as Figure 5As shown, the first subcomponent in the middle of the composite component is "component 0", the state of the first subcomponent "component 0" is set to selected, and the first visual effect is displayed for the first subcomponent. Figure 5 In the embodiment, the first visual effect is to display a red border, and it may also be other visual effects, which is not limited in this embodiment.
[0069] In one embodiment of the present application, second operation information sent by a user is obtained, and a subcomponent is controlled based on the second operation information, including: obtaining the second operation information sent by the user, the second operation information including third operation information representing focus displacement or fourth operation information representing control; in response to receiving the third operation information, moving the screen focus from the first subcomponent to the second subcomponent based on the focus displacement information in the third operation information, setting the state of the second subcomponent to selected, and displaying a first visual effect for the second subcomponent; in response to receiving the fourth operation information, searching a hash table to determine a fourth operation method corresponding to the first subcomponent and the fourth operation information according to the first subcomponent and the fourth operation information, and executing the function of the first subcomponent based on the fourth operation method, wherein, for the first subcomponent, a hash table is pre-established, and the fourth operation method corresponding to the fourth operation information is stored in the hash table.
[0070] Specifically, the second operation information indicates the operation command input by the user to the composite component. The second operation information includes two types: one is the third operation information representing the focus displacement, and the third operation information is used to move the focus to other subcomponents in the current composite component; the other is the fourth operation information representing the control, and the fourth operation information is used to perform an operation on the currently focused and selected subcomponent. Figure 6 As shown, in response to receiving the third operation information, the screen focus is moved from the first subcomponent (i.e., "component 0") to the second subcomponent (i.e., "component 1") based on the focus displacement information in the third operation information, the state of the second subcomponent is set to selected, and the first visual effect is displayed for the second subcomponent. Figure 6 The first visual effect in is to display a red border, or it can be other visual effects, which is not limited in this embodiment. In response to receiving the fourth operation information, the hash table is searched to determine the fourth operation method corresponding to the first subcomponent and the fourth operation information according to the first subcomponent and the fourth operation information. For each subcomponent that supports the focus function, a hash table is established with its user operation information as the Key and the actual function, i.e., the operation method, as the Value. For example, for the music component, its fourth operation information key includes "press" or "lift", and the corresponding fourth operation method Value includes "play song" or "pause song". For each subcomponent, a hash table is established in advance, and the fourth operation method corresponding to the fourth operation information is stored in the hash table, and the function of the subcomponent is executed based on the fourth operation method.
[0071] The embodiment of the present application disassembles and analyzes the complex and diverse vehicle HMI page interaction forms by distinguishing between ordinary components and composite components by setting type information for components. By only adding an additional focus state information, remote off-screen control of multi-level composite vehicle central control components can be achieved, and the buttons on the corresponding mobile device can also be reduced, so as to achieve the purpose of controlling more complex central control pages with fewer interactive buttons, while meeting the diverse vehicle HMI page interaction requirements and reducing the device development cost. Using a hash table to quickly find the operation method corresponding to the current component and user operation can greatly shorten the search time and improve the system's response speed and user experience. A hash table containing the correspondence between user operations and operation methods is pre-established for each component, making the code structure clearer, easier to understand and maintain. When the interaction logic of a component needs to be modified or expanded, it is only necessary to update or add the corresponding entry in the hash table, without the need to deeply modify the internal code of the component, thereby reducing the coupling between codes. As the application continues to develop, new components and user operations may be introduced. Using a hash table to manage the mapping relationship between these operations and methods makes it easy to add new entries to support new interaction scenarios without making large-scale changes to the original architecture, thereby improving the scalability of the system.
[0072] In one embodiment of the present application, the method also includes: if the composite component displays a second visual effect, the state of any sub-component in the composite component is selected, and the sub-component displays a first visual effect, then obtaining the focus state information sent by the user; if the focus state information sent by the user is out of focus, then canceling the selected state and the first visual effect of the sub-component; setting the state of the composite component to selected, and displaying the first visual effect for the composite component.
[0073] Specifically, Figure 5 or Figure 6 As shown in the figure, the composite component displays the second visual effect (such as a yellow border), and the state of any subcomponent in the composite component is selected, and the subcomponent displays the first visual effect (such as a red border). At this time, the focus state information sent by the user is obtained. If the focus state information sent by the user is out of focus, the focus release function of the current most recently focused component will be triggered, and the selected state and the first visual effect of the subcomponent will be canceled; the state of the composite component will be set to selected, and the composite component will be displayed with the first visual effect (such as displaying a red border on the composite component), and the system will return to Figure 7 The status described.
[0074] In the embodiment of the present application, in addition to the up, down, left, right and click buttons on the remote device, only one additional focus and release button is added, and combined with the above-mentioned interactive logic algorithm, remote off-screen control of multi-level composite vehicle central control components based on focus can be realized. On the one hand, the adaptation and development costs of external devices are reduced, and the types of vehicle functions that can be controlled off-screen are also enriched; on the other hand, by designing standardized and universal basic buttons on external devices, the hardware expansion cost is reduced, the convenience and aesthetics of interaction are improved, and the coupling between the design module and the technical module is greatly reduced.
[0075] In one embodiment of the present application, focus displacement information sent by a user is obtained, and a current focus and a current component corresponding to the current focus are determined based on the focus displacement information, including: obtaining the focus displacement information sent by the user, and when the focus displacement information is received, parsing the focus displacement information to obtain a screen ID and a focus displacement vector; based on the screen ID, determining a target screen and a default focus on the target screen; based on the focus displacement vector, moving the focus of the target screen from the default focus to the current focus, determining a current component corresponding to the current focus, setting the state of the current component to selected, and displaying a first visual effect.
[0076] Specifically, the system first captures the focus movement instructions input by the user, and parses these instructions to obtain the specific screen identification (ID) and the direction and distance of focus movement (displacement vector). Subsequently, the system locates the corresponding display interface according to the screen ID and identifies the initial (default) focus position on the interface. Then, the focus position is accurately adjusted to the new position intended by the user, that is, the current focus, based on the displacement vector. Once the current focus is determined, the system automatically identifies and selects components that coincide with the focus, such as buttons, text boxes, etc., marks the component status as selected, and intuitively displays it to the user through visual feedback (such as displaying first visual effects such as a red border) to enhance the interactive experience.
[0077] In one embodiment of the present application, the focus of the target screen is moved from the default focus to the current focus based on the focus displacement vector, and the current component corresponding to the current focus is determined, including: determining the default component corresponding to the default focus based on the default focus on the target screen; searching the index list of the default component to determine the component after the default component moves in the direction represented by the focus displacement vector, and determining the moved component as the current component, wherein the index list is preset with the moved components corresponding to the default component after the default component moves in the direction represented by each focus displacement vector.
[0078] Specifically, the focus movement mechanism is precisely controlled by a preset index list. First, the system identifies the default focus on the target screen and its corresponding default component. Then, based on the focus displacement vector input by the user, the system consults the index list, which records in detail the new component that should be reached after moving in a specific direction from any default component. By matching the direction of the displacement vector, the system can quickly locate the moved component, that is, the current component corresponding to the current focus. This mechanism not only improves the accuracy of focus movement, but also optimizes performance in a predefined way to ensure smooth interaction of the user interface.
[0079] Based on the above embodiments, the present application has at least the following advantages:
[0080] By disassembling and analyzing the complex and diverse interactive forms of the car machine HMI page, extracting its interactive behavior model, and developing corresponding interactive logic algorithms for it, the purpose of controlling more complex central control pages with fewer terminal interactive buttons is achieved. In addition to the up, down, left, right and click buttons of the remote device, only one additional focus and release button is added, and combined with the above interactive logic algorithm, the focus-based remote off-screen control of the multi-level composite car machine central control components is realized. Compared with the traditional method of using external devices to remotely control the car machine central control screen, the above technical solution, on the one hand, reduces the adaptation and development costs of external devices, and also enriches the types of car machine functions that can be controlled off-screen; on the other hand, by designing standardized and universal basic buttons on external devices, the hardware expansion cost is reduced, the convenience and aesthetics of interaction are improved, and the coupling between the design module and the technical module is greatly reduced.
[0081] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in the application, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0082] Figure 8 A schematic diagram of the structure of a screen focus control device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device may include:
[0083] Classification device 801: used to set type information for each component in the screen, the type information includes composite components and common components, the composite component is composed of multiple subcomponents;
[0084] Acquisition means 802: used for acquiring focus displacement information sent by a user, and determining a current focus and a current component corresponding to the current focus based on the focus displacement information;
[0085] Control device 803: used to obtain type information of the current component. If the current component is a common component, obtain first operation information sent by the user, and control the common component based on the first operation information; if the current component is a composite component, obtain focus status information sent by the user, focus on the subcomponent in the composite component based on the focus status information, and obtain second operation information sent by the user, and control the subcomponent in the composite component based on the second operation information.
[0086] In one embodiment of the present application, if the current component is a common component, obtaining first operation information sent by a user, and controlling the common component based on the first operation information includes:
[0087] If the current component is a common component, obtaining first operation information sent by the user;
[0088] According to the common component and the first operation information, searching a hash table to determine a first operation method corresponding to the common component and the first operation information, wherein a hash table is pre-established for the common component, and the first operation method corresponding to the first operation information is stored in the hash table;
[0089] The function of the common component is executed based on the first operation method.
[0090] In one embodiment of the present application, if the current component is a composite component, acquiring focus state information sent by a user, and focusing the subcomponent in the composite component based on the focus state information includes:
[0091] If the type of the current component is a composite component, acquiring focus state information sent by the user, wherein the focus state information includes focus or out of focus;
[0092] If the focus status information sent by the user is focused, the second visual effect is displayed on the composite component, and the first subcomponent in the middle of the composite component is focused, the state of the first subcomponent is set to selected, and the first visual effect is displayed on the first subcomponent.
[0093] In one embodiment of the present application, the acquiring the second operation information sent by the user and controlling the subcomponent based on the second operation information includes:
[0094] Acquire second operation information sent by a user, where the second operation information includes third operation information representing focus displacement or fourth operation information representing control;
[0095] In response to receiving the third operation information, the screen focus is moved from the first subcomponent to the second subcomponent based on the focus displacement information in the third operation information, the state of the second subcomponent is set to be selected, and the first visual effect is displayed for the second subcomponent;
[0096] In response to receiving the fourth operation information, a hash table is searched to determine a fourth operation method corresponding to the first subcomponent and the fourth operation information based on the first subcomponent and the fourth operation information, and the function of the first subcomponent is executed based on the fourth operation method, wherein, for the first subcomponent, a hash table is pre-established, and the fourth operation method corresponding to the fourth operation information is stored in the hash table.
[0097] In one embodiment of the present application, the control module is further used for:
[0098] If the composite component displays the second visual effect, the state of any subcomponent in the composite component is selected, and the subcomponent displays the first visual effect, then acquiring the focus state information sent by the user;
[0099] If the focus state information sent by the user is out of focus, canceling the selected state and the first visual effect of the subcomponent;
[0100] The state of the composite component is set to selected, and a first visual effect is displayed for the composite component.
[0101] In one embodiment of the present application, the acquiring of focus displacement information sent by a user, and determining a current focus and a current component corresponding to the current focus based on the focus displacement information, includes:
[0102] Acquire focus displacement information sent by the user, and when the focus displacement information is received, parse the focus displacement information to obtain a screen ID and a focus displacement vector;
[0103] Based on the screen ID, determining a target screen and a default focus on the target screen;
[0104] The focus of the target screen is moved from the default focus to the current focus based on the focus displacement vector, a current component corresponding to the current focus is determined, a state of the current component is set to selected, and a first visual effect is displayed.
[0105] In one embodiment of the present application, moving the focus of the target screen from the default focus to the current focus based on the focus displacement vector, and determining the current component corresponding to the current focus includes:
[0106] According to the default focus on the target screen, determining a default component corresponding to the default focus;
[0107] Search the index list of the default component, determine the component after the default component moves based on the direction represented by the focus displacement vector, and determine the moved component as the current component, wherein the index list is preset with the corresponding moved component after the default component moves based on the direction represented by each focus displacement vector.
[0108] The same or similar parts between the above embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0109] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described in this article within the scope permitted by applicable laws and regulations, provided that the applicable laws and regulations of the country are met (for example, the user's explicit consent, effective notification to the user, and the user's explicit authorization, etc.).
[0110] According to an embodiment of the present application, the present application also provides a computer device and a computer-readable storage medium. The present application also provides a computer device, including at least one processor and a memory connected to the at least one processor in communication; wherein the memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor so that the at least one processor can execute the screen focus control method described in any of the above embodiments.
[0111] like Fig. 9 , is a block diagram of a computer device according to an embodiment of the present application. The computer device is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smart phone, a wearable device, etc.
[0112] like Fig. 9As shown, the computer device 900 includes a computing unit 901, a ROM 902, a RAM 903, a bus 904, and an input / output (I / O) interface 905, and the computing unit 901, the ROM 902, and the RAM 903 are connected to each other through the bus 904. The input / output (I / O) interface 905 is also connected to the bus 904.
[0113] The computing unit 901 can perform various processes in the method embodiment of the present application according to the computer instructions stored in the read-only memory (ROM) 902 or the computer instructions loaded from the storage unit 908 to the random access memory (RAM) 903. The computing unit 901 can be various general and / or special processing components with processing and computing capabilities. The computing unit 901 may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. In some embodiments, the method provided in the embodiment of the present application can be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 908.
[0114] The RAM 909 may also store various programs and data required for the operation of the device 900. Part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909.
[0115] The input unit 906, output unit 907, storage unit 908 and communication unit 909 in the computer device 900 can be connected to the I / O interface 905. The input unit 906 can be, for example, a keyboard, a mouse, a touch screen, a microphone, etc. The output unit 907 can be, for example, a display, a speaker, an indicator light, etc. The device 900 can exchange information, data, etc. with other devices through the communication unit 909.
[0116] It should be noted that the device may also include other components necessary for normal operation, or may only include components necessary for implementing the solution of the present application, rather than all the components shown in the figure.
[0117] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0118] The computer instructions for implementing the method of the present application can be written in any combination of one or more programming languages. These computer instructions can be provided to the computing unit 901, so that when the computer instructions are executed by the computing unit 901 such as a processor, the steps involved in the method embodiment of the present application are executed.
[0119] The present application also provides a computer-readable storage medium on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the screen focus control method described in any of the above embodiments.
[0120] The computer-readable storage medium provided in the present application may be a tangible medium that may contain or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0121] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A screen focus control method, characterized in that: The method includes: Setting type information for each component in the screen, the type information including a composite component and a common component, the composite component being composed of a plurality of subcomponents; Acquire focus displacement information sent by a user, and determine a current focus and a current component corresponding to the current focus based on the focus displacement information; Acquire type information of the current component, and if the current component is a common component, acquire first operation information sent by a user, and control the common component based on the first operation information; If the current component is a composite component, focus status information sent by the user is obtained, the subcomponent in the composite component is focused based on the focus status information, and second operation information sent by the user is obtained, and the subcomponent is controlled based on the second operation information.
2. The screen focus control method according to claim 1, characterized in that: If the current component is a common component, obtaining first operation information sent by a user, and controlling the common component based on the first operation information, includes: If the current component is a common component, obtaining first operation information sent by the user; According to the common component and the first operation information, searching a hash table to determine a first operation method corresponding to the common component and the first operation information, wherein a hash table is pre-established for the common component, and the first operation method corresponding to the first operation information is stored in the hash table; The function of the common component is executed based on the first operation method.
3. The screen focus control method according to claim 1, characterized in that: If the current component is a composite component, acquiring focus state information sent by a user, and focusing the subcomponent in the composite component based on the focus state information, including: If the type of the current component is a composite component, acquiring focus state information sent by the user, wherein the focus state information includes focus or out of focus; If the focus status information sent by the user is focused, the second visual effect is displayed on the composite component, and the first subcomponent in the middle of the composite component is focused, the state of the first subcomponent is set to selected, and the first visual effect is displayed on the first subcomponent.
4. The screen focus control method according to claim 3, characterized in that: The obtaining the second operation information sent by the user and controlling the subcomponent based on the second operation information includes: Acquire second operation information sent by a user, where the second operation information includes third operation information representing focus displacement or fourth operation information representing control; In response to receiving the third operation information, the screen focus is moved from the first subcomponent to the second subcomponent based on the focus displacement information in the third operation information, the state of the second subcomponent is set to be selected, and the first visual effect is displayed for the second subcomponent; In response to receiving the fourth operation information, a hash table is searched to determine a fourth operation method corresponding to the first subcomponent and the fourth operation information based on the first subcomponent and the fourth operation information, and the function of the first subcomponent is executed based on the fourth operation method, wherein, for the first subcomponent, a hash table is pre-established, and the fourth operation method corresponding to the fourth operation information is stored in the hash table.
5. The screen focus control method according to claim 3, characterized in that: The method further comprises: If the composite component displays the second visual effect, the state of any subcomponent in the composite component is selected, and the subcomponent displays the first visual effect, then acquiring the focus state information sent by the user; If the focus state information sent by the user is out of focus, canceling the selected state and the first visual effect of the subcomponent; The state of the composite component is set to selected, and a first visual effect is displayed for the composite component.
6. The screen focus control method according to claim 1, characterized in that: The acquiring the focus displacement information sent by the user, and determining the current focus and the current component corresponding to the current focus based on the focus displacement information, includes: Acquire focus displacement information sent by the user, and when the focus displacement information is received, parse the focus displacement information to obtain a screen ID and a focus displacement vector; Based on the screen ID, determining a target screen and a default focus on the target screen; The focus of the target screen is moved from the default focus to the current focus based on the focus displacement vector, a current component corresponding to the current focus is determined, a state of the current component is set to selected, and a first visual effect is displayed.
7. The screen focus control method according to claim 6, characterized in that: The step of moving the focus of the target screen from the default focus to the current focus based on the focus displacement vector, and determining a current component corresponding to the current focus, comprises: According to the default focus on the target screen, determining a default component corresponding to the default focus; Search the index list of the default component, determine the component after the default component moves based on the direction represented by the focus displacement vector, and determine the moved component as the current component, wherein the index list is preset with the corresponding moved component after the default component moves based on the direction represented by each focus displacement vector.
8. A screen focus control device, characterized in that: The device includes: Classification means: used to set type information for each component in the screen, the type information includes a composite component and a common component, the composite component is composed of a plurality of subcomponents; Acquisition device: used for acquiring focus displacement information sent by a user, and determining a current focus and a current component corresponding to the current focus based on the focus displacement information; Control device: used to obtain type information of the current component. If the current component is a common component, obtain first operation information sent by the user, and control the common component based on the first operation information; if the current component is a composite component, obtain focus status information sent by the user, focus on the subcomponent in the composite component based on the focus status information, and obtain second operation information sent by the user, and control the subcomponent in the composite component based on the second operation information.
9. A computer device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: The computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Focus triggering method and device for display page, computer equipment and storage medium
CN110475138A
Focus moving method and device
CN115686689A
Vehicle-mounted display screen focus control method, vehicle machine system and computer readable storage medium
CN117827061A
Component synthesis method, component synthesis device, electronic equipment and storage medium
CN118296024A
