CN105451051A - Key remote control and method for controlling electronic device by use of key remote control - Google Patents

Key remote control and method for controlling electronic device by use of key remote control Download PDF

Info

Publication number
CN105451051A
CN105451051A CN201410428937.9A CN201410428937A CN105451051A CN 105451051 A CN105451051 A CN 105451051A CN 201410428937 A CN201410428937 A CN 201410428937A CN 105451051 A CN105451051 A CN 105451051A
Authority
CN
China
Prior art keywords
event
remote controller
key
electronic equipment
mouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410428937.9A
Other languages
Chinese (zh)
Inventor
过中梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN KEHWIN TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN KEHWIN TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN KEHWIN TECHNOLOGY Co Ltd filed Critical SHENZHEN KEHWIN TECHNOLOGY Co Ltd
Priority to CN201410428937.9A priority Critical patent/CN105451051A/en
Publication of CN105451051A publication Critical patent/CN105451051A/en
Pending legal-status Critical Current

Links

Abstract

The invention is applicable to the field of key remote control, and provides a key remote control and a method for controlling an electronic device by use of the key remote control, which are applied to a system at least composed of a key remote control and an electronic device. The key remote control generates a key event when detecting a key operation, converts the generated key event into a mouse event and sends the mouse event to the electronic device; and the electronic device receives the mouse event and triggers a corresponding Android application in the electronic device through the mouse event to execute an action. Thus, the key remote control can still be adopted to simulate a mouse to use the Android system on the electronic device.

Description

Button remote controller, use button remote controller control the method for electronic equipment
Technical field
The invention belongs to button field of remote control, particularly relate to button remote controller, use button remote controller to control the method for electronic equipment.
Background technology
Electronic equipment, is made up of electronic devices and components such as integrated circuit, transistor, electron tubes, makes it have one or more functions by electronic technology or software engineering; Along with the development of electronic equipment, there is the electronic equipments such as intelligent television, desktop computer, intelligent electric appliance and mobile terminal.
Android android system, as a kind of based on the freedom of Linux and the operating system of open source code, now main mobile device, but be also generalizable on various electronic equipment gradually, as by installing Android system on intelligent television, making it not only have traditional TV functions, the various application that Android system provides can also be used, TV functions can also be expanded, as online request, video calling etc. by this Android system simultaneously.
Android system is all use mouse or touch-screen manipulation usually, and electronic equipment all uses button remote controller to control substantially; But in order to compatible Android system, the electronic equipment using which kind of peripheral hardware to control to have Android system is a problem demanding prompt solution.
Summary of the invention
The object of the present invention is to provide button remote controller, use button remote controller to control the method for electronic equipment, there is provided a kind of brand-new control mode: by event switch technology, key-press event is converted to mouse event, adopt the electronic equipment that button remote controller analog mouse controls to be provided with Android system.
On the one hand, the invention provides a kind of method using button remote controller to control electronic equipment, be applied to the system be at least made up of button remote controller and electronic equipment, the method that described use button remote controller controls electronic equipment comprises:
S1, described button remote controller generates key-press event when button operation being detected, and the key-press event of generation is converted to mouse event, sends described mouse event to described electronic equipment;
S2, described electronic equipment receives described mouse event, triggers Android application program corresponding in described electronic equipment perform an action by described mouse event.
On the one hand, the invention provides a kind of button remote controller, described button remote controller comprises:
Generation unit, for generating key-press event when button operation being detected;
Converting unit, for being converted to mouse event by the key-press event of generation;
Transmitting element, for sending described mouse event to electronic equipment.
Beneficial effect of the present invention: be registered as the device type of mating with mouse event in the electronic device; And then, for the key-press event that the button pushed button on remote controller triggers at every turn, all need to be converted to mouse event, only send the mouse event after conversion to electronic equipment.Like this, still can continue to use button remote controller, analog mouse, use the Android system on electronic equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the workflow diagram of the method for the use button remote controller control electronic equipment that the embodiment of the present invention provides;
Fig. 2 is a kind of Optimizing Flow figure of the method for the use button remote controller control electronic equipment that the embodiment of the present invention provides;
Fig. 3 is the composition structure chart of the button remote controller that the embodiment of the present invention provides;
Fig. 4 is the one optimization composition structure chart of the button remote controller that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.In order to technical solutions according to the invention are described, be described below by specific embodiment.
The use button remote controller that the embodiment of the present invention provides controls the method for electronic equipment, is applied to the system be at least made up of button remote controller and electronic equipment.Wherein, Android system installed by this electronic equipment, this electronic equipment can be controlled by this button remote controller.Another also it is emphasized that this button remote controller at least comprises one or more button; The button that this button remote controller comprises can be physical button (i.e. physical button), as mechanical key, and silica gel push-button for another example.Be when pressing the button in this button remote controller people, described button remote controller can detect artificial button operation and generate the key-press event corresponding with this button.
The use button remote controller embodiments provided is controlled to the method for electronic equipment, see Fig. 1; The use button remote controller that Fig. 1 shows the embodiment of the present invention to be provided controls the workflow of the method for electronic equipment, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As shown in Figure 1, the method for described use button remote controller control electronic equipment comprises:
Step S1, described button remote controller generates key-press event when button operation being detected, and the key-press event of generation is converted to mouse event, sends described mouse event to described electronic equipment.
In embodiments of the present invention, a certain button in remote controller as long as user pushes button, described button remote controller can detect and also generate the key-press event corresponding with this button to the button operation of this button.Certainly, when user presses at least two buttons simultaneously, described button remote controller can detect each button of being pressed and the button operation corresponding with its (each button be pressed), and generates respectively and corresponding key-press event for each button operation detected.
It should be noted that, described button remote controller has processor and memory, stores event conversion table in this memory, and this event conversion table records the mapping relations of each mouse event and one or more key-press event.Particularly, one or more groups mapping relations of this event conversion table record are: the mapping relations one by one of a mouse event and a key-press event; Also likely, one or more groups mapping relations of this event conversion table record are: the combinatorial mapping of multiple key-press event is to a mouse event.
And then, step S1 is for the one or more key-press event of generation, the processor of described button remote controller all can searched events conversion table to determine whether the mouse event that can find coupling, if find out the mouse event of coupling from event conversion table, send described mouse event to described electronic equipment.As one preferred embodiment, for each key-press event generated, searched events conversion table, determines whether to find the mouse event mated with this key-press event, if find the mouse event of coupling, then stop from event conversion table searching mouse event; If do not found, and if the event generated is multiple simultaneously, then search for being combined in this event conversion table of two events, determine whether to find the mouse event with this combinations matches, if find the mouse event with this combinations matches, then stop the mouse event continuing to search coupling from event conversion table; The like, if do not found, if the event simultaneously generated be three and more than, increase the event number in combination gradually, for this increase the combination after event continue search in this event conversion table, if find the mouse event with this combinations matches, then stop the mouse event continuing to search coupling from event conversion table, if do not found, then continue, until often kind of the event simultaneously generated combination all travel through in this event conversion table search complete.As another preferred embodiment, for often kind of combination of the event generated simultaneously, according to event compound mode from more to less, from event conversion table, search to determine whether there is the mouse event with this combinations matches, as long as find the mouse event with this combinations matches, then stop searching, if do not found, then continue to reduce the event number in combination, continue searched events conversion table, until the mouse event or all completed for the combination of often kind of event finding coupling is searched.
It should be noted that, prior art has developed the Android application program of magnanimity for Android system, and wherein, some action in part Android application program needs to be triggered by mouse event; As cursor mobile process then needs real-time listening cursor moving event, trigger this cursor mobile process control cursor by cursor moving event and move according to assigned direction.
As a preferred embodiment, user often pushes button certain button in remote controller momently, and the duration of pressing, in Preset Time, will generate a key-press event by trigger key remote controller.Certain button in user pushes button remote controller and when not unclamping, this button remote controller can continue button operation to be detected, and generate one-touch event at interval of this Preset Time, as at interval of event when just to generate a button for 1 second.
The use button remote controller that Fig. 2 shows the embodiment of the present invention to be provided controls a kind of Optimizing Flow of the method for electronic equipment, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In an embodiment of the present invention, described system also comprises event forwarding equipment; Therefore, in the present embodiment, this system is at least made up of button remote controller, electronic equipment and this event forwarding equipment.Wherein, this event forwarding equipment is connected with described button remote controller and described electronic equipment respectively, and the mouse event received from this button remote controller is forwarded to this electronic equipment by user.As an embodiment, this event forwarding equipment is USB (UniversalSerialBus, USB) forwarding unit.This USB forwarding unit and this button remote controller are wired or wireless connections; Preferably, radio-frequency technique (as wireless local area network technology) is adopted to connect between this USB forwarding unit and this button remote controller.This USB forwarding unit and this electronic equipment are wired or wireless connections; Preferably, by human interface device (HumanInterfaceDevice, HID) agreement sets up the communication connection of this USB forwarding unit and this electronic equipment, and then the communication of this USB forwarding unit and this electronic equipment uses HID agreement to carry out transfer of data.
In the present embodiment, as shown in Figure 2, before described step S1, the method that described use button remote controller controls electronic equipment also comprises: step S3, described event forwarding equipment is device registration type in the Android system of described electronic equipment, and the device type of registration comprises mouse type.
Particularly, when button remote controller detects the access of event forwarding equipment, can to the request of event forwarding equipment transmitting apparatus to identify this equipment.And then described event forwarding equipment sends to described electronic equipment: the facility informations such as device type (as mouse type), device name, the bandwidth that take and transmission means send to this electronic equipment; The Android system of this electronic equipment is registered according to the facility information such as device type and device name.As an execution mode, this electronic equipment is completed the facility information such as mouse type and device name at the inner nuclear layer of its Android system and registers; And then electronic equipment, by the driver mated with this event forwarding equipment in Android system, carries out transfer of data with this event forwarding equipment.
In the present embodiment, as shown in Figure 2, described step S1 specifically comprises:
Step S11, described button remote controller generates key-press event when button operation being detected, and the key-press event of generation is converted to mouse event, sends described mouse event to described event forwarding equipment;
Step S12, described mouse event is forwarded to described electronic equipment by described event forwarding equipment.
Concrete in the present embodiment, due to the transfer of data of described button remote controller and described electronic equipment, by described event forwarding device forwards, therefore described button remote controller needs mouse event to send to event forwarding equipment in step s 11.Then, described mouse event is forwarded to described electronic equipment by event forwarding equipment.
As a preferred implementation, described button remote controller and described event forwarding equipment adopt radio-frequency technique to connect and carries out transfer of data.This wireless data transfer mode, user flexibility can be allowed to use button remote controller, as used button remote controller in different location, for another example use a teleswitch by different way, do not need as Infrared remote controller or blue Tooth remote controller etc. need carry out the work of aligning formula, the remote control (namely electronic equipment only can receive this mouse event under alignment case) to electronic equipment could be realized; Therefore in the present embodiment, described button remote controller and described event forwarding equipment are the mode adopting radio-frequency technique to connect, more hommization, and having more can be handling.
As a preferred implementation, described event forwarding equipment adopts wired mode (as usb bus) to be connected with electronic equipment, be convenient to by this event forwarding equipment and this electronic equipment integrated, improve the success rate that this mouse event accurately transfers to this electronic equipment.In addition, because this event forwarding equipment and this electronic equipment are discrete, so, when this event forwarding equipment or this electronic equipment occur abnormal, carry out corresponding replacing removably, effectively provide cost savings.
As a preferred implementation, this event forwarding equipment receives the mouse event that button remote controller sends, and then uses HID agreement that this mouse event is transmitted to electronic equipment.
In a preferred embodiment, the device type registered in step S3 comprises with the one in Types Below or its combination: touch type, mouse type and push-button type.
It should be noted that, the present embodiment determines the device type registered in the electronic device according to following condition, and this condition is the device type of the event matches can changed out with button remote controller.If wish that button remote controller can imitate touch-screen, event conversion table then in button remote controller increases the mapping relations of key-press event and touch-control event, to make it possible to go out touch-control event by this event translation table, in this electronic equipment, register touch type simultaneously.In like manner, if wish that button remote controller can imitate mouse, event conversion table then in button remote controller increases the mapping relations of key-press event and mouse event, to make it possible to go out mouse event by this event translation table, registers mouse type in this electronic equipment simultaneously.But should be noted that, when button remote controller is connected with electronic equipment, register push-button type in the electronic device to I haven't seen you for ages; (namely use case conversion table is not needed) when not needing analog mouse or touch-screen, for the key-press event triggering the generation of this button remote controller, directly can send to electronic equipment, or send to event forwarding equipment to be finally transmitted to electronic equipment.
Like this, when the device type registered in step s3 comprises touch type, mouse type and push-button type, can the different event that sends of this button remote controller compatible, comprise touch-control event, mouse event and key-press event.Particularly, after treating that event forwarding equipment is registered as touch type in the electronic device, event forwarding recognition of devices could be touch control device by electronic equipment, correctly can receive the touch-control event of event forwarding device forwards.In like manner, after treating that event forwarding equipment is registered as mouse type in the electronic device, event forwarding recognition of devices could be mouse device by electronic equipment, correctly can receive the mouse event of event forwarding device forwards.In like manner, after treating that event forwarding equipment is registered as push-button type in the electronic device, event forwarding recognition of devices could be press key equipment by electronic equipment, correctly can receive the key-press event of event forwarding device forwards.
In an embodiment of the present invention, before described step S1, the method that described use button remote controller controls electronic equipment also comprises: the instruction of described button remote controller receiving mode, the script pattern switching to described mode instruction to specify or translative mode.
Because key-press event is that existing button remote controller all can generate, therefore pattern is originally present embodiments provided, under this originally pattern, button remote controller generates key-press event when button operation being detected, this key-press event is not changed, directly this key-press event is sent to electronic equipment, or by this key-press event of event forwarding device forwards to this electronic equipment.
In addition, the present embodiment additionally provides translative mode, in this translative mode, one or more key-press event is generated when button operation being detected for button remote controller, by the mode of searched events conversion table, by the mouse event that the Combination conversion of this single key-press event or multiple key-press event is coupling, be maybe the touch-control event of coupling by the Combination conversion of this single key-press event or multiple key-press event.It should be noted that, the event conversion table described in the present embodiment records: the mapping relations of any one event and key-press event in touch-control event and these two kinds of events of mouse event.
As a kind of execution mode, this event conversion table only records mouse event and the mapping relations with key-press event; And then, for one or more key-press event that button remote controller generates when button operation being detected, the mouse event of the coupling found by event conversion table; Like this, when Android application program corresponding in electronic equipment performs an action according to the touch-control event received, the result being manipulated electronic equipment by mouse mode can be presented.As a preferred implementation, for one or more key-press event, in the mapping relations one by one of this this key-press event of event conversion table record and mouse event; Like this, when only triggering single key-press event sometime, searching this event conversion table to find the mouse event of coupling, triggering corresponding Android application program by this mouse event found and performing an action; Such as certain moment only triggers the single key-press event such as upper and lower, left or right, only for single key-press event such as upper and lower, left or rights, is converted to the mouse event moving up, move down, be moved to the left or move right; By the mouse event trigger cursor mobile process moving up, move down, be moved to the left or move right, the cursor that this cursor mobile process controls in Android system moves up accordingly, moves down, is moved to the left or moves right.
In addition, also for one or more key-press event, in the combination of the multiple key-press event of this event conversion table record and the mapping relations one by one of touch-control event.Like this, when triggering multiple key-press event sometime simultaneously, look for the touch-control event with the combinations matches of the plurality of key-press event by this event conversion table, trigger corresponding Android application program by this touch-control event found and perform an action.Such as, such as certain moment triggers " upper and lower " two key-press event simultaneously, searching this event conversion table by the Combination conversion of " upper and lower " two key-press event is " leaving " touch-control event, is amplified by photo current by " leaving " touch-control event trigger image amplification procedure (one for Android application program).Again such as, two key-press event that certain moment triggers simultaneously " confirm, on ", searching this event conversion table by the Combination conversion of " confirm, on " two key-press event is drag events, trigger icon drag program (for dragging the one of program in Android system) by drag events and perform drag action, drag current icon (current controlled object) and move up.
And then in the present embodiment, in described step S1, the key-press event of generation is converted to this step of mouse event, specifically comprise: if be in described translative mode, then according to event conversion table, the key-press event of generation is converted to touch-control event or the mouse event of coupling; If be in described script pattern, then event conversion is not carried out to described key-press event.
Specifically be under described translative mode, described button remote controller detects whether a button is pressed in real time this button operation, if detect that certain button is pressed in certain moment, generating the key-press event corresponding with this button in this moment; And then for this key-press event generated, be single mouse event by this key-press event by event translation table, trigger corresponding Android application program by this mouse event and perform respective action.Detect that multiple button is pressed if detected in this moment, then generate the multiple key-press event corresponding with the plurality of button, be single touch-control event by the event that the is combined through translation table of the plurality of key-press event, trigger corresponding Android application program by this touch-control event and perform respective action.
Specifically be under described raw mode, described button remote controller detects whether a button is pressed in real time this button operation, if detect that certain button is pressed in certain moment, the key-press event corresponding with this button is generated in this moment, directly this key-press event is sent to electronic equipment, or by this key-press event of event forwarding device forwards to this electronic equipment.
Step S2, described electronic equipment receives described mouse event, triggers Android application program corresponding in described electronic equipment perform an action by described mouse event.It should be noted that, this Android application program is the program being applicable to Android system, comprising: the program (comprising system program and application program) that Android system carries and the application program that third party develops for Android system.
In embodiments of the present invention, described electronic equipment gets out the reception to mouse event in real time; Particularly, the driver of Android system that electronic equipment is installed by it receives this mouse event.And then the Android application program being triggered Android system by this mouse event performs respective action, specific as follows:
The Android application program run, if this Android application program is corresponding with the mouse event received, then this Android application program can listen to this mouse event in running, triggers this Android application program and performs the action of mating with this mouse event.Trigger the concrete mode that this Android application program performs the action of mating with this mouse event and be at least two kinds: first kind of way, Android application program listens to this mouse event and performs respective action by this Android application program; Such as, cursor mobile process (Android application program), when listening to mouse event (mouse event) of " move up, move down, be moved to the left or move right ", controls this cursor accordingly and moves up, moves down, is moved to the left or moves right; The second way, Android application program listens to this mouse event and performs respective action by other Android application program of this Android application call; Such as: display routine is listening to " click " mouse event, can call icon determination program, current icon will be chosen by this icon determination program.
In the present invention one specific embodiment, described mouse event comprises the cursor moving event of assigned direction.In the present embodiment, because Android system is visualization interface, normally by operations such as cursor complete that icon is chosen.Therefore, the most of the time, all need to control cursor and move, in prior art, the ways customary controlling cursor moves for using mouse control cursor.And then the present embodiment is by button analog mouse, and analog mouse completes and controls the mobile of cursor.
If the duration that user pushes button is shorter than Preset Time, button remote controller detects and also can be shorter than Preset Time to the duration of the button operation that this button is pressed, and only can generate a key-press event by trigger key remote controller.
If what user pushed button lasts longer than Preset Time, then described button remote controller generates this step of key-press event and is specially when button operation being detected: when described button remote controller continues button operation to be detected, within the duration, generate one-touch event at interval of Preset Time.
In the present embodiment, user moves to control cursor by the mode of button in the remote controller that repeatedly pushes button; Simultaneously for analog mouse drags the mode of cursor movement, user (can be greater than Preset Time) and push button button in remote controller for a long time, described button remote controller president time detecting is to button operation, within the duration this button operation being detected, just generate a key-press event at interval of this Preset Time.
As an embodiment, described button remote controller detects once whether there is button operation at interval of this Preset Time, if existed, then generates the key-press event corresponding with this button operation.Certainly, if same button operation all detected within the duration, within the duration, just a key-press event can generated at interval of this Preset Time.
And then, the key-press event of generation is converted to this step of mouse event and is specially by described button remote controller: described button remote controller determines described assigned direction according to the key-press event generated, and the key-press event of generation is converted to the cursor moving event of described assigned direction.
In the present embodiment, in event conversion table, record the mapping relations of key-press event and cursor moving event.Further, more specifically record in event conversion table: the mapping relations of the cursor moving event in key-press event and one or more direction; Wherein, the cursor moving event in the corresponding direction of each key-press event; Wherein, above-mentioned direction comprises the assigned direction described in the present embodiment.
Therefore, for the key-press event got, if search the cursor moving event that this event conversion table also can find matching direction, using this matching direction as assigned direction, the cursor moving event of this assigned direction is sent to electronic equipment, or by the cursor moving event of this assigned direction of event forwarding device forwards to this electronic equipment.
In the present invention one specific embodiment, correspondingly, before described electronic equipment receives this step of described mouse event, the method that described use button remote controller controls electronic equipment also comprises: according to the display resolution determination displacement step-length of electronic equipment.
In the present embodiment, the electronic equipment of different display resolution can be applicable to for realizing this button remote controller, need in advance in the Android system of electronic equipment, for the display resolution setting displacement step-length of this electronic equipment.Preferably, the display resolution of this electronic equipment and the displacement step-length of setting are positively related; Namely the display resolution of this electronic equipment is larger, and what displacement step-length also set is corresponding large; The display resolution of this electronic equipment is less, and what displacement step-length also set is corresponding less.
Correspondingly, describedly to trigger in described electronic equipment corresponding Android application program by described mouse event and to perform an action this step, be specially: cursor mobile process corresponding in described electronic equipment often listens to the cursor moving event of a described assigned direction, and cursor is moved described displacement step-length to described assigned direction.
In the present embodiment, this cursor mobile process is used to the program controlling cursor movement, is moved, as moved up, move down, be moved to the left and moving right by this super each direction of cursor mobile process controllable cursor.
This cursor mobile process, when listening to the cursor moving event of a described assigned direction, can recognize described assigned direction, controls cursor and moves to described assigned direction; Wherein, often listen to the cursor moving event of a described assigned direction, controlling this cursor to the step-length of this assigned direction movement is displacement step-length.
As an embodiment, for the interval time of cursor moving event receiving same described assigned direction, determine displacement step-length.As, if the interval time receiving the cursor moving event of same described assigned direction is greater than Preset Time, displacement step-length is arranged relatively large, if receive the interval time of the cursor moving event of same described assigned direction for this Preset Time, displacement step-length is arranged relatively less.Like this, if be greater than Preset Time the interval time that electronic equipment receives the cursor moving event of same described assigned direction, control cursor and move according to larger displacement step-length; If electronic equipment receives once the cursor moving event of identical described assigned direction at interval of Preset Time, control cursor and continue according to less displacement step-length mobile, to present the effect dragged continuously.
As an embodiment, button remote controller is switched to translative mode.
User click once " on " button time, button remote controller generate one " on " key-press event, by event conversion table by being somebody's turn to do " on " key-press event be converted to the cursor moving event of " y-axis positive direction ".After treating that electronic equipment receives the cursor moving event of this " y-axis positive direction ", once cursor mobile process listens to the cursor moving event of this " y-axis positive direction ", this cursor mobile process controls cursor and moves larger displacement step-length (as 16 pixel grids) to " y-axis positive direction "; Similarly, when user click D score, " left side " or " right side " button, button remote controller correspondence generates the key-press event on D score, " left side " or " right side ", by event conversion table, the key-press event of this D score is converted to the cursor moving event of " y-axis negative direction ", by event conversion table, the key-press event of being somebody's turn to do " right side " is converted to the cursor moving event of " x-axis positive direction ", by event conversion table, the key-press event of being somebody's turn to do " left side " is converted to the cursor moving event of " x-axis negative direction ".Treat that electronic equipment receives the cursor moving event of this " y-axis negative direction ", after the cursor moving event of " x-axis positive direction " or the cursor moving event of " x-axis negative direction ", once cursor mobile process listens to the cursor moving event of this " y-axis negative direction ", this cursor mobile process controls cursor and moves larger displacement step-length (as 16 pixel grids) to " y-axis negative direction ", once cursor mobile process listens to the cursor moving event of this " x-axis positive direction ", this cursor mobile process controls cursor and moves larger displacement step-length (as 16 pixel grids) to " x-axis positive direction ", once cursor mobile process listens to the cursor moving event of this " x-axis negative direction ", this cursor mobile process controls cursor and moves larger displacement step-length (as 16 pixel grids) to " x-axis negative direction ".
User continue to press " on " time of button exceedes Preset Time (preferred, this Preset Time is 400ms), button remote controller at interval of this Preset Time generate one " on " key-press event, until " on " button unclamps.Then, by event conversion table by being somebody's turn to do " on " key-press event be converted to the cursor moving event of " y-axis positive direction ".After treating that electronic equipment receives the cursor moving event of this " y-axis positive direction " at interval of this Preset Time, once cursor mobile process listens to the cursor moving event of this " y-axis positive direction " at interval of this Preset Time, this cursor mobile process controls cursor and moves less displacement step-length (as 8 pixel grids) to " y-axis positive direction ", and analog mouse drags cursor and moves up.
In like manner, the time continuing to press D score button user exceedes Preset Time (preferred, this Preset Time is 400ms), and button remote controller generates the key-press event of a D score at interval of this Preset Time, until D score button unclamps.Then, by event conversion table, the key-press event of this D score is converted to the cursor moving event of " y-axis negative direction ".After treating that electronic equipment receives the cursor moving event of this " y-axis negative direction " at interval of this Preset Time, once cursor mobile process listens to the cursor moving event of this " y-axis negative direction " at interval of this Preset Time, this cursor mobile process controls cursor and moves less displacement step-length (as 8 pixel grids) to " y-axis negative direction ", and analog mouse drags cursor and moves down.
In like manner, the time continuing to press " left side " button user exceedes Preset Time (preferred, this Preset Time is 400ms), and button remote controller generates the key-press event on " left side " at interval of this Preset Time, until " left side " button unclamps.Then, by event conversion table, the key-press event of being somebody's turn to do " left side " is converted to the cursor moving event of " x-axis negative direction ".After treating that electronic equipment receives the cursor moving event of this " x-axis negative direction " at interval of this Preset Time, once cursor mobile process listens to the cursor moving event of this " x-axis negative direction " at interval of this Preset Time, this cursor mobile process controls cursor and moves less displacement step-length (as 8 pixel grids) to " x-axis negative direction ", and analog mouse drags cursor and is moved to the left.
In like manner, the time continuing to press " right side " button user exceedes Preset Time (preferred, this Preset Time is 400ms), and button remote controller generates the key-press event on " right side " at interval of this Preset Time, until " right side " button unclamps.Then, by event conversion table, the key-press event of being somebody's turn to do " right side " is converted to the cursor moving event of " x-axis positive direction ".After treating that electronic equipment receives the cursor moving event of this " x-axis positive direction " at interval of this Preset Time, once cursor mobile process listens to the cursor moving event of this " x-axis positive direction " at interval of this Preset Time, this cursor mobile process controls cursor and moves less displacement step-length (as 8 pixel grids) to " x-axis positive direction ", and analog mouse drags cursor and moves right.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
It should be noted that, the button remote controller that the embodiment of the present invention provides is applicable to the method for the use button remote controller control electronic equipment that the embodiment of the present invention provides.
Fig. 3 shows the composition structure of the button remote controller that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
The button remote controller that the present embodiment provides, as shown in Figure 3, described button remote controller comprises:
Generation unit 61, for generating key-press event when button operation being detected;
Converting unit 62, for being converted to mouse event by the key-press event of generation;
Transmitting element 63, for sending described mouse event to electronic equipment.
In the present invention one preferably implements, described transmitting element 63 is specially:
Send described mouse event to event forwarding equipment, to make described event forwarding equipment, described mouse event is forwarded to described electronic equipment.
In the present invention one preferably implements, described mouse event comprises the cursor moving event of assigned direction;
Described generation unit 61, during specifically for continuing button operation to be detected, generates one-touch event at interval of Preset Time within the duration;
Described converting unit 62, specifically for determining described assigned direction according to the key-press event generated, and is converted to the cursor moving event of described assigned direction by the key-press event of generation.
The one that Fig. 4 shows the button remote controller that the embodiment of the present invention provides is optimized structure, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In the present invention one preferably implements, as shown in Figure 4, described button remote controller also comprises:
Mode switch element 64, for receiving mode instruction, the script pattern switching to described mode instruction to specify or translative mode;
Described converting unit 62, specifically for when being in described translative mode, according to event conversion table, the key-press event of generation is converted to touch-control event or the mouse event of coupling, described event conversion table records: the mapping relations of any one event and key-press event in touch-control event and these two kinds of events of mouse event.
In the present invention one preferably implements, as shown in Figure 4, described converting unit 62, specifically for when being in described script pattern, does not carry out event conversion to described key-press event.
It will be appreciated by those skilled in the art that the unit included by the button remote controller that the embodiment of the present invention provides is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make some equivalent alternative or obvious modification without departing from the inventive concept of the premise; and performance or purposes identical, all should be considered as belonging to the scope of patent protection that the present invention is determined by submitted to claims.

Claims (10)

1. use button remote controller to control a method for electronic equipment, it is characterized in that, be applied to the system be at least made up of button remote controller and electronic equipment, the method that described use button remote controller controls electronic equipment comprises:
S1, described button remote controller generates key-press event when button operation being detected, and the key-press event of generation is converted to mouse event, sends described mouse event to described electronic equipment;
S2, described electronic equipment receives described mouse event, triggers Android application program corresponding in described electronic equipment perform an action by described mouse event.
2. the method using button remote controller to control electronic equipment as claimed in claim 1, it is characterized in that, described system also comprises event forwarding equipment;
Before described step S1, the method that described use button remote controller controls electronic equipment also comprises:
S3, described event forwarding equipment is device registration type in the Android system of described electronic equipment, and the device type of registration comprises mouse type;
Described step S1 specifically comprises:
S11, described button remote controller generates key-press event when button operation being detected, and the key-press event of generation is converted to mouse event, sends described mouse event to described event forwarding equipment;
S12, described mouse event is forwarded to described electronic equipment by described event forwarding equipment.
3. the method using button remote controller to control electronic equipment as claimed in claim 1 or 2, it is characterized in that, described mouse event comprises the cursor moving event of assigned direction;
Described button remote controller generates this step of key-press event and is specially when button operation being detected:
When described button remote controller continues button operation to be detected, within the duration, generate one-touch event at interval of Preset Time;
The key-press event of generation is converted to this step of mouse event and is specially by described button remote controller:
Described button remote controller determines described assigned direction according to the key-press event generated, and the key-press event of generation is converted to the cursor moving event of described assigned direction.
4. the method using button remote controller to control electronic equipment as claimed in claim 3, it is characterized in that, before described electronic equipment receives this step of described mouse event, the method that described use button remote controller controls electronic equipment also comprises: according to the display resolution determination displacement step-length of electronic equipment;
Describedly to trigger in described electronic equipment corresponding Android application program by described mouse event and to perform an action this step, be specially:
Cursor mobile process corresponding in described electronic equipment often listens to the cursor moving event of a described assigned direction, and cursor is moved described displacement step-length to described assigned direction.
5. the method using button remote controller to control electronic equipment as claimed in claim 1 or 2, is characterized in that, before described step S1, the method that described use button remote controller controls electronic equipment also comprises:
The instruction of described button remote controller receiving mode, the script pattern switching to described mode instruction to specify or translative mode;
In described step S1, the key-press event of generation is converted to this step of mouse event, specifically comprises:
If be in described translative mode, then according to event conversion table, the key-press event of generation is converted to touch-control event or the mouse event of coupling, described event conversion table records: the mapping relations of any one event and key-press event in touch-control event and these two kinds of events of mouse event;
If be in described script pattern, then event conversion is not carried out to described key-press event.
6. a button remote controller, is characterized in that, described button remote controller comprises:
Generation unit, for generating key-press event when button operation being detected;
Converting unit, for being converted to mouse event by the key-press event of generation;
Transmitting element, for sending described mouse event to electronic equipment.
7. button remote controller as claimed in claim 6, it is characterized in that, described transmitting element is specially:
Send described mouse event to event forwarding equipment, to make described event forwarding equipment, described mouse event is forwarded to described electronic equipment.
8. button remote controller as claimed in claims 6 or 7, it is characterized in that, described mouse event comprises the cursor moving event of assigned direction;
Described generation unit, during specifically for continuing button operation to be detected, generates one-touch event at interval of Preset Time within the duration;
Described converting unit, specifically for determining described assigned direction according to the key-press event generated, and is converted to the cursor moving event of described assigned direction by the key-press event of generation.
9. button remote controller as claimed in claims 6 or 7, it is characterized in that, described button remote controller also comprises:
Mode switch element, for receiving mode instruction, the script pattern switching to described mode instruction to specify or translative mode;
Described converting unit, specifically for when being in described translative mode, according to event conversion table, the key-press event of generation is converted to touch-control event or the mouse event of coupling, described event conversion table records: the mapping relations of any one event and key-press event in touch-control event and these two kinds of events of mouse event.
10. button remote controller as claimed in claim 9, is characterized in that, described converting unit, also specifically for:
When being in described script pattern, event conversion is not carried out to described key-press event.
CN201410428937.9A 2014-08-27 2014-08-27 Key remote control and method for controlling electronic device by use of key remote control Pending CN105451051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410428937.9A CN105451051A (en) 2014-08-27 2014-08-27 Key remote control and method for controlling electronic device by use of key remote control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410428937.9A CN105451051A (en) 2014-08-27 2014-08-27 Key remote control and method for controlling electronic device by use of key remote control

Publications (1)

Publication Number Publication Date
CN105451051A true CN105451051A (en) 2016-03-30

Family

ID=55560767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410428937.9A Pending CN105451051A (en) 2014-08-27 2014-08-27 Key remote control and method for controlling electronic device by use of key remote control

Country Status (1)

Country Link
CN (1) CN105451051A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134463A (en) * 2018-02-02 2019-08-16 阿里巴巴集团控股有限公司 Data processing method, device, equipment and machine readable media
CN110989909A (en) * 2019-11-26 2020-04-10 西安万像电子科技有限公司 Data processing method, device and system
CN112351324A (en) * 2020-10-27 2021-02-09 深圳Tcl新技术有限公司 Analog mouse control method, device, equipment and computer readable storage medium
CN112449227A (en) * 2020-10-26 2021-03-05 广州视源电子科技股份有限公司 Interaction method and device for touch screen application compatible with remote controller operation, smart television and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100309118A1 (en) * 2009-06-09 2010-12-09 Shenzhen Futaihong Precision Industry Co., Ltd. Multi-functional wireless control device
CN102629157A (en) * 2012-02-29 2012-08-08 深圳市茁壮网络股份有限公司 Message conversion method and device
CN103106104A (en) * 2013-02-07 2013-05-15 深圳杰科电器制造有限公司 Remote control method and system based on android
CN103455178A (en) * 2013-09-27 2013-12-18 珠海迈越信息技术有限公司 Method for simulating mouse with remote controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100309118A1 (en) * 2009-06-09 2010-12-09 Shenzhen Futaihong Precision Industry Co., Ltd. Multi-functional wireless control device
CN102629157A (en) * 2012-02-29 2012-08-08 深圳市茁壮网络股份有限公司 Message conversion method and device
CN103106104A (en) * 2013-02-07 2013-05-15 深圳杰科电器制造有限公司 Remote control method and system based on android
CN103455178A (en) * 2013-09-27 2013-12-18 珠海迈越信息技术有限公司 Method for simulating mouse with remote controller

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张峰,龚毅: "《图形图像处理Photoshop CS教程》", 31 August 2013 *
张强: "《大学计算机基础教程》", 29 February 2012 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134463A (en) * 2018-02-02 2019-08-16 阿里巴巴集团控股有限公司 Data processing method, device, equipment and machine readable media
CN110989909A (en) * 2019-11-26 2020-04-10 西安万像电子科技有限公司 Data processing method, device and system
CN110989909B (en) * 2019-11-26 2022-10-18 西安万像电子科技有限公司 Data processing method, device and system
CN112449227A (en) * 2020-10-26 2021-03-05 广州视源电子科技股份有限公司 Interaction method and device for touch screen application compatible with remote controller operation, smart television and storage medium
CN112351324A (en) * 2020-10-27 2021-02-09 深圳Tcl新技术有限公司 Analog mouse control method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN104202637A (en) Key remote control and target dragging method
US9258402B2 (en) System and method for controlling mobile devices
CN102609192B (en) Mobile terminal operating method by computer and mobile terminal
CN102932695B (en) A kind of remote control thereof, intelligent terminal and intelligent remote control system
CN108132744B (en) Method and equipment for remotely controlling intelligent equipment
CN108282677A (en) Realize that content throws method, throwing screen device and the system of screen by client
KR101325026B1 (en) Control method for application execution terminal based on android platform using smart-terminal, and computer-readable recording medium for the same
CN105451051A (en) Key remote control and method for controlling electronic device by use of key remote control
CN107273009B (en) Method and system for rapidly capturing screen of mobile terminal
CN104298461A (en) Method for controlling intelligent device through mobile terminal and mobile terminal of method
WO2013123720A1 (en) Method for controlling mouse modules and electronic device
CN103856798A (en) Operation method and electronic equipment
KR101143601B1 (en) System and method for a way to exchange digital contents among heterogeneous devices
WO2020207028A1 (en) Method, device and apparatus for controlling touch operation mode, and storage medium
CN104202638A (en) Key remote control and method for controlling electronic device through same
CN106293095A (en) A kind of method and system based on intelligent watch operation VR
EP2985676A1 (en) Television-and-computer all-in-one machine, method, and computer storage medium for performing remote control on external computer
CN102968245B (en) Mouse touches cooperative control method, device and Intelligent television interaction method, system
CN104423629A (en) Electronic equipment and data processing method
CN102681780A (en) Intelligent Linux device and input method switching method for same
CN103170136A (en) Method and system of achieving game control through set top box
CN112578967B (en) Chart information reading method and mobile terminal
CN111625174B (en) Touch screen control method and device, electronic equipment and storage medium
WO2015051742A1 (en) Method and device for automatically implementing wireless connection between devices
CN105007377A (en) Cellphone remote control device, system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160330

RJ01 Rejection of invention patent application after publication