| CPC B60R 11/0264 (2013.01) [B60R 16/023 (2013.01); G06F 3/0362 (2013.01); G06F 3/0481 (2013.01); G06F 3/0485 (2013.01); G06F 3/04886 (2013.01); B60R 2011/0007 (2013.01)] | 19 Claims |

|
1. A control method, performed by a vehicle terminal, the vehicle terminal being provided with a touch screen and a hardware peripheral, a mini program relying on a mini program engine running in the vehicle terminal, and the method comprising:
displaying a mini program interface of the mini program, the mini program interface comprising at least two components;
controlling a first component of the at least two components in the mini program interface to perform a first event in response to a physical control operation on the hardware peripheral, comprising:
generating a first touch coordinate based on a first reference point inside a coordinate range of a first component of the at least two components in response to a confirmation operation on the hardware peripheral;
in response to the first component comprising a sub-component, determining whether the first touch coordinate belongs to a coordinate range of the sub-component, wherein the coordinate range of the sub-component is contained in the coordinate range of the first component;
in response to the first touch coordinate not belonging to the coordinate range of the sub-component, generating a first tap-to-click event based on the first touch coordinate;
in response to the first touch coordinate belonging to the coordinate range of the sub-component, re-generating a second touch coordinate based on the coordinate range of the sub-component and generating the first tap-to-click event based on the second touch coordinate; and
transferring the first tap-to-click event to the mini program, a touch coordinate of the first tap-to-click event belonging to the coordinate range of the first component in a focus state, and the first tap-to-click event being configured to trigger the mini program to control the first component to perform a response event; and
controlling a second component of the at least two components in the mini program interface to perform the first event in response to a touch operation on the touch screen.
|