Summary of the invention
For this reason, need to provide a kind of Android to simulate the technical scheme of multi-point touch, many equipment cannot be supported to input in order to solve Android system and effective management cannot be unified to input data, causing the problem of poor user experience.
For achieving the above object, inventor provide the device of a kind of Android simulation multi-point touch, described device comprises input end and receiving end, and described input end comprises multiple input block, Date Conversion Unit, data processing unit, transmitting element, and receiving end comprises receiving element and performance element; Described input block is connected with Date Conversion Unit, and described Date Conversion Unit is connected with data processing unit, and described data processing unit is connected with transmitting element; Described transmitting element is connected with receiving element, and described receiving element is connected with performance element;
Described input block is for inputting data and data manipulation instruction;
The data that described Date Conversion Unit is used for input block to input are converted to touch data, and touch data is transferred to data processing unit;
Described data processing unit for receiving the touch data of all input blocks transmission, and processes touch data, obtains processing data, the data that described process data identify for receiving end;
Described transmitting element is used for the receiving element process data of data processing unit transmission and the operational order of data being sent to receiving end;
Described receiving element is for receiving the operational order of process data and data, and described performance element is used for performing respective operations according to the operational order of data to these process data.
Further, described device comprises buffer unit, and described buffer unit comprises multiple cache sub-module, and described cache sub-module is connected with input block, the data that each cache sub-module inputs for storing an input block; Then " described data processing unit is for receiving the touch data of all input blocks transmission " specifically comprises: described data processing unit is used for obtaining touch data from cache sub-module corresponding to all input blocks.
Further, described data processing unit, also for after input block and data processing unit disconnect, empties the data in cache sub-module corresponding to this input block, and reclaims this cache sub-module.
Further, described " data processing unit processes touch data; obtain processing data " specifically comprises: the touch-screen agreement of single input block expanded as supporting the touch-screen agreement of multiple input block, described process data for supported the touch-screen agreement of multiple input block resolve the data of identification.
Further, the operational order of described data comprises trigger command and movement directive, described trigger command comprises the first trigger command, the second trigger command, the 3rd trigger command and the 4th trigger command, then described data processing unit is also for being converted to the 3rd trigger command by the first trigger command, after second trigger command being converted to the 4th trigger command, then the operational order of data is transferred to transmitting element.
And inventor additionally provides the method for a kind of Android simulation multi-point touch, described method is applied to Android simulation multi-point touch control apparatus, described device comprises input end and receiving end, described input end comprises multiple input block, Date Conversion Unit, data processing unit, transmitting element, and receiving end comprises receiving element and performance element; Described input block is connected with Date Conversion Unit, and described Date Conversion Unit is connected with data processing unit, and described data processing unit is connected with transmitting element; Described transmitting element is connected with receiving element, and described receiving element is connected with performance element; Then said method comprising the steps of:
Input block input data and data manipulation instruction;
The data that input block inputs by Date Conversion Unit are converted to touch data, and touch data is transferred to data processing unit;
Data processing unit receives the touch data of all input blocks transmission, and processes touch data, obtains processing data, the data that described process data identify for receiving end;
The operational order of the process data that data processing unit transmits by transmitting element and data is sent to the receiving element of receiving end;
Receiving element receives the operational order of process data and data, and performance element performs respective operations according to the operational order of data to these process data.
Further, described device comprises buffer unit, and described buffer unit comprises multiple cache sub-module, and described cache sub-module is connected with input block, the data that each cache sub-module inputs for storing an input block; Then " described data processing unit receives the touch data of all input blocks transmission " specifically comprises: described data processing unit obtains touch data from cache sub-module corresponding to all input blocks.
Further, described method also comprises:
Data processing unit, after input block and data processing unit disconnect, empties the data in cache sub-module corresponding to this input block, and reclaims this cache sub-module.
Further, described " data processing unit processes touch data; obtain processing data " specifically comprises: the touch-screen agreement of single input block expanded as supporting the touch-screen agreement of multiple input block, described process data for supported the touch-screen agreement of multiple input block resolve the data of identification.
Further, the operational order of described data comprises trigger command and movement directive, and described trigger command comprises the first trigger command, the second trigger command, the 3rd trigger command and the 4th trigger command, then described method also comprises:
First trigger command is converted to the 3rd trigger command by data processing unit, after the second trigger command being converted to the 4th trigger command, then the operational order of data is transferred to transmitting element.
Be different from prior art, the method and apparatus of the Android simulation multi-point touch described in technique scheme, described device comprises input end and receiving end, described input end comprises multiple input block, Date Conversion Unit, data processing unit, transmitting element, and receiving end comprises receiving element and performance element.Described method receives by input end the data that different input block inputs, and then changes data and unify process, then is sent to the receiving element of receiving end by transmitting element, and performs at performance element.Thus achieve the input that receiving end supports many equipment, and the data achieved multiple input equipment inputs input execution in order.Said method efficiently solves the equipment of existing Android system owing to only having a touch display screen, cannot support the input operation of many equipment, cause the problem of user's sensory experience difference.
Embodiment
By describe in detail technical scheme technology contents, structural attitude, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Referring to Fig. 1, is the schematic diagram of the device of the Android simulation multi-point touch described in one embodiment of the invention.Described device comprises input end 101 and receiving end 107, and described input end 101 comprises multiple input block 102, Date Conversion Unit 103, data processing unit 104, transmitting element 106, and receiving end 107 comprises receiving element 108 and performance element 109; Described input block 102 is connected with Date Conversion Unit 103, and described Date Conversion Unit 103 is connected with data processing unit 105, and described data processing unit 105 is connected with transmitting element 106; Described transmitting element 106 is connected with receiving element 108, and described receiving element 108 is connected with performance element 109.In the present embodiment, input end is the electronic equipment with simulation Android touch controllable function, such as, can be computer; Receiving end is the electronic equipment that Android system is housed, such as, can be Android mobile phone etc.
Described input block 102 is for inputting data and data manipulation instruction;
Described Date Conversion Unit 103 is converted to touch data for the data inputted by input block, and touch data is transferred to data processing unit;
Described data processing unit 105 for receiving the touch data of all input blocks transmission, and processes touch data, obtains processing data, the data that described process data identify for receiving end;
Described transmitting element 106 is sent to the receiving element of receiving end for the operational order of the process data transmitted by data processing unit and data;
Described receiving element 108 is for receiving the operational order of process data and data, and described performance element 109 performs respective operations for the operational order according to data to these process data.
When using the device of Android simulation multi-point touch, first input block input data and data manipulation instruction.Input block can be the equipment that keyboard, handle etc. have data input function.Data manipulation instruction is the instruction operated input data, can be such as simulating inputted data of pressing on the touchscreen or upspring, press and be these data of input, after upspringing, these data then can be performed, and described data manipulation instruction can also be by the move of point (namely inputting data) relative slidings on screen different on touch-screen.
The data that then input block inputs by Date Conversion Unit are converted to touch data, and touch data is transferred to data processing unit.Described touch data for can the data that identify by Android system, Date Conversion Unit can be script resolver.
Then data processing unit receives the touch data of all input blocks transmission, and processes touch data, obtains processing data, the data that described process data identify for receiving end.In the present embodiment, described " data processing unit processes touch data; obtain processing data " specifically comprises: the touch-screen agreement of single input block expanded as supporting the touch-screen agreement of multiple input block, described process data for supported the touch-screen agreement of multiple input block resolve the data of identification.
Electronic equipment due to existing Android system often only has a touch-screen, and its input block (touch-screen) also only has one, and thus it is when running, only need meet the touch-screen agreement of single input block.And when it is expanded as multi input unit, owing to needing to receive the input data from different input block, thus with regard to needing, process is unified to the operational order of these data and data, to allow the equipment of the Android system of receiving end identify.Particularly, the operational order of described data comprises trigger command and movement directive, described trigger command comprises the first trigger command, the second trigger command, the 3rd trigger command and the 4th trigger command, then described data processing unit is also for being converted to the 3rd trigger command by the first trigger command, after second trigger command being converted to the 4th trigger command, then the operational order of data is transferred to transmitting element.In the present embodiment, the first trigger command is that on touch-screen screen, first point is pressed, and namely when input block (as touch-screen) only has one, presses first point on the touchscreen, to input first data.Second trigger command is that on screen, a unique point be pressed is upspring, on screen, each point is pressed and by two states of upspringing, upspring namely when input block (as touch-screen) only has one, a point unique on screen is performed.3rd trigger command is screen has had a point pinned, and now presses other points again; 4th trigger command screen has multiple point pinned for working as, and wherein some points are upspring.When input block is multiple, when namely there is the operation of multiple input block input data and data, the first trigger command is needed to be converted to the 3rd trigger command, second trigger command is converted to the 4th trigger command, thus completes the expansion of the touch-screen agreement of single input block as supporting the touch-screen agreement of multiple input block.
In the present embodiment, described device comprises buffer unit 104, and described buffer unit comprises multiple cache sub-module, and described cache sub-module is connected with input block, the data that each cache sub-module inputs for storing an input block.Then " described data processing unit is for receiving the touch data of all input blocks transmission " specifically comprises: described data processing unit is used for obtaining touch data from cache sub-module corresponding to all input blocks.After certain input block and data processing unit connect, data processing unit is this input block application data buffer storage, for recording the current point pressed on the touchscreen of this input block, like this equally for other input blocks.Described data processing unit, also for after input block and data processing unit disconnect, empties the data in cache sub-module corresponding to this input block, and reclaims this cache sub-module.Data processing unit receives data that different input block inputs and operation can be carried out according to the priority of input block.In the present embodiment, the priority giving tacit consent to all input blocks is identical, and each input block is mutually exclusive operation at submission touch screen operation, namely at some instantaneous times, only has an input block to submit to touch-screen to send out operation.
Then the operational order of the process data transmitted by data processing unit of transmitting element and data is sent to the receiving element of receiving end.Receiving element receives the operational order of process data and data, and performance element performs respective operations according to the operational order of data to these process data.Transmitting element can be data queue, successively received process data and operation corresponding to data is sent to receiving element according to the order of first in first out.Received data transfer to performance element to perform by the receiving element of receiving end again.
As shown in Figure 2, be the schematic diagram of the device of Android simulation multi-point touch described in another embodiment of the present invention.When certain input block is (when a) disconnecting or initiatively nullify with data processing unit as input block, now this input block a may have input some data, but these data are not also performed, and (namely input block a has simulated and has pressed some point on the touchscreen, just these points are not also upspring), thus one conveniently needs to empty the data in cache sub-module a corresponding to this input block a, again submit to order four trigger commands (namely when screen there being multiple point pinned simultaneously, wherein some points are upspring), the point inputted by input block a is upspring (performing the data inputted), then this cache sub-module a is reclaimed.
And inventor additionally provides the method for a kind of Android simulation multi-point touch, as shown in Figure 3, be the schematic diagram of the method for Android simulation multi-point touch described in another embodiment of the present invention.Described method is applied to Android simulation multi-point touch control apparatus, and described device comprises input end and receiving end, and described input end comprises multiple input block, Date Conversion Unit, data processing unit, transmitting element, and receiving end comprises receiving element and performance element; Described input block is connected with Date Conversion Unit, and described Date Conversion Unit is connected with data processing unit, and described data processing unit is connected with transmitting element; Described transmitting element is connected with receiving element, and described receiving element is connected with performance element; Then said method comprising the steps of:
First step S301 input block input data and data manipulation instruction is entered.Input block can be the equipment that keyboard, handle etc. have data input function.Data manipulation instruction is the instruction operated input data, can be such as simulating inputted data of pressing on the touchscreen or upspring, press and be these data of input, after upspringing, these data then can be performed, and described data manipulation instruction can also be by the move of point (namely inputting data) relative slidings on screen different on touch-screen.
Then enter the data that input block inputs by step S302 Date Conversion Unit and be converted to touch data, and touch data is transferred to data processing unit.Described touch data for can the data that identify by Android system, Date Conversion Unit can be script resolver.Then enter the touch data that step S303 data processing unit receives the transmission of all input blocks, and touch data is processed, obtain processing data.The data that described process data identify for receiving end.In the present embodiment, described " data processing unit processes touch data; obtain processing data " specifically comprises: the touch-screen agreement of single input block expanded as supporting the touch-screen agreement of multiple input block, described process data for supported the touch-screen agreement of multiple input block resolve the data of identification.
Electronic equipment due to existing Android system often only has a touch-screen, and its input block (touch-screen) also only has one, and thus it is when running, only need meet the touch-screen agreement of single input block.And when it is expanded as multi input unit, owing to needing to receive the input data from different input block, thus with regard to needing, process is unified to the operational order of these data and data, to allow the equipment of the Android system of receiving end identify.Particularly, the operational order of described data comprises trigger command and movement directive, described trigger command comprises the first trigger command, the second trigger command, the 3rd trigger command and the 4th trigger command, then described data processing unit is also for being converted to the 3rd trigger command by the first trigger command, after second trigger command being converted to the 4th trigger command, then the operational order of data is transferred to transmitting element.In the present embodiment, the first trigger command is that on touch-screen screen, first point is pressed, and namely when input block (as touch-screen) only has one, presses first point on the touchscreen, to input first data.Second trigger command is that on screen, a unique point be pressed is upspring, on screen, each point is pressed and by two states of upspringing, upspring namely when input block (as touch-screen) only has one, a point unique on screen is performed.3rd trigger command is screen has had a point pinned, and now presses other points again; 4th trigger command screen has multiple point pinned for working as, and wherein some points are upspring.When input block is multiple, when namely there is the operation of multiple input block input data and data, the first trigger command is needed to be converted to the 3rd trigger command, second trigger command is converted to the 4th trigger command, thus completes the expansion of the touch-screen agreement of single input block as supporting the touch-screen agreement of multiple input block.
In the present embodiment, described device comprises buffer unit, and described buffer unit comprises multiple cache sub-module, and described cache sub-module is connected with input block, the data that each cache sub-module inputs for storing an input block.Then " described data processing unit is for receiving the touch data of all input blocks transmission " specifically comprises: described data processing unit is used for obtaining touch data from cache sub-module corresponding to all input blocks.After certain input block and data processing unit connect, data processing unit is this input block application data buffer storage, for recording the current point pressed on the touchscreen of this input block, like this equally for other input blocks.Described data processing unit, also for after input block and data processing unit disconnect, empties the data in cache sub-module corresponding to this input block, and reclaims this cache sub-module.Data processing unit receives data that different input block inputs and operation can be carried out according to the priority of input block.In the present embodiment, the priority giving tacit consent to all input blocks is identical, and each input block is mutually exclusive operation at submission touch screen operation, namely at some instantaneous times, only has an input block to submit to touch-screen to send out operation.
The operational order then entering process data that data processing unit transmits by step S304 transmitting element and data is sent to the receiving element of receiving end.Then enter the operational order that step S305 receiving element receives process data and data, performance element performs respective operations according to the operational order of data to these process data.Transmitting element can be data queue, successively received process data and operation corresponding to data is sent to receiving element according to the order of first in first out.The mode sent can be sent by wired mode, and also can send to wirelessly, received data transfer to performance element to perform by the receiving element of receiving end again.
Be different from prior art, the method and apparatus of the Android simulation multi-point touch described in technique scheme, described device comprises input end and receiving end, described input end comprises multiple input block, Date Conversion Unit, data processing unit, transmitting element, and receiving end comprises receiving element and performance element.Described method receives by input end the data that different input block inputs, and then changes data and unify process, then is sent to the receiving element of receiving end by transmitting element, and performs at performance element.Thus achieve the input that receiving end supports many equipment, and the data achieved multiple input equipment inputs input execution in order.Said method efficiently solves the equipment of existing Android system owing to only having a touch display screen, cannot support the input operation of many equipment, cause the problem of user's sensory experience difference.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, multi-purpose computer, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the process flow diagram of method, equipment (system) and computer program according to embodiment and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.