CN105677309B - A kind of method and device showing mouse - Google Patents
A kind of method and device showing mouse Download PDFInfo
- Publication number
- CN105677309B CN105677309B CN201410660514.XA CN201410660514A CN105677309B CN 105677309 B CN105677309 B CN 105677309B CN 201410660514 A CN201410660514 A CN 201410660514A CN 105677309 B CN105677309 B CN 105677309B
- Authority
- CN
- China
- Prior art keywords
- mouse
- location information
- images
- display
- device node
- 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a kind of method and devices for showing mouse, are related to software field, show mouse to real be now based in the smart television of Firefox operating system.This method is applied to the equipment based on red fox Firefox operating system, comprising: whether is stored with mouse location information in poll detection mouse device node;Mouse location information is location information of the mouse images in display interface;Mouse images are set as the top positioned at display interface;In the case where being stored with mouse location information in mouse device node, the display mode of mouse images is set as showing, and the display properties of mouse images is set according to mouse location information.
Description
Technical field
The present invention relates to software field more particularly to a kind of method and devices for showing mouse.
Background technique
With network and the increasingly close development trend of people's life, the smart television of operating system is equipped with its offer
Take the mainstream that diversified advantage is increasingly becoming in TV.
Smart television has full open model platform, is equipped with operating system, can by wired or wireless mode and mutually
Networking connection, voluntarily installed and uninstalled by user the third party service providers such as software, game offer program, by this class method come
Constantly the function of TV is expanded.For the ease of user's operation, smart television can external access of mouse, allow smart television to realize
The operation of similar computer.
In numerous operating systems, Firefox (red fox) operating system is exactly that Mou Zhi company grinds for smart phone is leading
Open source operating system of new generation is sent out, using open network technology, using Gecko browser engine as core, using HTML5 programming language
Speech is write.Firefox operating system is with its outstanding performance, and operation that can be very smooth on low and middle-end mobile phone is won more
The favor of Lai Yueduo cell phone manufacturer.2014, target was aimed at intelligent television field by Mou Zhi company, was made based on Firefox
The smart television of operating system.
Currently, the smart television based on Firefox operating system is in development phase, the prior art can only be in intelligent electricity
Depending on being identified after insertion mouse to mouse event (such as mouse position, mono-/bis-are hit, left/right key etc.), according to the mouse recognized
Mark event carries out corresponding distribution processor, there are no corresponding mouse display function is researched and developed, so not supporting that mouse is aobvious temporarily
Show function.
Summary of the invention
The embodiment of the present invention provides a kind of method and device for showing mouse, is now based on Firefox operation to real
Mouse is shown in the smart television of system.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the method is applied to be based on red fox the embodiment of the invention provides a kind of display mouse calibration method
The equipment of Firefox operating system, comprising: whether be stored with mouse location information in poll detection mouse device node;It is described
Mouse location information is location information of the mouse images in display interface;The mouse images are set as positioned at display interface
Top;In the case where being stored with the mouse location information in the mouse device node, by the aobvious of the mouse images
The mode of showing is set as showing, and the display properties of the mouse images is arranged according to the mouse location information.
Second aspect, the embodiment of the invention provides a kind of device, described device is based on red fox Firefox operating system
Device, comprising: poll detection module, for poll detection mouse device node in whether be stored with mouse location information;Institute
Stating mouse location information is location information of the mouse images in display interface;The mouse images are set as being located at display interface
Top;Display module, in the case where for being stored with the mouse location information in the mouse device node, by institute
The display mode for stating mouse images is set as showing, and the display category of the mouse images is arranged according to the mouse location information
Property.
The embodiment of the invention provides a kind of method and device for showing mouse, it is applied to operate based on red fox Firefox
The device of system, poll detect in mouse device node whether be stored with mouse location information;Mouse location information is mouse figure
As the location information in display interface;Mouse images are set as the top positioned at display interface;In mouse device node
In the case where being stored with mouse location information, the display mode of mouse images is set as showing, and according to mouse location information
The display properties of mouse images is set.In this way, passing through the top positioned at display interface of mouse images, and obtaining mouse
After location information, the display mode of mouse images and the display properties of mouse images are set, are being based on mouse images
The display interface of the equipment of Firefox is shown.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of flow chart for showing mouse calibration method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another display mouse calibration method provided in an embodiment of the present invention;
Fig. 3 is a kind of functional schematic of device provided in an embodiment of the present invention;
Fig. 4 is the functional schematic of another device provided in an embodiment of the present invention;
Fig. 5 is the functional schematic of another device provided in an embodiment of the present invention;
Fig. 6 is the functional schematic of another device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of display mouse calibration method, this method is applied to operate based on red fox Firefox
The equipment of system.The equipment has the display screen for exporting display interface.
As shown in Figure 1, this method comprises:
101, whether mouse location information is stored in poll detection mouse device node.
Wherein, mouse location information is location information of the mouse images in display interface.Mouse images are set as being located at
The top of display interface.
It is exported in the display screen for be output to equipment it should be noted that display interface refers to, and can allow and be seen with user
The interface arrived.
The top that mouse images are located at display interface refers to that figure layer where mouse images is relative to it in display interface
He is located at top layer at figure layer, that is to say, that as long as display mouse images, then user one surely sees mouse figure in display interface
Picture.Setting mouse images in Firefox operating system can be by least following two positioned at the top of display interface
Kind mode is realized: the first, setting mouse images positioning method position uses fixed;Wherein fixed positioning method is to make
The display layer of affiliated element with respect to this layer of browser display interface adjust automatically position so that affiliated element be always positioned at it is aobvious
Show the top at interface;Second, the value of the stacking order z-index of mouse images is set to be larger;Wherein, z-index belongs to
Property setting element stacking order, possess higher fold the element of sequence always can be before the lower element of lamination order
Face, so that mouse images have higher lamination order.
It should be noted that device node is used to store the mouse location information obtained from bottom layer driving.Mouse device section
Point can be already existing before system starting, be also possible to create when system starting, after can also be system starting, inspection
It is created when measuring mouse insertion, the present invention is without limitation.The mouse location information stored in mouse device node is used for
Position of the indication mouse image in display interface, is generally shown by way of coordinate, and specific coordinate value is according to display circle
The reference axis of face setting is different and different.
It should be noted that there are also the equipment sections of other external equipments in system other than setting mouse device node
Point.Poll means detection mouse device node more than once in the embodiment of the present invention.Can be circulation be successively read it is all
Information in device node, when the information for being also possible to store in all devices node changes, just triggering successively detects institute
There is the information stored in device node.
It should be noted that every time detection mouse device node the result is that independent, that is to say, that this detection mouse
It is value and last time detection or the detection next time mouse of the mouse location information for storing mouse location information and storage in device node
Be in marking device node the mouse location information for storing mouse location information and storage value it is unrelated.
It should be noted that being arranged so that for the mouse location information stored in mouse device node in the present embodiment is not having
When getting mouse position, mouse location information is not stored in mouse device node;When getting mouse position, mouse is set
Corresponding mouse location information is stored in slave node.The setting of the mouse location information stored in certain mouse device node may be used also
To be: when not getting mouse position, the mouse location information stored in mouse device node is invalid value;It is getting
When mouse position, corresponding mouse location information is stored in mouse device node.The present invention is without limitation.It is of the present invention
Mouse device node in whether be stored with mouse location information and refer to and be stored with effective mouse position in mouse device node
Information.
It should be noted that executing step in the case where being stored with mouse location information in detecting mouse device node
Rapid 102, mouse images are shown in display interface;Do not have to store the feelings of mouse location information in detecting mouse device node
Under condition, continue poll mouse device node.
102, in the case where being stored with mouse location information in mouse device node, the display mode of mouse images is set
It is set to display, and the display properties of mouse images is set according to mouse location information.
Illustrate to need to show mouse images in display interface specifically, being stored with mouse location information in mouse device node
Show, then the display mode for updating mouse images is display, and determines according to mouse location information the seat of the display of mouse images
Mark and coordinate value.
It should be noted that before setting display for the display mode of mouse images, the display mode of mouse images
It may may not also be shown for display.Illustratively, sentence can be used by setting display for the display mode of mouse images
" display:block " setting mouse images are shown.
It should be noted that the display properties of mouse images includes that the displaing coordinate axis of mouse images and mouse images are being sat
Specific coordinate value in parameter.The display properties of mouse images specifically can specifically pass through left (left), upper (top), the right side
(right) and under some or all of in (bottom) four attribute attribute determine the displaing coordinate axis of mouse images, and
According to mouse location information, coordinate value of the mouse images in reference axis will be set.
The embodiment of the invention provides a kind of display mouse calibration method, applied to the equipment based on Firefox operating system,
Whether mouse location information is stored in detection mouse device node;Mouse location information is mouse images in display interface
Location information;Mouse images are set as the top positioned at display interface;Mouse position letter is stored in mouse device node
In the case where breath, the display mode of mouse images is set as showing, and the aobvious of mouse images is arranged according to mouse location information
Show attribute.In this way, pass through the top positioned at display interface of mouse images, and after obtaining mouse location information, setting
The display mode of mouse images and the display properties of mouse images, finally make mouse images in the equipment based on Firefox
Display interface is shown.
The embodiment of the invention provides a kind of display mouse calibration method, this method is applied to operate based on red fox Firefox
The equipment of system.The equipment has the display screen for exporting display interface.
It should be noted that all programs in Firefox operating system can be divided into three layers according to function, that is, drive layer
Gonk, control layer Gecko, client layer Gaia.Each layer is write using different programming languages, there is information friendship between layers
Mutually.
As shown in Fig. 2, this method comprises:
201, the homepage face load logic operation control script file of Firefox operating system.
Wherein, the homepage face of Firefox operating system is the entrance of client layer Gaia.The homepage of Firefox operating system
Face is by the HTML (Duan Chengxu that HyperText Markup Language (Hyper Text Markup language) language is write.It patrols
Collecting operation control script file is the file that logic control is carried out in control layer Gecko.
Specifically, the homepage face of Firefox operating system is executed during Firefox os starting,
The homepage face of Firefox operating system, which can call, needs associated documents to be used, including logical operation controls script file.
It should be noted that being inserted after system start-up but without mouse because mouse images define in systems
It is fashionable, do not have to display mouse images, so the initial display mode of mouse images is not show.Illustratively, Firefox is operated
Mouse images link is provided in the body container in the homepage face of system;CSS (the Cascading Style of mouse images
Sheets (cascading style sheets) display mode is none;Wherein none expression does not show the mouse images.
202, mouse insertion has been detected whether.
Specifically, whether having equipment access in driving layer Gonk detection circumscription socket, and the equipment of access is identified
With registration, determine whether access device is mouse.
203, when detecting mouse insertion, mouse device node is created.
Specifically, drive layer Gonk in the case where detecting that equipment accesses and the equipment accessed is mouse device,
Create the node for storing mouse message.
It should be noted that mouse device node not only can be used to store the location information of mouse, can also store
The operation information (such as mouse position, mono-/bis-are hit, left/right key etc.) of mouse.
204, whether mouse location information is stored in poll detection mouse device node.
Wherein, mouse location information is location information of the mouse images in display interface.Mouse images are set as being located at
The top of display interface.
Specifically, whether being stored with mouse in the mouse device node that control layer Gecko poll detection driving layer Gonk is defined
Cursor position information.Specific detection process can refer to step 101, and details are not described herein.
205, in the case where being stored with mouse location information in mouse device node, mouse is generated according to mouse location information
Mark mobile messaging.
It should be noted that because driving layer Gonk and control layer Gecko usually writes program by different programming languages,
And mouse device node is defined by driving layer Gonk, so control layer Gecko needs after obtaining mouse location information
Type, format of mouse location information etc. are converted, so that the program in control layer Gecko can identify that mouse position is believed
Breath.The process of " generating mouse mobile messaging according to mouse location information " described in this embodiment, exactly believes mouse position
Breath is converted to the process of the mouse mobile messaging being able to use in control layer Gecko, but the essence of mouse mobile messaging and mouse
Cursor position information is identical, is all used to indicate mouse images in the location information of display interface.
206, the display mode of mouse images is set as showing by logical operation control script file, and mobile according to mouse
The display properties of message setting mouse images.
It should be noted that the logical operation control script file in control layer Gecko can be defined in modification system
The attribute of mouse images is to control the displays of mouse images.
Specifically, it is aobvious that the logical operation control script file in control layer Gecko, which updates the display mode of mouse images,
Show, and determines the coordinate and coordinate value of the display of mouse images according to mouse mobile messaging.
It should be noted that the display properties of mouse images includes that the displaing coordinate axis of mouse images and mouse images are being sat
Specific coordinate value in parameter.The display properties of mouse images specifically can specifically pass through left (left), upper (top), the right side
(right) and under some or all of in (bottom) four attribute attribute determine the displaing coordinate axis of mouse images, and
According to mouse location information, coordinate value of the mouse images in reference axis will be set.
The embodiment of the invention provides a kind of display mouse calibration methods, have detected whether mouse insertion, have detected mouse
When insertion, mouse device node is created.Then whether it is stored with mouse location information in poll detection mouse device node, in institute
It states in the case where being stored with the mouse location information in mouse device node, mouse movement is generated according to mouse location information and is disappeared
Breath, the display mode of mouse images is set as showing by logical operation control script file, and is arranged according to mouse mobile messaging
The display properties of mouse images.In this way, passing through the top positioned at display interface of mouse images, and obtaining mouse position
After information, the display mode of mouse images and the display properties of mouse images are set, are being based on mouse images
The display interface of the equipment of Firefox is shown.
As shown in figure 3, it is a kind of functional schematic of device provided in an embodiment of the present invention.The device is based on red fox
The device of Firefox operating system.Refering to what is shown in Fig. 3, the device includes: poll detection module 301 and display module 302.
The poll detection module 301, for whether being stored with mouse location information in poll detection mouse device node;
The mouse location information is location information of the mouse images in display interface;The mouse images are set as being located at display circle
The top in face;
The display module 302, the case where for being stored with the mouse location information in the mouse device node
Under, the display mode of the mouse images is set as showing, and the mouse images are arranged according to the mouse location information
Display properties.
Further, on the basis of Fig. 3, as shown in figure 4, the device further include: the homepage face of Firefox operating system
Program module 303;Display module 302 includes: logical operation control script file submodule 3021.
The homepage face program module 303 of the Firefox operating system, for load logic operation control script file
Module 3021;
The logical operation controls script file submodule 3021, for setting the display mode of the mouse images to
It shows, and the display properties of the mouse images is set according to the mouse location information.
Further, on the basis of fig. 4, as shown in figure 5, display module 302 further include: mobile messaging generates submodule
3022。
The mobile messaging generates submodule 3022, for generating mouse mobile messaging according to the mouse location information;
The logical operation controls script file submodule 3021, for setting the display mode of the mouse images to
It shows, and the display properties of the mouse images is set according to the mouse mobile messaging.
Further, as shown in fig. 6, the device further include: external equipment detection module 304 and device node creation module
305。
The external equipment detection module 304, for detecting whether there is mouse insertion;
The device node creation module 305, for creating mouse device node when detecting mouse insertion.
Before the device node creation module 305 creates mouse device node, the display mode of the mouse images
Not show.
The embodiment of the invention provides a kind of devices, have detected whether mouse insertion, when detecting mouse insertion, creation
Mouse device node.Then whether it is stored with mouse location information in poll detection mouse device node, in the mouse device
In the case where being stored with the mouse location information in node, mouse mobile messaging, logic behaviour are generated according to mouse location information
Make control script file to be set as showing by the display mode of mouse images, and mouse images are arranged according to mouse mobile messaging
Display properties.In this way, pass through the top positioned at display interface of mouse images, and after obtaining mouse location information, if
The display mode of mouse images and the display properties of mouse images are set, finally makes mouse images in the equipment based on Firefox
Display interface show.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention
Step by step.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read) Only Memory, abbreviation
ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. are various can store
The medium of program code.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (2)
1. a kind of display mouse calibration method, which is characterized in that the method is applied to setting based on red fox Firefox operating system
Standby, all programs in the Firefox operating system are divided into driving layer Gonk, control layer Gecko and client layer according to function
Gaia;The described method includes:
The homepage face load logic operation control script file of the Firefox operating system;
Whether there is equipment access in the driving layer Gonk detection circumscription socket, and the equipment of access identified and registered,
Determine whether access device is mouse;When detecting mouse insertion, mouse device node is created;
The control layer Gecko poll detects in the mouse device node that the driving layer Gonk is defined whether be stored with mouse position
Confidence breath;The mouse location information is location information of the mouse images in display interface;The mouse images are set as position
In the top of display interface;
In the case where being stored with the mouse location information in the mouse device node, mouse location information is converted into institute
State the mouse mobile messaging being able to use in control layer Gecko;
The logical operation controls script file and is set as showing by the display mode of the mouse images, and according to the mouse
The display properties of the mouse images is arranged in mobile messaging.
2. the method according to claim 1, wherein before the creation mouse device node, the mouse
The display mode of image is not show.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410660514.XA CN105677309B (en) | 2014-11-18 | 2014-11-18 | A kind of method and device showing mouse |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410660514.XA CN105677309B (en) | 2014-11-18 | 2014-11-18 | A kind of method and device showing mouse |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677309A CN105677309A (en) | 2016-06-15 |
CN105677309B true CN105677309B (en) | 2019-03-15 |
Family
ID=56945475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410660514.XA Active CN105677309B (en) | 2014-11-18 | 2014-11-18 | A kind of method and device showing mouse |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105677309B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102465804B1 (en) * | 2015-05-12 | 2022-11-10 | 엘지전자 주식회사 | Image display device and method for controlling |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520850A (en) * | 2011-11-29 | 2012-06-27 | 青岛海信移动通信技术股份有限公司 | Processing method and device for input operation in wireless screen |
CN102637127A (en) * | 2012-02-24 | 2012-08-15 | 青岛海信电器股份有限公司 | Method for controlling mouse modules and electronic device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100498702C (en) * | 2007-04-29 | 2009-06-10 | 华为技术有限公司 | Configuring information processing method and arrangement, and platform system |
-
2014
- 2014-11-18 CN CN201410660514.XA patent/CN105677309B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520850A (en) * | 2011-11-29 | 2012-06-27 | 青岛海信移动通信技术股份有限公司 | Processing method and device for input operation in wireless screen |
CN102637127A (en) * | 2012-02-24 | 2012-08-15 | 青岛海信电器股份有限公司 | Method for controlling mouse modules and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN105677309A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200364028A1 (en) | Device and method for performing functions | |
CN106569900B (en) | Applied program processing method and device | |
KR102309175B1 (en) | Scrapped Information Providing Method and Apparatus | |
US20210256088A1 (en) | Method, apparatus, computer device and storage medium of page displaying | |
US20180213077A1 (en) | Method and apparatus for controlling smart device, and computer storage medium | |
CN104424338B (en) | The automatically generating device and automatic generation method of web system | |
EP2924593A1 (en) | Method and apparatus for constructing documents | |
CN105637478A (en) | Computer-aided development of native mobile application code | |
CN103577201B (en) | The update method and system of Embedded Double system | |
CN106462329A (en) | Light dismiss manager | |
US11481558B2 (en) | System and method for a scene builder | |
CN110516218A (en) | Generation method, terminal and the computer readable storage medium of table | |
CN104268163A (en) | Method and system for acquiring network management network element configuration interface | |
CN116360735A (en) | Form generation method, device, equipment and medium | |
EP2990968A1 (en) | Method for selecting area on web page and electronic device thereof | |
CN105677309B (en) | A kind of method and device showing mouse | |
CN103678349A (en) | Method and device for filtering useless data | |
US10445290B1 (en) | System and method for a smart configurable high performance interactive log file viewer | |
Schuler et al. | Rule-based generation of mobile user interfaces | |
CN108141474B (en) | Electronic device for sharing content with external device and method for sharing content thereof | |
CN106227713B (en) | The processing method and processing device of document | |
CN106066793B (en) | Markup language generating means and method | |
US11650798B2 (en) | Developing source code leveraging smart glasses | |
CN109388110A (en) | The method and automated system of function are provided in industrial automation system | |
KR102047510B1 (en) | Device management 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |