Fusion method and terminal for touch messages and computer-readable storage medium
AssigneeXi'an Zhongxing New Software Co., Ltd.
InventorXiaochuan Cui
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a fusion method and terminal for touch messages and a computer readable storage medium. The method includes: pushing touch messages of all touch fingers from at least two different touch screens into different buffer queues for buffering; intercepting head data of each buffer queue to generate a reported data array; and acquiring states of the touch fingers according to the reported data array and packaging the states into multi-finger touch protocol data.
Claims13
A fusion method for touch messages, comprising:
- pushing touch messages of all touch fingers from at least two different touch screens into different buffer queues for buffering;
- intercepting head data of each buffer queue to generate a reported data array;
- and
- acquiring states of the touch fingers according to the reported data array and packaging the states into multi-finger touch protocol data
- wherein after the step of acquiring states of the touch fingers according to the reported data array and packaging the states into multi-finger touch protocol data, the method further comprises:
- controlling a reporting speed of the multi-finger touch protocol data according to a preset time interval,
- wherein the preset time interval is calculated according to the following equation:
- t=1/f*1000*1000−Tc−Tr
- wherein f is a sampling frequency of a touch panel, Tc is consumption time of obtaining the touch messages of the touch fingers, and Tr is consumption time of packaging and reporting the multi-finger touch protocol data.
A fusion terminal for touch messages, comprising:
- a memory and a processor, the memory having a computer program stored thereon which, when executed by the processor, causes the processor to perform steps of:
- pushing touch messages of all touch fingers from at least two different touch screens into different buffer queues for buffering;
- intercepting head data of each buffer queue to generate a reported data array;
- and
- acquiring states of the touch fingers according to the reported data array and packaging the states into multi-finger touch protocol data,
- wherein when the computer program is executed by the processor, the processor further performs step of:
- controlling a reporting speed of the multi-finger touch protocol data according to a preset time interval,
- wherein the preset time interval is calculated according to the following equation:
- t=1/f*1000*1000−Tc−Tr
- wherein f is a sampling frequency of a touch panel, Tc is consumption time of obtaining the touch messages of the touch fingers, and Tr is consumption time of packaging and reporting the multi-finger touch protocol data.
A non-transitory computer-readable storage medium storing a computer program thereon which, when executed by a processor, causes the processor to perform steps of:
- pushing touch messages of all touch fingers from at least two different touch screens into different buffer queues for buffering;
- intercepting head data of each buffer queue to generate a reported data array;
- and
- acquiring states of the touch fingers according to the reported data array and packaging the states into multi-finger touch protocol data,
- wherein after the step of acquiring states of the touch fingers according to the reported data array and packaging the states into multi-finger touch protocol data, the processor further performs a step of:
- controlling a reporting speed of the multi-finger touch protocol data according to a preset time interval,
- wherein the preset time interval is calculated according to the following equation:
- t=1/f*1000*1000−Tc−Tr
- wherein f is a sampling frequency of a touch panel, Tc is consumption time of obtaining the touch messages of the touch fingers, and Tr is consumption time of packaging and reporting the multi-finger touch protocol data.
Dependencies are inferred from the claim text.