Method and electronic device for displaying roulette direction

By calibrating the wheel direction and touch direction of the folding screen device to keep them consistent when switching between forms, the problem of poor user operating experience is solved and the smoothness and accuracy of the operation are improved.

CN117707352BActive Publication Date: 2024-09-20HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310851554.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-11
Publication Date
2024-09-20
Estimated Expiration
2043-07-11

AI Technical Summary

Technical Problem

When switching between folding screen device forms, the touch direction and the wheel direction are easily inconsistent, resulting in a poor user experience.

Method used

By obtaining the current frame roulette direction and the direction vector of the touch point, calibrate the roulette direction to make it consistent with the touch direction, and correct the touch report point position to maintain consistent directions on the GUI.

Benefits of technology

It improves the user's operating experience, avoids operational inconvenience caused by inconsistent directions, and enhances the smoothness and accuracy of game operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117707352B
    Figure CN117707352B
Patent Text Reader

Abstract

The present application provides a method for displaying the direction of a wheel and an electronic device. If the folding screen switches its form at the current moment, such as switching from a folded state to an unfolded state, or from an unfolded state to a folded state, obtain the direction vector of the current frame wheel direction and the direction vector of the current frame touch point. Calibrate the direction vector of the current frame wheel direction so that the calibrated current frame wheel direction is consistent with the current frame touch direction, and correct the position of the current frame touch point according to the calibrated direction vector of the current frame wheel direction, so as to display the corrected current frame touch point in the GUI. In this way, the touch direction of the current frame touch point presented on the GUI is consistent with the direction indicated by the current frame touch point, thereby improving the user operation experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for displaying the direction of a roulette wheel and an electronic device. Background Art

[0002] An electronic device with a foldable screen, also known as a foldable screen device, is a device that achieves a foldable screen display form through bendable parts such as hinges, flexible screens, etc. Since foldable screen devices can increase the scene display size of the game scene and improve the convenience of game operation, more and more users choose to operate games based on foldable screen devices.

[0003] The user often controls the movement of the corresponding virtual character in the folding screen by operating the wheel. Specifically, the user performs a touch operation to obtain the touch position (also called the touch point) and touch direction of the current frame, and at the same time obtains the touch direction of the current frame and the touch reporting point of the current frame on the wheel (also called the current frame touch reporting point). Among them, the touch reporting point is used to indicate the direction of the wheel under the touch point at the current moment, that is, to indicate the movement direction of the virtual character presented by the user on the graphical user interface (GUI).

[0004] In order to ensure the user operation experience, the touch direction of the current frame should be consistent with the wheel direction indicated by the touch point of the current frame. However, when the folding screen switches state, such as switching from folded state to unfolded state, or from unfolded state to folded state, there is often a problem of inconsistency between the touch direction and the wheel direction, resulting in a poor user operation experience. Summary of the invention

[0005] The present application provides a method for displaying the direction of a roulette wheel and an electronic device, aiming to avoid the technical problem that the touch direction is inconsistent with the roulette direction when the folding screen form is switched, thereby improving the user operation experience.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a folding screen electronic device, wherein a graphical user interface GUI of the electronic device displays a roulette wheel, and a touch reporting point on the roulette wheel is used to indicate the direction of the roulette wheel. The method is:

[0008] If the folding screen switches its form at the current moment, obtain the direction vector of the current frame wheel direction and the direction vector of the current frame touch point. The starting point of the direction vector of the current frame touch point is the touch point of the previous frame from the current frame, and the end point is the touch point of the current frame. The starting point of the direction vector of the current frame wheel direction is the center point of the wheel, and the end point is the current frame touch reporting point corresponding to the current frame touch point. The form switching includes switching from the folded state to the unfolded state, or from the unfolded state to the folded state. Calibrate the direction vector of the current frame wheel direction so that the calibrated current frame wheel direction is consistent with the current frame touch direction, and correct the position of the current frame touch reporting point according to the calibrated direction vector of the current frame wheel direction, so as to display the corrected current frame touch reporting point in the GUI. In this way, the touch direction of the current frame touch point presented on the GUI is consistent with the direction indicated by the current frame touch reporting point, which improves the user operation experience.

[0009] In a possible implementation, the first target direction angle between the direction vector of the current frame wheel direction and the direction vector of the current frame touch point is determined. When the first target direction angle is greater than the preset angle threshold, the direction vector of the current frame wheel direction is calibrated. When the first target direction angle is not greater than the preset angle threshold, and the direction vector of the current frame touch point and the direction vector of the current frame wheel direction are symmetrical along the target direction, the direction vector of the current frame wheel direction is calibrated, and the target direction is parallel to any coordinate axis direction of the screen coordinate system. In this way, it is avoided that the CPU runs slowly when the GUI screen is refreshed due to checking each image frame, resulting in frame loss and freeze.

[0010] In a possible implementation, according to rendering instructions and rendering parameters generated by a game application, a roulette wheel UI with touch reporting points is separated from a GUI to be displayed, and a direction vector of the roulette wheel direction in the current frame is obtained according to the separated roulette wheel UI.

[0011] Optionally, when depth detection is turned off and hybrid detection is turned on, the GUI to be displayed is drawn according to the rendering instructions and rendering parameters, so that the wheel with touch reporting points is located at the top layer of the GUI to be displayed and is semi-transparent, and the wheel direction UI is separated from the GUI to be displayed according to the texture of the loaded wheel and wheel direction. In this way, the wheel direction of the current frame can be obtained more conveniently and accurately.

[0012] In an optional manner, it is possible to determine whether the folding screen has switched its form at the current moment according to the power mode, which records the power state of each split screen in the folding screen. In this way, the scene recognition module does not need to obtain the angle between the two split screens of the folding screen, and can more quickly determine whether the folding screen has switched its form at the current moment.

[0013] In another optional implementation, if the folding screen includes an inner screen and an outer screen, when the power mode is that the inner screen switches from a power-on state to a power-off state, and the outer screen switches from a power-off state to a power-on state, it is determined that the folding screen switches its form at the current moment. When the power mode is that the inner screen switches from a power-off state to a power-on state, and the outer screen switches from a power-on state to a power-off state, it is determined that the folding screen switches its form at the current moment.

[0014] In another optional implementation, the touch direction of the next frame and the wheel direction of the next frame of the current frame are obtained. When the touch direction of the next frame is inconsistent with the wheel direction of the next frame, the calibration is stopped. When the touch direction of the next frame is consistent with the wheel direction of the next frame, the corrected touch point of the current frame is displayed on the GUI. This can avoid useless calibration and provide users with a better visual experience.

[0015] Optionally, if the folding screen has not switched form at the current moment, the target switching moment is selected from the moments when the folding screen has switched form, and the target switching moment is the moment of the form switching closest to the current moment. Obtain wheel calibration information at the target switching moment, the wheel calibration information including the consistency between the image frame touch direction and the image frame wheel direction of multiple image frames within a preset refresh time;

[0016] When the touch direction of an image frame is inconsistent with the wheel direction of an image frame, the direction vector of the wheel direction of the current frame and the direction vector of the touch point are obtained, and the direction vector of the wheel direction of the current frame is calibrated to make the wheel direction of the current frame consistent with the touch direction of the current frame after calibration, and the position of the touch point of the current frame is corrected according to the direction vector of the wheel direction of the current frame after calibration. In this way, other scenarios where the touch direction is likely to be inconsistent with the wheel direction are avoided.

[0017] Optionally, in response to the user performing a touch operation on the folding screen, a touch signal is obtained; the touch signal is filtered, and the touch point coordinates of the current frame are obtained based on the filtered touch signal; and the direction vector of the touch point of the current frame is obtained based on the touch point coordinates of the current frame and the touch point coordinates of the previous frame of the current frame.

[0018] In an optional implementation, the current frame touch reporting point is rotated by a preliminary calibration value around the center of the wheel according to a preset preliminary rotation direction to obtain a direction vector of the preliminary calibration wheel direction and a preliminary calibration touch reporting point; when the second target direction angle between the current frame touch direction and the direction vector of the preliminary calibration wheel direction is greater than the first target direction angle, the first calibration value is determined, and the preliminary calibration touch reporting point is rotated by the first calibration value around the center of the wheel according to a direction opposite to the preliminary rotation direction to calibrate the direction vector of the current frame wheel direction, and the first calibration value is the sum of the first target direction angle and the preliminary calibration value;

[0019] When the second target direction angle between the current frame touch direction and the direction vector of the preliminary calibration wheel direction is less than the first target direction angle, a second calibration value is determined, and the preliminary calibration touch point is rotated around the center of the wheel by the second calibration value according to the preliminary rotation direction to calibrate the direction vector of the current frame wheel direction. The second calibration value is the difference between the first target direction angle and the preliminary calibration value.

[0020] In this way, calibration can well ensure that the touch direction after calibration is consistent with the direction of the wheel.

[0021] Optionally, the calibrated current frame wheel direction is consistent with the current frame touch direction: the angle between the direction vector of the calibrated current frame wheel direction and the third target direction of the direction vector of the current frame touch point is not greater than a preset angle threshold, and the direction vector of the calibrated current frame touch point and the direction vector of the current frame wheel direction are not symmetrical along the target direction, and the target direction is parallel to any coordinate axis direction of the screen coordinate system.

[0022] In a second aspect, the present application provides an electronic device, wherein a GUI of the electronic device displays a roulette wheel, and a touch-control point on the roulette wheel is used to indicate the direction of the roulette wheel. The electronic device includes a memory and a processor, wherein the memory is coupled to the processor; the memory stores a program, and when the program is executed by the processor, the electronic device executes any one of the methods of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of a state in which the vertically foldable screen is fully unfolded;

[0024] Figure 2 A schematic diagram of a game scene when the inner screen is in a vertical state is provided for an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a game scene when the external screen is in a horizontal state provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of switching an outer screen horizontal state to an inner screen vertical state provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of switching an outer screen horizontal state to an inner screen horizontal state provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of switching an inner screen horizontal state to an outer screen horizontal state provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of switching an inner screen portrait state to an outer screen landscape state provided in an embodiment of the present application;

[0030] Figure 8is a software structure block diagram of the folding screen device 100 in the related solution;

[0031] Fig. 9 A schematic diagram of an inconsistency principle provided in an embodiment of the present application;

[0032] Fig.10 Another schematic diagram of the principle of inconsistent switching states provided by an embodiment of the present application;

[0033] Fig.11 This is a software structure block diagram of the folding screen device according to an embodiment of the present application;

[0034] Fig.12 An interactive diagram of a method for displaying the direction of a roulette wheel provided in an embodiment of the present application;

[0035] Fig.13 A schematic diagram of a roulette UI with a touch-sensitive reporting function displayed on a folding screen provided in an embodiment of the present application;

[0036] Fig.14 A schematic diagram of a game scene when a folding screen switches its form is provided for an embodiment of the present application;

[0037] Fig.15 A schematic diagram of the structure of a folding screen device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.

[0039] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0040] In order to enable those skilled in the art to better understand the present application, a brief introduction to relevant application scenarios is first given.

[0041] Foldable screen device: A foldable screen device is a device that uses bendable parts such as hinges and flexible screens to achieve a foldable screen display. Since foldable screen devices can increase the scene display size of game scenes and improve the convenience of game operations, more and more users choose to operate games based on foldable screen devices.

[0042] The folding screen device 100 used in this application includes an inner screen and an outer screen. The screen size of the inner screen is different from the screen size of the outer screen. In actual use, the screen size of the inner screen is larger than the screen size of the outer screen. The inner screen is a folding screen, that is, the inner screen can be folded to form two screens. For example, the folding screen can be folded along a folding edge or a folding axis to form a first split screen and a second split screen. When the folding screen is in the unfolded state, it can form a complete display screen.

[0043] A folding screen that can be folded outward is referred to as an outward folding screen, and a folding screen that can be folded inward is referred to as an inward folding screen. For example, a folding screen that can form a first split screen and a second split screen. After the outward folding screen is folded, the first split screen and the second split screen are opposite to each other. After the inward folding screen is folded, the first split screen and the second split screen are opposite to each other.

[0044] In one possible implementation, see Figure 1 , is a schematic diagram of a fully unfolded longitudinal folding screen. The longitudinal folding screen is an inner screen that can be folded along the folding edge according to Figure 1 The direction 11a and 11b shown in (a) are folded to form Figure 1 The first split screen A and the second split screen B are in a semi-folded state as shown in (b) of FIG. At this time, the folding screen device 100 can display the game scene content on the first split screen A and the second split screen B. The vertical folding screen can be folded along the folding edge according to Figure 1 The directions 12a and 12b shown in (b) are further folded to form Figure 1 (c) shows the first split screen A and the second split screen B in the fully folded state. The first split screen A and the second split screen B are opposite to each other and are invisible to the user. At this time, the outer screen C of the folding screen device 100 displays the game scene content and is visible to the user.

[0045] for Figure 1 In the folding screen device shown, the folding screen switches its state, for example, the folded state switches to the unfolded state, and the display position of the GUI switches from the outer screen to the inner screen; the unfolded state switches to the folded state, and the display position of the GUI switches from the inner screen to the outer screen.

[0046] In the embodiment of the present application, the angle α between the first split screen A and the second split screen B of the folding screen device ranges from [0°, 180°]. If the folding screen is in a fully folded state, α∈[0°, P1], if the folding screen is in a semi-folded state, α∈[P1, P2], and if the folding screen is in an unfolded state, α∈[P2, 180°]. 0°<P1<P2<180°. P1 and P2 are preset thresholds, which can be set by the user as needed.

[0047] In actual use, the folding screen includes two states: horizontal state and vertical state. The horizontal state means that the screen has a horizontal folding edge, and the vertical state means that the screen has a vertical folding edge. The horizontal folding edge refers to the folding edge parallel to the horizontal axis in the screen coordinate system, and the vertical folding edge refers to the folding edge parallel to the vertical axis in the screen coordinate system.

[0048] Example description: For Figure 1 The folding screen shown in (a) is in the vertical screen state of the inner screen, that is, the folding screen is in the unfolded state and in the vertical screen state. The folding screen shown in (c) is in the vertical screen state of the inner screen, that is, the screen is in the vertical screen and in the folded state.

[0049] The folding screen device 100 provided in the embodiment of the present application is only a schematic representation. The example of the present application can also be other folding screen devices. For example, the inner screen folding screen of an electronic device can be folded to form three split screens, etc.

[0050] The embodiments of the present application are mainly used in game scenarios, that is, the GUI of the game is displayed by the folding screen device 100, and the user touches the GUI of the folding screen device 100 to control the roulette wheel to perform game operations.

[0051] See also Figure 2 , a schematic diagram of a game scene when the inner screen is in a vertical state is provided for an embodiment of the present application. At this time, the inner screen of the electronic device (the outer screen is invisible) is a GUI that displays the game scene, and the inner screen is in a vertical state.

[0052] The game scene includes a wheel 21 and a virtual character 22 corresponding to the user in the GUI. The user operates the wheel 21 to select a movement direction, and the virtual character 22 moves in the selected movement direction.

[0053] In one achievable manner, at the current moment, the user's touch position is touch point 23, and the obtained touch direction 25 (not actually displayed in the game scene in the GUI) is the lower right. Touch direction 25 is the user's operation direction, which points from the touch point of the previous frame to the touch point of the current frame.

[0054] The touch direction 25 can also be represented by the direction vector of the touch point. For example, the touch direction of the image frame can be represented by the direction vector of the touch point of the image frame, and the touch direction of the current frame can be represented by the direction vector of the touch point of the current frame. The direction vector of the touch point of the current frame starts from the touch point of the previous frame of the current frame and ends at the touch point of the current frame.

[0055] For example, in the screen coordinate system XOY, the X axis is the horizontal axis, the Y axis is the vertical axis, the coordinates of the touch point in the previous frame of the current frame are (x2, y2), and the coordinates of the touch point in the current frame are (x3, y3), then the direction vector of the touch point in the current frame can be expressed as (x3-x2, y3-y2).

[0056] like Figure 2 As shown, the wheel 21 is located in the lower left area of ​​the GUI. Different positions on the wheel 21 have different directions. When the user's touch position is at the current frame touch point 23, a touch reporting point 24 is displayed on the wheel 21, and the direction represented by the touch reporting point 24 at the current position is the lower left of the screen.

[0057] The touch point 24 is used to indicate the direction of the wheel under the touch point 23 at the current moment, that is, to indicate the movement direction of the virtual character on the image UI. That is, the direction represented by the touch point 24 is the direction of the wheel. Figure 2 The wheel direction shown is the same as the touch direction of the touch point.

[0058] The direction of the wheel can be represented by a direction vector of the wheel direction. For example, the direction of the wheel of the image frame can be represented by a direction vector of the wheel direction of the image frame, and the direction of the wheel of the current frame can be represented by a direction vector of the wheel direction of the current frame.

[0059] The starting point of the direction vector of the wheel direction is the center point of the wheel 21, and the end point is the touch reporting point. Exemplary description: In the screen coordinate system, the coordinates of the center point of the wheel are (x0, y0), and the coordinates of the touch reporting point 24 are (x1, y1), then the direction vector of the wheel direction is (x1-x0, y1-y0).

[0060] It is worth noting that the center point of the roulette wheel is a moving point, and the center point of the roulette wheel changes as the position of the roulette wheel changes.

[0061] It is understandable that the position of the touch point corresponds to the touch direction of the touch point. Different touch directions will obtain different touch point positions. For example, when the touch direction is from A to B, the position M of the touch point obtained is different from the position N of the touch point obtained when the touch direction is from B to A.

[0062] In actual use, in order to ensure the user operation experience, the current frame wheel direction indicated by the touch reporting point presented on the GUI should be consistent with the touch direction of the current frame.

[0063] However, when performing touch operations on the GUI interface, when the folding screen switches state, such as switching from a folded state to an unfolded state, or from an unfolded state to a folded state, the direction of the current frame wheel in the GUI may be inconsistent with the touch direction of the current frame, resulting in a poor user operation experience.

[0064] For example, Figure 2 The folding screen shown is switched to the folded state, and the Figure 3 The game scene diagram when the outer screen is in horizontal mode is shown in the figure. At this time, the inner screen is invisible to the user, and the outer screen C displays the game scene in horizontal mode. Figure 2 The game scene in the expanded state shown, Figure 3 The touch direction 25 is inconsistent with the direction of the wheel, and the user's operating experience is poor.

[0065] In the specific application process of the game scene, the folding screen changes its form specifically including: Figure 4 The outer screen horizontal state is switched to the inner screen vertical state. Figure 5 The outer screen horizontal state shown is switched to the inner screen horizontal state. Figure 6 The inner screen landscape state is switched to the outer screen landscape state and Figure 7 The inner screen portrait state is switched to the outer screen landscape state.

[0066] Figure 4 and Figure 7 , the touch points presented by the GUI are all in the upper right corner of the wheel, and the wheel direction before switching is consistent with the touch direction of the touch point, both in the upper right corner. Figure 4 and Figure 7 In the switching state shown, when the user still executes the touch direction corresponding to the touch point shown in the figure, the wheel direction after switching is inconsistent with the touch direction of the touch point. Figure 5 and Figure 6 In the switching state shown, the direction of the wheel remains unchanged after the switching. When the touch point executed by the user before the switching is different from the touch point executed after the switching, the direction of the wheel before the switching is the same as the touch direction, and the direction of the wheel after the switching is different from the touch direction of the touch point.

[0067] The following is an analysis of the reasons why the touch direction and the wheel direction are inconsistent when the folding screen switches between different forms.

[0068] First, a software structure diagram of the existing folding screen device 100 is introduced.

[0069] See also Figure 8 , which is a software structure block diagram of the folding screen device 100 in the related scheme.

[0070] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0071] The application layer can include a series of application packages. Figure 8 As shown, including game applications, etc.

[0072] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0073] like Figure 8 As shown, the application framework layer may include a display management service (DisplayMangerService, DMS), an input management service (InputManagerService, IMS), a window manager (WindowManagerService, WMS), and a content manager, etc.

[0074] WMS is used for layout management, managing window size and position, and the order of display on the screen. It is also used to manage window status, such as whether the window is visible, etc. It is also used to process input events from the device together with IMS, such as touch events.

[0075] When the user performs a touch operation on the screen, IMS can obtain the coordinates of the touch point in the screen coordinate system and report it to WMS. WMS processes the input events from the device, such as displaying the movement direction of the virtual character corresponding to the touch direction on the GUI interface, displaying the touch point corresponding to the touch position on the GUI, and the touch reporting point under the current touch point, etc.

[0076] WMS is also used to render windows by calling the layer compositor SurfaceFlinger to interact with hardware drawing engines, such as graphics processing unit (GPU) drawing and hardware compositor (HWCcomposer, HWC), to render windows on the screen.

[0077] DMS is used to manage the life cycle of the display. It determines how to control its logical display based on the currently connected physical display device and sends notifications to the system and applications when the state changes. DMS is also used for the power mode of multiple displays.

[0078] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0079] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0080] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0081] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0082] The system library may include multiple functional modules, such as the system service module SurfaceFlinger, the 3D graphics processing library, etc.

[0083] SurfaceFlinger is used to synthesize display layers and finally display the synthesized results on the GUI. SurfaceFlinger includes GPU synthesis and HWC synthesis. GPU synthesis means that SurfaceFlinger calls the GPU to perform GPU rendering and GPU synthesis on the display layer. HWC synthesis means that SurfaceFlinger calls HWC to perform HWC hardware synthesis and display.

[0084] The 3D graphics processing library is used to implement 3D graphics drawing, full image rendering, synthesis, and layer processing. The 3D graphics processing library includes the loading module libEGL and the libEGL search module LibEGL-FuncTable. The game application App obtains the target function corresponding to the rendering instruction and rendering parameters from LibEGL-FuncTable, obtains the target function interface from the function pointer list, and finally finds the corresponding function from libEGL to implement screen rendering.

[0085] The kernel layer is the layer between hardware and software. The kernel layer includes at least GPU driver, HWC driver, display driver and TP IC driver.

[0086] by Figure 2 Take the game scene shown as an example:

[0087] When the game is started or in the application process, the game application continuously sends rendering instructions and rendering parameters. WMS performs layout management and manages window status according to the issued rendering instructions and rendering parameters, and finds the corresponding SurfaceFlinger from libEGL according to libEGL-FuncTable and the function pointer list, performs layer synthesis, and finally displays the synthesis results on the GUI.

[0088] In addition, when the user touches the position indicated by the touch point 23 on the GUI, the IMS obtains the coordinates of the touch point 23 and reports the coordinates to the WMS. The WMS performs GUI display according to the coordinates of the touch point 23, rendering instructions and rendering parameters, and displays the touch point 23 and the touch report point corresponding to the touch point 23 on the UI interface. Figure 2 Schematic diagram of the game scene shown.

[0089] for Figure 8 The folding screen device shown in the figure has a slow response speed when the inner screen switches to the outer screen. Within a certain period of time, the screen coordinate system of the wheel after the switch is the same as the screen coordinate system of the wheel before the switch, that is, the direction of the wheel displayed in the GUI interface before and after the switch is the same. Therefore, when the user executes Figure 5 and Figure 6 When the folding screen form shown is switched, the touch direction is inconsistent with the wheel direction.

[0090] against Figure 4 There are two possibilities for the actual process of switching the folding screen form shown in the figure. Fig. 9 As shown, it is a schematic diagram of the inconsistency principle. Fig. 9 The outer screen in the horizontal state shown in (a) is rotated 90° to form an outer screen in the vertical state, as shown in FIG. Fig. 9 As shown in (c) in the figure, at this time, the wheel direction, the wheel and the touch point are all rotated 90°, and the wheel direction is consistent with the touch direction. Fig. 9 The screen shown in (c) is expanded again, that is, the form changes, and we get Fig. 9 In the vertical screen state of the inner screen shown in (b), in the GUI, the direction of the wheel is the same as the direction of the wheel shown in (c). When the user still performs a touch operation at the illustrated position, the touch direction is different from the direction of the wheel.

[0091] Another is Fig. 9 The outer screen horizontal screen state shown in (a) is unfolded to form the inner screen horizontal screen state, such as Fig. 9 As shown in (d) in the figure, the direction of the roulette wheel is Fig. 9 The direction of the wheel is the same as that shown in (a) in the figure. Fig. 9 The inner screen in the horizontal state shown in (d) is rotated 90° again, and the direction of the wheel is rotated 90°. When the user still performs a touch operation at the illustrated position, the touch direction is different from the direction of the wheel. Fig. 9 GUI shown in (b) in .

[0092] against Figure 7 There are two possibilities for the actual process of switching the folding screen form shown in the figure. Fig.10 As shown, it is another schematic diagram of the switching state inconsistency principle.

[0093] in, Fig.10 The inner screen vertical screen state shown in (a) is rotated 90° to form the inner screen horizontal screen state, as shown in FIG. Fig.10 As shown in (c) in the figure, at this time, the wheel direction, the wheel and the touch point are all rotated 90°, and the wheel direction is consistent with the touch direction. Fig.10 The screen folds as shown in (c), that is, the morphology switches, and we get Fig.10 In the vertical screen state shown in (b) of the figure, in the GUI, the direction of the wheel is Fig.10 When the user still performs a touch operation at the illustrated position, the touch direction is different from the wheel direction.

[0094] Another is Fig.10 The inner screen is in a vertical state as shown in (a) of FIG. , and is folded to form an outer screen in a vertical state, as shown in FIG. Fig.10 As shown in (d) in the figure, the direction of the roulette wheel is Fig.10 The direction of the wheel in (a) is the same, and then rotated 90°, the direction of the wheel rotates 90°, and we get Fig.10 When the user still performs a touch operation at the illustrated position, the touch direction is different from the wheel direction.

[0095] In view of the above technical problems, the present application provides a method for displaying the direction of a wheel. If the folding screen switches its form at the current moment, such as switching from the inner screen portrait state to the outer screen landscape state, or from the outer screen landscape state to the inner screen portrait state, the direction vector of the current frame wheel direction and the direction vector of the current frame touch point are obtained. The direction vector of the current frame wheel direction is calibrated so that the calibrated current frame wheel direction is consistent with the current frame touch direction, and the position of the current frame touch point is corrected according to the calibrated direction vector of the current frame wheel direction, so as to display the corrected current frame touch point in the GUI. In this way, the touch direction of the current frame touch point presented on the GUI is consistent with the direction indicated by the current frame touch point, thereby improving the user operation experience.

[0096] It is worth noting that the position and size of the above-mentioned wheel are only schematic representations, and those skilled in the art can adjust them as needed. The above-mentioned application scenarios, folding screen devices, and form switching methods are only schematic representations. For other application scenarios, folding screen devices, and form switching methods, the display method of the wheel direction provided in this application is also applicable, and the application principle is the same as Figure 2-3 The application scenarios shown are the same as the folding screen. Figure 2-3 The game scene shown is used as an example for explanation.

[0097] The following is a method for displaying the direction of a roulette wheel provided by the present application, combined with Figure 11 to Figure 13 Make an introduction.

[0098] First, the software structure of the folding screen device 100 provided in an embodiment of the present application is introduced.

[0099] See also Fig.11 This is a software structure block diagram of the folding screen device according to an embodiment of the present application.

[0100] Relative to Figure 8 The software structure block diagram of the folding screen device shown in the figure shows that the folding screen software device of the present application adds a scene recognition module in the application framework layer, and adds a rendering instruction interception module and a direction calibration module in the system library.

[0101] The rendering instruction interception module is located between libEGL-FuncTable and LibEGL. It is used to replace the function pointer list. First, it finds the interface corresponding to the rendering instruction and rendering parameters, and calls LibEGL according to the interface to complete the screen rendering. After the rendering is completed, the layer to be displayed is sent to SurfaceFlinger for layer merging and display, so as to display the image frame corresponding to the rendering instruction and rendering parameters on the GUI.

[0102] When the scene recognition module recognizes that the folding screen device has switched its form, the rendering instruction interception module is triggered to find the direction calibration module and perform the current frame wheel direction calibration so that the calibrated current frame wheel direction is the same as the current frame touch direction.

[0103] The direction calibration module obtains the current frame wheel direction and the direction vector of the current frame wheel direction according to the rendering instructions and rendering parameters sent by the rendering instruction interception module, and obtains the current frame touch direction and the direction vector of the touch point from the IMS. It is also used to obtain the position of the touch point in the current frame corresponding to the direction vector of the calibrated wheel direction, and send the position of the touch point in the current frame to the IMS, which reports it to the WMS. The WMS calls LibEGL-FuncTable again according to the obtained rendering instructions, rendering parameters, touch points and corrected touch point positions, and sends the rendering instructions, rendering parameters, touch points and corrected touch point positions to the rendering instruction module. The rendering instruction interception module calls LibEGL, triggering SurafaceFlinger to re-synthesize and obtain the image frame for display.

[0104] In an implementable manner, the direction calibration module further includes a UI separation submodule, a direction verification submodule and a direction calibration submodule, which respectively execute the functions of obtaining the current frame wheel direction, verification and calibration.

[0105] See also Fig.12 , is an interactive diagram of a method for displaying the direction of a roulette wheel provided in an embodiment of the present application. The method specifically includes:

[0106] S1: The rendering instruction interception module obtains the current frame rendering instructions and rendering parameters.

[0107] When the game is started or running, the GUI that displays the game is a dynamic GUI. The game application needs to continuously send rendering instructions and rendering parameters to draw, render, and synthesize interface image frames. The frequency of sending rendering instructions and rendering parameters is related to the screen refresh rate.

[0108] The screen refresh rate refers to the number of times the screen is refreshed per second, measured in Hertz (hz). The higher the screen refresh rate, the higher the frame rate it supports, which means the more frames are transmitted per second, and the smoother the GUI display. The corresponding download frequency is also higher.

[0109] In an embodiment of the present application, the rendering instruction includes a rendering wheel instruction. The rendering wheel instruction includes a rendering wheel image instruction and a rendering information configuration instruction for configuring the wheel during the rendering process. In addition, the rendering instruction may also include a rendering image instruction, a rendering object texture instruction, a rendering object shading instruction, and a rendering information configuration instruction for configuring other objects during the rendering process.

[0110] The rendering parameters include the color, pattern and design of the roulette wheel image, and may also include the color, pattern and design of other objects.

[0111] In an embodiment of the present application, the rendering instructions and rendering parameters generated by the game application are sent to the rendering instruction interception module, and the rendering instruction interception module sends the rendering instructions and rendering parameters to libEGL for screen rendering.

[0112] S2: The scene recognition module determines whether the folding screen switches form. If so, execute S3; if not, execute S4.

[0113] The switching content is used to indicate whether the current folding screen has undergone a state switching, including state switching and state not switching.

[0114] The state switching is used to indicate switching from the folded state to the unfolded state, or from the unfolded state to the folded state. The folded state includes a fully folded state and a semi-folded state, and the unfolded state refers to the fully unfolded state defined in the embodiment of the present application.

[0115] The scene recognition module can obtain the current switching state of the folding screen in a variety of ways.

[0116] For example, the scene recognition module obtains the angle α between the first split screen A and the second split screen B of the folding screen. If the value of α at the current moment changes from α∈[0°, P1] to α∈[P2, 180°], or from α∈[P1, P2] to α∈[P2, 180°], the folding screen switches its state at the current moment, and the switching content is switching from the folded state to the unfolded state.

[0117] If the value of α at the current moment changes from α∈[P2, 180°] to α∈[0°, P1], or α∈[P1, P2], the folding screen switches its state from the expanded state to the folded state.

[0118] For example, the scene recognition module can determine whether the folding screen has switched form at the current moment based on the power mode sent by the DMS. Figure 3 For the folding screen device shown, if the outer screen is powered on and then turned off, and the inner screen is powered off and then turned on, the folding screen at the current moment switches from the unfolded state to the folded state. If the outer screen is powered off and then turned on, and the inner screen is powered on and then turned off, the folding screen at the current moment switches from the unfolded state to the folded state.

[0119] In addition, the switching time is the display time of the folding screen device at the current time. For example, the folding screen device currently displays July 5, 2023 19; 49; 00, and the switching time is July 5, 2023 19; 49; 00, which can be expressed as 20230705194900.

[0120] The present application may also obtain the current switching content and switching time through other methods, which are not specifically limited in the present application.

[0121] When it is determined that the folding screen has switched its form, the direction of the wheel presented by the folding screen device GUI is inconsistent with the touch direction and needs to be calibrated.

[0122] S3: The scene recognition module sends the acquired current switching content and switching time of the folding screen to the rendering instruction interception module.

[0123] The scene recognition module sends the switching content and the switching time to the rendering instruction interception module, and the content manager saves the switching time and the wheel calibration information under the switching content. The wheel calibration information includes the consistency between the touch direction and the wheel direction of multiple image frames within the preset refresh time.

[0124] S4: The scene recognition module sends a screening instruction to the rendering instruction interception module.

[0125] In the embodiment of the present application, at the current frame refresh moment, if the scene recognition module has not switched, a filtering instruction is sent to the rendering instruction interception module.

[0126] S5: The rendering instruction interception module selects the target switching moment from the moment when the folding screen has switched its form, and determines whether there is an inconsistency between the touch direction of the image frame and the wheel direction of the image frame. If so, execute S6, otherwise stop calibration.

[0127] After receiving the filtering instruction, the rendering instruction interception module filters the target switching time. The target switching time is the time when the folding screen switches its form closest to the current time.

[0128] Exemplary explanation: It is known that the folding screen has switched its form at time A1, time A2, time A3 and time A4. The current time is time A0. The time of the form switching that has occurred is arranged from large to small (or small to large) according to the time length from time A0, and A3, A1, A4, A2 are obtained. The target switching time is time A2.

[0129] The scene recognition module obtains the target switching time and the mobile wheel calibration information corresponding to the target switching time from the content manager, and determines whether there is inconsistency between the image frame touch direction and the image frame wheel direction.

[0130] It is understandable that if the image frame touch direction and the image frame wheel direction are inconsistent at the target switching moment, calibration is not continued at the current moment, and the acquired current frame touch direction and the current frame wheel direction may also be inconsistent. In order to ensure the user operation experience, it is necessary to further calibrate the current frame wheel direction.

[0131] The rendering instruction interception module stops calibration and sends the current rendering instruction and rendering parameters only to LibEGL for screen rendering.

[0132] S6: The rendering instruction interception module sends the current frame rendering instruction and rendering parameters to the direction calibration module.

[0133] The rendering instruction interception module sends the current frame rendering instruction and rendering parameters to the direction calibration module to perform wheel direction calibration.

[0134] S7: The direction calibration module obtains the direction vector of the wheel direction in the current frame.

[0135] The direction calibration module obtains the direction vector of the wheel direction of the current frame according to the rendering instruction and rendering parameters of the current frame.

[0136] In an optional implementation, the direction calibration module separates the roulette rendering instructions and roulette rendering parameters from the current frame rendering instructions and rendering parameters, calls libEGL and SurfaceFlinger to draw a roulette UI with touch reporting points, and determines the direction vector of the roulette direction of the current frame.

[0137] In an optional implementation, the direction vector of the current frame wheel direction may be obtained in the following manner.

[0138] The UI separation submodule in the direction calibration module obtains the direction vector of the wheel direction in the current frame, specifically:

[0139] Step 1: Draw the GUI to be displayed according to the rendering instructions and rendering parameters.

[0140] Among them, the GUI to be displayed is used to represent the game graphical interface to be displayed on the folding screen.

[0141] Optionally, before drawing the GUI to be displayed, it is necessary to turn off the depth detection and turn on the hybrid detection to ensure that the wheel UI with the touch reporting point is located at the top layer of the GUI to be displayed and is semi-transparent.

[0142] Optionally, when drawing a graphical interface to be displayed, the textures of various objects in the loaded GUI to be displayed are saved in a preset cache interval, such as the texture of a virtual character in a game scene, and the texture of a roulette wheel and the direction of the roulette wheel.

[0143] Step 2: Separate the wheel UI with touch reporting points from the GUI to be displayed based on the texture of the loaded wheel and the direction of the wheel.

[0144] In the embodiment of the present application, the texture of the loaded roulette wheel and the roulette wheel direction is obtained from the preset buffer interval, and the roulette wheel rendering instruction is separated. According to the separated roulette wheel rendering instruction, a roulette wheel UI with touch point reporting can be obtained.

[0145] Furthermore, according to the corresponding position of the loaded frame buffer and in combination with the separated roulette rendering instructions, a roulette UI with touch reporting points can be obtained more accurately.

[0146] Step 3: According to the separated wheel UI with touch reporting points, obtain the direction vector of the wheel direction in the current frame.

[0147] After separating the roulette UI with touch reporting points, the UI separation module continuously sends UI instructions to the folding screen to display the separated roulette UI with touch reporting points on the folding screen. Using the roulette UI with touch reporting points, the direction vector of the roulette direction of the current frame can be obtained.

[0148] Example description: See Fig.13 , is a schematic diagram of a detached wheel UI with touch-sensitive reporting points displayed on a folding screen. Figure 3 The folding screen device shown is a schematic diagram of a roulette UI with touch reporting points separated when the folding screen switches from the unfolded state to the folded state. In the roulette UI with touch reporting points, the coordinates of the roulette center point 91 in the screen coordinate system (x0', y0') and the coordinates of the touch reporting point 92 in the current frame (x1', y1') are obtained, and the direction vector of the roulette direction in the current frame is (x1'-x0', y1'-y0').

[0149] It should be noted that the UI instructions end at the end of the multi-channel rendering renderpass, or before the current frame is sent to the display.

[0150] The present application may also obtain the direction vector of the current frame wheel direction by other methods, and the present application does not specifically limit the obtaining method.

[0151] S8: In response to the user performing a touch operation, the IMS obtains the touch point coordinates of the current frame.

[0152] Optionally, when the user performs a touch operation, the TP IC generates a touch signal, such as a capacitance change signal. The TPIC sends the generated touch signal to the filtering module for filtering, and sends the filtered touch signal to the coordinate processing module for processing to generate the current touch point coordinates (x3, y3).

[0153] S9: The IMS sends the acquired touch point coordinates of the current frame to the direction calibration module.

[0154] S10: The direction calibration module determines the direction vector of the touch point in the current frame.

[0155] When the user performs a touch operation on the folding screen, the direction calibration module obtains the touch point coordinates of the current frame from the IMS, and obtains the direction vector of the touch point of the current frame based on the acquired touch point coordinates of the current frame and the touch point coordinates of the previous frame.

[0156] Optionally, the direction verification submodule in the direction calibration module obtains the touch point coordinates (x3, y3) of the current frame from the IMS, and obtains the touch point coordinates (x2, y2) of the previous frame from the cache area of ​​the cached touch point coordinates of the previous frame, then the direction vector of the touch point of the current frame is (x3-x2, y3-y2).

[0157] It is worth noting that S8-S10 and step S7 can be performed simultaneously, or S7 can be performed first and then S8-S10, or S8-S10 can be performed first and then S7.

[0158] S11: The direction calibration module calibrates the direction vector of the wheel direction of the current frame, and obtains the corrected position of the touch reporting point of the current frame.

[0159] In the embodiment of the present application, the direction calibration module calibrates the direction vector of the wheel direction of the current frame so that the calibrated wheel direction of the current frame is consistent with the touch direction of the current frame.

[0160] The calibrated current frame wheel direction is consistent with the current frame touch direction, which can be determined from the calibrated current frame touch point direction vector (x3-x2, y3-y2) and the current frame wheel direction direction vector (x1'-x0', y1'-y0').

[0161] Exemplarily: if (x1′-x0′) / (x3-x2)=(y1′-y0′) / (y3-y2)=k, where k is any number not equal to 0, it is determined that the calibrated wheel direction of the current frame is consistent with the touch direction of the current frame.

[0162] Exemplarily, the third target direction angle between the direction vector of the current frame touch point and the direction vector of the current frame wheel direction after calibration is not greater than a preset angle threshold, and the direction vector of the current frame touch point and the direction vector of the current frame wheel direction after calibration are not symmetrical along the target direction, and the target direction is parallel to any coordinate axis direction of the screen coordinate system, and it is determined that the calibrated current frame wheel direction is consistent with the current frame touch direction.

[0163] First, let's talk about the timing of calibration. Optionally, calibration can be performed at any frame to ensure that the wheel direction in the current frame is consistent with the touch direction in the current frame. However, this method of detecting each frame takes up a lot of CPU memory, runs slowly, and causes frame drops.

[0164] Furthermore, in order to improve the running speed and avoid frame loss, the direction check submodule checks whether the wheel direction of the current frame and the touch direction of the current frame meet the preset inconsistency condition. If they meet, calibration is performed. If not, calibration is terminated.

[0165] The preset inconsistency condition is used to indicate that the current frame wheel direction and the current frame touch direction are different. The specific preset inconsistency condition is that the first target direction angle between the direction vector of the current frame wheel direction and the direction vector of the current frame touch point is greater than the preset angle threshold, or the first target direction angle is not greater than the preset angle threshold, but the direction vector of the current frame wheel direction and the direction vector of the current frame touch point are symmetric about the target direction. The target direction is parallel to any coordinate axis of the screen coordinate system.

[0166] Example explanation: Assume that the screen coordinate system is XOY, the horizontal axis is the X axis, and the vertical axis is the Y axis. The direction vector of the current frame wheel direction is (x, y), and the direction vector of the current frame touch point is (xc, yc). If x=xc, y=-yc, then the direction vector of the current frame wheel direction and the direction vector of the current frame touch point are symmetric about the X axis. If x=-xc, y=yc, then the direction vector of the current frame wheel direction and the direction vector of the current frame touch point are symmetric about the Y axis. That is, the direction vector of the current frame wheel direction and the direction vector of the current frame touch point are mirrored about the target direction. At this time, the current frame wheel direction and the current frame touch direction are inconsistent.

[0167] Therefore, in an optional implementation, the judgment can be made in the following manner:

[0168] Step 1: Determine a first target direction angle between a direction vector of the wheel direction in the current frame and a direction vector of the touch point in the current frame.

[0169] For example, assuming that the direction vector of the wheel direction in the current frame is (x, y), and the direction vector of the touch point in the current frame is (xc, yc), then the first target direction angle β can be obtained.

[0170] Step 2: Determine whether the first target direction angle is greater than a preset angle threshold, if so, determine that the wheel direction of the current frame is consistent with the touch direction of the current frame. If not, execute step 3.

[0171] For example, assume that the direction vector of the wheel direction in the current frame is (x, y), and the direction vector of the touch point in the current frame is (xc, yc), then the first target direction angle is β. Assume that the preset angle threshold is 15°, if β>15°, then the wheel direction in the current frame is inconsistent with the touch direction in the current frame.

[0172] Step 3: Determine whether the direction vector of the wheel direction in the current frame and the direction vector of the touch point in the current frame are symmetrical about the target direction. If they are symmetrical, the wheel direction in the current frame and the touch direction in the current frame are inconsistent. Otherwise, they are consistent.

[0173] Exemplary description: for the embodiment of step 2, if β<15°, and the direction vector of the wheel direction in the current frame and the direction vector of the touch point in the current frame are asymmetric about the target direction, then the wheel direction in the current frame is consistent with the touch direction in the current frame.

[0174] Optionally, the embodiment of the present application may also determine whether the wheel direction in the current frame is consistent with the touch direction in the current frame by other means.

[0175] For example, for the direction vector (x, y) of the wheel direction in the current frame and the direction vector (xc, yc) of the touch point in the current frame, if x / xc=y / yc, the touch direction in the current frame is consistent with the wheel direction in the current frame.

[0176] The embodiment of the present application can be calibrated in the following manner.

[0177] Optionally, the direction calibration submodule may calibrate the direction of the current frame wheel according to the first target direction angle calibration.

[0178] In one achievable manner, the current frame touch reporting point is rotated by a preliminary calibration value around the center of the wheel according to a preset preliminary rotation direction to obtain a direction vector of the preliminary calibration wheel direction and a preliminary calibration touch reporting point. If the second target direction angle between the current frame touch direction and the direction vector of the preliminary calibration wheel direction is greater than the first target direction angle, a first calibration value is determined. The first calibration value is the sum of the first target direction angle and the preliminary calibration value. The preliminary calibration touch reporting point is rotated by a first calibration value around the center of the wheel according to a direction opposite to the preliminary rotation direction to calibrate the direction vector of the current frame wheel direction.

[0179] If the second target direction angle between the current frame touch direction and the direction vector of the preliminary calibration wheel direction is less than the first target direction angle, determine the second calibration value. The second calibration value is the difference between the first target direction angle and the preliminary calibration value. The preliminary calibration touch point is rotated around the wheel center according to the preliminary rotation direction by the second calibration value to calibrate the direction vector of the current frame wheel direction.

[0180] In one achievable method, if the direction vector of the touch point in the current frame is symmetrical with the direction vector of the wheel direction in the current frame about the target direction, the direction vector of the wheel direction in the current frame is directly adjusted to make the direction vector of the wheel direction in the current frame parallel to the direction vector of the touch point in the current frame. For example, if the direction vector of the wheel direction in the current frame is (x, y) and the direction vector of the touch point in the current frame is (-x, y), then x can be directly negated.

[0181] The present application may also calibrate the direction vector of the current frame wheel direction by other methods, which are not specifically limited in the present application.

[0182] The display position of the touch reporting point of the current frame in the GUI is corrected using the calibrated direction vector of the wheel direction of the current frame.

[0183] For example, if the wheel direction of the current frame after calibration is (-x, y), and the coordinates of the center point of the wheel are (x0', y0'), then the corrected coordinates of the current touch reporting point are (-x+x0', y+y0').

[0184] S12: The direction calibration module reports the corrected display position of the touch reporting point in the current frame to the IMS.

[0185] S13: The IMS reports the corrected display position of the touch reporting point of the current frame to the WMS for display.

[0186] WMS calls LibEGL-FuncTable again according to the corrected display position of the touch point in the current frame, the position of the touch point in the current frame, rendering instructions and rendering parameters, and sends the rendering instructions, rendering parameters, touch points and the corrected touch point position to the rendering instruction module. The rendering instruction interception module calls LibEGL and triggers SurafaceFlinger to re-synthesize and obtain the image frame for display.

[0187] In addition, optionally, when the direction calibration module detects that the touch direction of the current frame touch point is consistent with the current frame wheel direction, the verification is stopped, and the display position of the current frame touch point is directly sent to the IMS to execute S13 operation.

[0188] In addition, optionally, the touch direction does not switch form after a preset time after detecting that the folding screen has switched form, and the scene recognition module stops sending instructions to the rendering instructions, or switches the content and switching time, and no longer performs the calibration operation.

[0189] See also Fig.14 , is a schematic diagram of a game scene when a folding screen switches its form, which is provided in an embodiment of the present application. Fig.13 (a) is the GUI before switching, and the GUI is in the horizontal screen state. At this time, the wheel direction 13a and the touch direction 13b presented by the GUI are consistent. Fig.13 (b) in the figure is the GUI after switching. At this time, the GUI is in the inner-screen horizontal state. At this time, the wheel direction 13a and the touch direction 13b presented by the GUI are consistent. Fig.13 (c) in the figure is another GUI after switching. At this time, the GUI is in the inner-screen vertical state. At this time, the wheel direction 13a and the touch direction 13b presented by the GUI are consistent.

[0190] It can be seen from this that an embodiment of the present application provides a method for displaying the direction of a wheel. If the folding screen switches its form at the current moment, such as switching from a folded state to an unfolded state, or from an unfolded state to a folded state, the direction vector of the current frame wheel direction and the direction vector of the current frame touch point are obtained. The direction vector of the current frame wheel direction is calibrated so that the calibrated current frame wheel direction is consistent with the current frame touch direction, and the position of the current frame touch point is corrected according to the calibrated direction vector of the current frame wheel direction, so as to display the corrected current frame touch point in the GUI. In this way, the touch direction of the current frame touch point presented on the GUI is consistent with the direction indicated by the current frame touch point, thereby improving the user operation experience.

[0191] Furthermore, to ensure that the wheel direction calibration of the roulette wheel is successful, the next frame of the current frame can be used for verification. Specifically, the next frame touch direction of the current frame and the next frame wheel direction are obtained. If the next frame touch direction and the next frame wheel direction are inconsistent, the calibration is stopped. If the next frame touch direction and the next frame wheel direction are consistent, the corrected current frame touch point continues to be displayed.

[0192] The method for displaying the direction of the wheel provided in the embodiment of the present application can be applied to mobile phones with foldable screens, laptop computers, wearable electronic devices (such as smart watches), tablet computers, augmented reality (AR) devices, virtual reality (VR) devices, and vehicle-mounted devices, etc.

[0193] Fig.15 A schematic diagram of the structure of the folding screen device 100 is shown.

[0194] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0195] It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the folding screen device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0196] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), a controller, and / or a hardware synthesizer (HWC composer, HWC). Different processing units may be independent devices or integrated into one or more processors. For example, the HWC may be integrated on a system chip.

[0197] The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. Optionally, in the embodiment of the present application, the controller can be a touch panel integrated circuit (TP IC) for generating touch signals.

[0198] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0199] In the embodiment of the present application, the processor can identify whether the folding screen has switched its form at the current moment, and if the folding screen has switched its form at the current moment, obtain the direction vector of the current frame wheel direction and the direction vector of the current frame touch point. Calibrate the direction vector of the current frame wheel direction so that the calibrated direction vector of the current frame wheel direction is parallel to the direction vector of the current frame touch point, and correct the current frame touch reporting point according to the calibrated direction vector of the current frame wheel direction, so as to display the corrected current frame touch reporting point in the graphical user interface.

[0200] The folding screen device 100 implements the display function through a GPU, a HWC, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor.

[0201] The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. The GPU is a general-purpose image processing device that can be used for compositing layers and completing other graphics processing tasks.

[0202] HWC is a dedicated image processing device used for layer synthesis and display.

[0203] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a flexible light-emitting diode (FLED), etc. In some embodiments, the folding screen device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0204] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the folding screen device 100, which is different from the position of the display screen 194.

[0205] The technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, etc., various media that can store program codes.

[0206] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for displaying the direction of a roulette wheel, It is characterized in that The graphical user interface GUI of the electronic device displays a roulette wheel, and the touch points on the roulette wheel are used to indicate the direction of the roulette wheel. The method includes: If the folding screen switches form at the current moment, obtain the direction vector of the wheel direction of the current frame and the direction vector of the touch point of the current frame, the starting point of the direction vector of the touch point of the current frame is the touch point of the previous frame of the current frame, and the end point is the touch point of the current frame, the starting point of the direction vector of the wheel direction of the current frame is the wheel center point of the wheel, and the end point is the touch reporting point of the current frame, the form switching includes switching from the folded state to the unfolded state, or from the unfolded state to the folded state, and the touch point is used to indicate the touch position of the user; Calibrate the direction vector of the current frame wheel direction so that the angle between the calibrated direction vector of the current frame wheel direction and the third target direction of the direction vector of the current frame touch point is not greater than a preset angle threshold, and the calibrated direction vector of the current frame touch point and the direction vector of the current frame wheel direction are not symmetrical along the target direction, and the target direction is parallel to any coordinate axis direction of the screen coordinate system; and correct the display position of the touch reporting point of the current frame according to the calibrated direction vector of the current frame wheel direction, so as to display the corrected wheel direction on the GUI.

2. The method according to claim 1, It is characterized in that The calibrating the direction vector of the current frame wheel direction includes: Determine a first target direction angle between a direction vector of the wheel direction in the current frame and a direction vector of the touch point in the current frame; When the first target direction angle is greater than a preset angle threshold, calibrating the direction vector of the current frame wheel direction; When the first target direction angle is not greater than a preset angle threshold, and the direction vector of the current frame touch point and the direction vector of the current frame wheel direction are symmetrical along the target direction, calibrate the direction vector of the current frame wheel direction. When the direction vector of the current frame touch point and the direction vector of the current frame wheel direction are symmetrical along the target direction, the target direction is parallel to any coordinate axis direction of the screen coordinate system.

3. The method according to claim 2, It is characterized in that The step of obtaining the direction vector of the current frame wheel direction includes: Separate the roulette UI with touch reporting points from the GUI to be displayed according to the rendering instructions and rendering parameters generated by the game application; According to the separated roulette wheel UI, a direction vector of the roulette wheel direction in the current frame is obtained.

4. The method according to claim 3, It is characterized in that The method of separating the roulette UI with touch-control reporting points from the GUI to be displayed according to the rendering instructions and rendering parameters generated by the game application program includes: When the depth detection is turned off and the hybrid detection is turned on, the GUI to be displayed is drawn according to the rendering instruction and the rendering parameters, so that the wheel with the touch reporting point is located at the top layer of the GUI to be displayed and is semi-transparent; The roulette wheel UI is separated from the GUI to be displayed according to the texture of the loaded roulette wheel and the roulette wheel direction.

5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: According to the power up and down state mode power mode, it is determined whether the folding screen has switched its form at the current moment, and the power mode records the power up and down state of each split screen in the folding screen.

6. The method according to claim 5, It is characterized in that When the folding screen includes an inner screen and an outer screen, determining whether the folding screen switches state at the current moment according to the power mode includes: When the power mode is that the inner screen switches from a power-on state to a power-off state, and the outer screen switches from a power-off state to a power-on state, it is determined that the folding screen switches its form at the current moment; When the power mode is that the inner screen switches from a power-off state to a power-on state, and the outer screen switches from a power-on state to a power-off state, it is determined that the folding screen undergoes a form switch at the current moment.

7. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: Obtaining the touch direction of the next frame and the wheel direction of the next frame of the current frame; When the touch direction of the next frame is inconsistent with the wheel direction of the next frame, the calibration is stopped; When the touch direction of the next frame is consistent with the wheel direction of the next frame, the corrected touch reporting point of the current frame is displayed on the GUI.

8. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: If the folding screen has not switched form at the current moment, a target switching moment is selected from the moments when the folding screen has switched form, and the target switching moment is the moment when the form switching occurs closest to the current moment; Acquire wheel calibration information at the target switching moment, wherein the wheel calibration information includes consistency between image frame touch directions and image frame wheel directions of multiple image frames within a preset refresh time; When the touch direction of the image frame is inconsistent with the wheel direction of the image frame, the direction vector of the wheel direction of the current frame and the direction vector of the touch point are obtained, and the direction vector of the wheel direction of the current frame is calibrated to make the calibrated wheel direction of the current frame consistent with the touch direction of the current frame, and the position of the touch reporting point of the current frame is corrected according to the calibrated direction vector of the wheel direction of the current frame.

9. The method according to any one of claims 1 to 4, It is characterized in that Obtaining the direction vector of the touch point in the current frame includes: In response to a user performing a touch operation on the folding screen, acquiring a touch signal; Filtering the touch signal, and obtaining the touch point coordinates of the current frame according to the filtered touch signal; According to the touch point coordinates of the current frame and the touch point coordinates of the previous frame of the current frame, a direction vector of the touch point of the current frame is obtained.

10. The method according to any one of claims 1 to 4, It is characterized in that The calibrating the direction vector of the current frame wheel direction includes: Rotate the current frame touch reporting point around the center of the wheel by a preliminary calibration value according to a preset preliminary rotation direction to obtain a direction vector of a preliminary calibration wheel direction and a preliminary calibration touch reporting point; When the second target direction angle between the current frame touch direction and the direction vector of the preliminary calibration wheel direction is greater than the first target direction angle, a first calibration value is determined, and the preliminary calibration touch reporting point is rotated around the wheel center by the first calibration value in the opposite direction to the preliminary rotation direction to calibrate the direction vector of the current frame wheel direction, wherein the first calibration value is the sum of the first target direction angle and the preliminary calibration value; When the second target direction angle between the current frame touch direction and the direction vector of the preliminary calibration wheel direction is smaller than the first target direction angle, a second calibration value is determined, and the preliminary calibration touch point is rotated around the wheel center according to the preliminary rotation direction by the second calibration value to calibrate the direction vector of the current frame wheel direction, and the second calibration value is the difference between the first target direction angle and the preliminary calibration value.

11. An electronic device, It is characterized in that The GUI of the electronic device displays a roulette wheel, and the touch points on the roulette wheel are used to indicate the direction of the roulette wheel. The electronic device includes a memory and a processor, and the memory is coupled to the processor; The memory stores a program, and when the program is executed by the processor, the electronic device executes the method according to any one of claims 1 to 10.