CN114153418A - Volume adjusting method and device, electronic equipment and storage medium - Google Patents

Volume adjusting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114153418A
CN114153418A CN202111301905.9A CN202111301905A CN114153418A CN 114153418 A CN114153418 A CN 114153418A CN 202111301905 A CN202111301905 A CN 202111301905A CN 114153418 A CN114153418 A CN 114153418A
Authority
CN
China
Prior art keywords
volume
event
detected
mouse
volume adjustment
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
CN202111301905.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.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic 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 Beijing Xiaomi Mobile Software Co Ltd, Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111301905.9A priority Critical patent/CN114153418A/en
Publication of CN114153418A publication Critical patent/CN114153418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a volume adjusting method and device, an electronic device and a storage medium. The method comprises the following steps: detecting the current position of a mouse pointer; if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, a volume adjustment event is triggered and detected; and if the volume adjusting event is detected, adjusting the volume of the electronic equipment. By the method, the use experience of the user can be improved.

Description

Volume adjusting method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a volume adjustment method and apparatus, an electronic device, and a storage medium.
Background
Generally, when a user controls the volume of a terminal device (e.g., a computer), the user needs to first click a volume control icon, and after detecting the click action, an operating system of the computer displays a volume control interface, so that the user drags an active control up or down to adjust the volume of the terminal based on the displayed interface. For example, dragging the active control up, the volume increases, dragging the active control down, the volume decreases.
According to the scheme, the volume can be adjusted by two steps, the user needs to click and drag the movable control, and the efficiency is not high.
Disclosure of Invention
The disclosure provides a volume adjustment method and device, an electronic device and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a volume adjustment method, including:
detecting the current position of a mouse pointer;
if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, a volume adjustment event is triggered and detected;
and if the volume adjusting event is detected, adjusting the volume of the electronic equipment.
In some embodiments, the triggering and detecting a volume adjustment event if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment includes:
and if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, and the stay time of the mouse pointer within the preset range is longer than a preset time threshold, triggering and detecting the volume adjustment event.
In some embodiments, the triggering detects a volume adjustment event, including:
triggering and detecting an activity event of a mouse wheel;
if the volume adjustment event is detected, adjusting the volume of the electronic device, including:
and if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller.
In some embodiments, the mouse wheel activity events include: a scroll event of a mouse wheel in a first direction or a second direction, wherein the first direction and the second direction are opposite directions;
if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller, wherein the method comprises the following steps:
if the rolling event in the first direction is detected, turning up the volume of the electronic equipment according to the rolling amplitude;
if the rolling event in the second direction is detected, turning down the volume of the electronic equipment according to the rolling amplitude;
wherein the volume adjustment amplitude is positively correlated with the scroll amplitude.
In some embodiments, the mouse wheel activity events include: a movement event of the mouse wheel in a third direction or a fourth direction, wherein the third direction and the fourth direction are opposite directions;
if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller, wherein the method comprises the following steps:
if the movement event of the mouse in the third direction is detected, turning up the volume of the electronic equipment;
and if the movement event of the mouse in the fourth direction is detected, turning down the volume of the electronic equipment.
In some embodiments, the triggering detects a volume adjustment event, including:
triggering and detecting a pressing event of a first key or a second key on the mouse;
if the volume adjustment event is detected, adjusting the volume of the electronic device, including:
if the pressing event of the first key is detected, turning down the volume of the electronic equipment according to the pressing duration;
if the pressing event of the second key is detected, the volume of the electronic equipment is increased according to the pressing duration;
the first key is different from the second key, and the volume adjusting amplitude is positively correlated with the pressing duration.
In some embodiments, the triggering detects a volume adjustment event, including:
triggering and detecting a touch event of a preset touch direction in a touch area of the mouse;
if the volume adjustment event is detected, adjusting the volume of the electronic device, including:
if a touch event in a first touch direction is detected, turning down the volume of the electronic equipment according to the touch displacement;
if a touch event in a second touch direction is detected, the volume of the electronic equipment is increased according to the touch displacement;
the first touch direction is different from the second touch direction, and the volume adjustment amplitude is positively correlated with the touch displacement.
In some embodiments, the method further comprises:
and if the volume adjusting event is detected, displaying the adjusted volume information on a display screen of the electronic equipment in real time.
According to a second aspect of the embodiments of the present disclosure, there is provided a volume adjustment device including:
a first detection module configured to detect a current position of a mouse pointer;
the second detection module is configured to trigger and detect a volume adjustment event if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment;
and the adjusting module is configured to adjust the volume of the electronic equipment if the volume adjusting event is detected.
In some embodiments, the second detecting module is further configured to trigger the detection of the volume adjustment event if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, and a staying time length of the mouse pointer within the preset range is greater than a preset time length threshold.
In some embodiments, the second detection module is further configured to trigger detection of an activity event of a mouse wheel;
the adjusting module is further configured to adjust the volume of the electronic device at least according to the moving direction of the roller wheel if the moving event of the mouse roller wheel is detected.
In some embodiments, the mouse wheel activity events include: a scroll event of a mouse wheel in a first direction or a second direction, wherein the first direction and the second direction are opposite directions;
the adjusting module is further configured to adjust the volume of the electronic device to be larger according to the scroll amplitude if the scroll event in the first direction is detected; if the rolling event in the second direction is detected, turning down the volume of the electronic equipment according to the rolling amplitude; wherein the volume adjustment amplitude is positively correlated with the scroll amplitude.
In some embodiments, the mouse wheel activity events include: a movement event of the mouse wheel in a third direction or a fourth direction, wherein the third direction and the fourth direction are opposite directions;
the adjusting module is further configured to adjust the volume of the electronic device to be larger if a movement event of the mouse in a third direction is detected; and if the movement event of the mouse in the fourth direction is detected, turning down the volume of the electronic equipment.
In some embodiments, the second detection module is further configured to trigger detection of a pressing event of a first key or a second key on the mouse;
the adjusting module is further configured to turn down the volume of the electronic device according to the pressing duration if the pressing event of the first key is detected; if the pressing event of the second key is detected, the volume of the electronic equipment is increased according to the pressing duration; the first key is different from the second key, and the volume adjusting amplitude is positively correlated with the pressing duration.
In some embodiments, the second detection module is further configured to trigger detection of a touch event in a predetermined touch direction within the touch area of the mouse;
the adjusting module is further configured to reduce the volume of the electronic device according to the touch displacement if the touch event in the first touch direction is detected; if a touch event in a second touch direction is detected, the volume of the electronic equipment is increased according to the touch displacement; the first touch direction is different from the second touch direction, and the volume adjustment amplitude is positively correlated with the touch displacement.
In some embodiments, the apparatus further comprises:
and the display module is configured to display the adjusted volume information on a display screen of the electronic equipment in real time if the volume adjustment event is detected.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the volume adjustment method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the volume adjustment method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the electronic device can trigger the detection of the volume adjustment event only by detecting that the mouse pointer is parked within the preset range of the volume adjustment identifier, and the user does not need to move the mouse to the volume control icon and click the volume control icon, so that the operation of the user can be simplified, and the use experience of the user can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a first flowchart illustrating a volume adjustment method according to an embodiment of the present disclosure.
Fig. 2 is a flow chart of a volume adjustment method shown in the embodiment of the present disclosure.
Fig. 3 is a flowchart of a volume adjustment method shown in the embodiment of the present disclosure.
Fig. 4 is a flowchart of a volume adjustment method according to a fourth embodiment of the disclosure.
Fig. 5 is a diagram illustrating a volume adjustment device according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device shown in an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flow chart of a volume adjustment method shown in an embodiment of the present disclosure, and as shown in fig. 1, the volume adjustment method applied to an electronic device includes the following steps:
s11, detecting the current position of the mouse pointer;
s12, if the current position of the mouse pointer is within the preset range of the identifier for indicating volume adjustment, triggering and detecting a volume adjustment event;
and S13, if the volume adjusting event is detected, adjusting the volume of the electronic equipment.
In the embodiment of the present disclosure, the electronic device may be a desktop computer, a notebook computer, or the like, which may be connected with a mouse. The electronic device may execute the steps S11 to S13 within a preset time period of power-on, and may execute the steps S11 to S13 within an arbitrary time period after the power-on operation.
In step S12, the indicator indicating the volume adjustment may be located in the lower right corner of the electronic device, such as a volume icon on a taskbar. In the present disclosure, when the mouse pointer is within a preset range of the identifier for indicating volume adjustment, a detection volume adjustment event is triggered. The preset range may be any range around the identifier of the volume adjustment, or may be a range in a certain specified direction, which is not limited in this embodiment of the present disclosure.
In step S13, if the electronic device detects a volume adjustment event, the volume of the electronic device is adjusted. The volume adjustment event may be a voice event based on a voice input of a user, for example, if the electronic device receives a voice event such as "adjust volume" or "adjust volume to 70 db", the volume of the electronic device may be adjusted according to the voice event. In addition, the volume adjustment event may also be an event based on manual operation of the mouse by the user, and the volume adjustment event in this manner will be described later.
It can be understood that, in the embodiment of the disclosure, the electronic device may trigger the detection of the volume adjustment event only by detecting that the mouse pointer is parked within the preset range of the volume adjustment identifier, without the user moving the mouse to the volume control icon and clicking the volume control icon, so that the operation of the user may be simplified, and the user experience of the user may be improved.
In an embodiment, the triggering and detecting a volume adjustment event if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment includes:
and if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, and the stay time of the mouse pointer within the preset range is longer than a preset time threshold, triggering and detecting the volume adjustment event.
In this embodiment, not only the position of the mouse pointer is taken into account, but also the length of time the mouse stays within the preset range is incorporated, since the user may inadvertently move the mouse into the preset range of the indicator indicating the volume adjustment, without the user wanting to adjust the volume of the electronic device. When the user has an intention to adjust the volume, the stay time of the mouse pointer on the mark indicating the volume adjustment may be longer, so the disclosure determines the intention of the user by combining whether the stay time of the mouse pointer is greater than the preset time threshold.
By the method, the error adjustment of the user when the volume is adjusted unintentionally can be reduced, and therefore the user experience can be improved.
In one embodiment, the method further comprises:
and if the volume adjusting event is detected, displaying the adjusted volume information on a display screen of the electronic equipment in real time.
In this embodiment, if the electronic device detects a volume adjustment event, the adjusted volume information is displayed on the display screen of the electronic device in real time, for example, the adjusted volume information may be located above the indicator indicating volume adjustment.
In the embodiment, the adjusted volume information can be displayed in real time through the scroll bar, or the adjusted value can be directly displayed, so that a user can intuitively perceive the volume information conveniently, and the user can conveniently adjust the volume purposefully by combining the displayed volume information.
As mentioned above, the volume adjustment event may be based on a manual operation event of the mouse by the user, taking a scrolling activity as an example, fig. 2 is a flowchart of a volume adjustment method shown in the embodiment of the present disclosure, and as shown in fig. 2, the volume adjustment method applied in the electronic device includes the following steps:
s11, detecting the current position of the mouse pointer;
s12a, if the current position of the mouse pointer is within the preset range of the identifier for indicating volume adjustment, triggering and detecting the activity event of the mouse wheel;
s13a, if the activity event of the mouse wheel is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the wheel.
In this embodiment, the manual operation event of the mouse by the user includes an operation event of the mouse wheel by the user. Therefore, after the electronic equipment detects the moving event of the roller, the volume of the electronic equipment can be adjusted at least according to the moving direction of the roller.
In one embodiment, the activity event of the mouse wheel includes: a scroll event of a mouse wheel in a first direction or a second direction, wherein the first direction and the second direction are opposite directions;
if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller, wherein the method comprises the following steps:
if the rolling event in the first direction is detected, turning up the volume of the electronic equipment according to the rolling amplitude;
if the rolling event in the second direction is detected, turning down the volume of the electronic equipment according to the rolling amplitude;
wherein the volume adjustment amplitude is positively correlated with the scroll amplitude.
In this embodiment, the activity events of the roller include scrolling events in two opposite directions, the electronic device adjusts the volume of the electronic device according to the scrolling event of the roller in the first direction or the second direction in combination with the scrolling amplitude, and on the basis that the volume adjustment event is wakened up and detected without clicking a volume icon by a user, on one hand, the electronic device does not need to display a volume control interface, and the volume adjustment efficiency can be improved by directly adjusting the volume according to the scrolling direction and the scrolling amplitude of the roller; on the other hand, even after the volume control interface is displayed, the user does not need to drag the movable control to adjust the volume, the volume is adjusted according to the rolling direction and the rolling amplitude of the roller, the user operation can be simplified, and the user experience can be improved.
For example, the first direction may be an upward direction and the second direction may be a downward direction. Of course, the first direction may also be a downward direction, and the corresponding second direction is an upward direction, which does not limit the embodiment of the present disclosure. In addition, the electronic device stores a volume adjustment value corresponding to the scroll amplitude, so that the electronic device can determine the volume adjustment amplitude according to the current scroll amplitude.
It should be noted that the volume adjustment value corresponding to the scroll amplitude stored in the electronic device may be determined in a laboratory environment and built in before the electronic device leaves the factory, or may be customized by a user after the electronic device leaves the factory.
In one embodiment, the activity event of the mouse wheel includes: a movement event of the mouse wheel in a third direction or a fourth direction, wherein the third direction and the fourth direction are opposite directions;
if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller, wherein the method comprises the following steps:
if the movement event of the mouse in the third direction is detected, turning up the volume of the electronic equipment;
and if the movement event of the mouse in the fourth direction is detected, turning down the volume of the electronic equipment.
In this embodiment, the scroll wheel of the mouse may also perform an active event other than scrolling, so that the volume of the electronic device may be adjusted according to the moving direction of the scroll wheel after the electronic device detects a moving event of the scroll wheel in the non-scrolling direction. Through this kind of mode, also can promote volume control efficiency, simplify user operation, promote user experience.
Illustratively, the third direction may be a leftward direction and the fourth direction may be a rightward direction. Of course, the third direction may also be a rightward direction, and the corresponding fourth direction is a leftward direction, which is not limited to this embodiment of the disclosure. In addition, in this embodiment, when the scroll wheel moves in the third direction or the fourth direction, the adjustment amplitude of the volume may be determined according to the displacement of the movement, and the magnitude of the displacement is positively correlated to the adjustment of the amplitude of the volume. If the roller is an elastic piece, after the roller deflects based on the operation of the user in the third direction or the fourth direction, the roller can automatically reset if the user does not operate the roller, and at the moment, the adjustment range of the volume can be determined according to the deviation times of the roller.
It should be noted that, in the electronic device, a volume adjustment value corresponding to the movement displacement of the case or a volume adjustment value corresponding to one movement of the key may be stored. The correspondence may be determined in a laboratory environment and built in before the electronic device leaves the factory, or may be customized by a user after the electronic device leaves the factory.
As mentioned above, the volume adjustment event may be based on a manual operation event of the mouse by the user, taking the pressing of the mouse button by the user as an example, fig. 3 is a flowchart of a volume adjustment method shown in the embodiment of the present disclosure, and as shown in fig. 3, the volume adjustment method applied in the electronic device includes the following steps:
s11, detecting the current position of the mouse pointer;
s12b, if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment, triggering and detecting a pressing event of a first key or a second key on the mouse;
s13b, if the pressing event of the first key is detected, turning down the volume of the electronic equipment according to the pressing duration; if the pressing event of the second key is detected, the volume of the electronic equipment is increased according to the pressing duration; the first key is different from the second key, and the volume adjusting amplitude is positively correlated with the pressing duration.
In this embodiment, the manual operation event of the mouse by the user includes a pressing event of a key on the mouse by the user, and in the present disclosure, after the pressing event of the first key or the second key is detected, the volume of the electronic device may be adjusted according to the pressing duration.
Illustratively, the first button may be a left button of a mouse and the second button may be a right button of the mouse. Of course, the first button may also be a direction of a right mouse button, and the corresponding second button is a left mouse button, which is not limited in this embodiment of the disclosure. In addition, the electronic equipment stores the volume adjustment value corresponding to the pressing duration, so that the electronic equipment can determine the volume adjustment amplitude according to the current pressing duration.
It should be noted that the volume adjustment value corresponding to the pressing duration stored in the electronic device may be determined in a laboratory environment and built in before the electronic device leaves the factory, or may be customized by the user after the electronic device leaves the factory.
It can be understood that, in this embodiment, after the electronic device detects the event of pressing the key, the volume of the electronic device is adjusted according to the pressing duration, and on the basis that the user does not need to click the volume icon to wake up the detected volume adjustment event, on one hand, the electronic device does not need to display a volume control interface, and on the other hand, even after the volume control interface is displayed, the user does not need to drag a movable control back and forth to adjust the volume, so that the user operation can be simplified, and the user experience can be improved.
As described above, the volume adjustment event may be based on a manual operation event of the mouse by the user, taking the touch of the mouse by the user as an example, fig. 4 is a flowchart of a volume adjustment method shown in the embodiment of the present disclosure, and as shown in fig. 4, the volume adjustment method applied to the electronic device includes the following steps:
s11, detecting the current position of the mouse pointer;
s12c, if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment, triggering and detecting a touch event of a preset touch direction in a touch area of the mouse;
s13c, if a touch event in a first touch direction is detected, turning down the volume of the electronic equipment according to the touch displacement; if a touch event in a second touch direction is detected, the volume of the electronic equipment is increased according to the touch displacement; the first touch direction is different from the second touch direction, and the volume adjustment amplitude is positively correlated with the touch displacement.
In this embodiment, the manual operation event of the mouse by the user includes a touch event of the user on a touch area on the mouse, and in the present disclosure, after the touch event of a predetermined touch direction in the touch area is detected, the volume of the electronic device may be adjusted according to the touch displacement.
For example, the first touch direction may be a left direction, and the second touch direction may be a right direction. Of course, the first touch direction may also be a downward direction, and the second touch direction may also be an upward direction, which is not limited to this embodiment of the disclosure. In addition, the electronic device stores a volume adjustment value corresponding to the touch displacement, so that the electronic device can determine the volume adjustment amplitude according to the current touch displacement.
It should be noted that the volume adjustment value corresponding to the touch displacement stored in the electronic device may be determined in a laboratory environment and built in before the electronic device leaves the factory, or may be customized by a user after the electronic device leaves the factory.
It can be understood that, in this embodiment, after the electronic device detects a touch event in a predetermined touch direction, the volume of the electronic device is adjusted according to the touch displacement, and on the basis that the volume adjustment event is wakened up and detected without clicking a volume icon by a user, on one hand, a volume control interface may not be displayed by the electronic device, and on the other hand, even after the volume control interface is displayed, the user does not need to drag a movable control back and forth to adjust the volume, so that the user operation can be simplified, and the user experience can be improved.
It should be noted that, after detecting the volume adjustment event according to the focus trigger of the mouse pointer, the present disclosure is not limited to adjusting the volume in the manner of fig. 2 to 4, and for example, the volume may be adjusted in conjunction with a predetermined operation of the keyboard by the user.
Fig. 5 is a diagram illustrating a volume adjustment device according to an exemplary embodiment. Referring to fig. 5, the apparatus includes:
a first detection module 101 configured to detect a current position of a mouse pointer;
the second detection module 102 is configured to trigger and detect a volume adjustment event if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment;
the adjusting module 103 is configured to adjust the volume of the electronic device if the volume adjusting event is detected.
In some embodiments, the second detecting module 102 is further configured to trigger the detection of the volume adjustment event if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment, and a staying time length of the mouse pointer within the preset range is greater than a preset time length threshold.
In some embodiments, the second detection module 102 is further configured to trigger detection of an activity event of a mouse wheel;
the adjusting module is further configured to adjust the volume of the electronic device at least according to the moving direction of the roller wheel if the moving event of the mouse roller wheel is detected.
In some embodiments, the mouse wheel activity events include: a scroll event of a mouse wheel in a first direction or a second direction, wherein the first direction and the second direction are opposite directions;
the adjusting module 103 is further configured to adjust the volume of the electronic device to be larger according to the scroll amplitude if the scroll event in the first direction is detected; if the rolling event in the second direction is detected, turning down the volume of the electronic equipment according to the rolling amplitude; wherein the volume adjustment amplitude is positively correlated with the scroll amplitude.
In some embodiments, the mouse wheel activity events include: a movement event of the mouse wheel in a third direction or a fourth direction, wherein the third direction and the fourth direction are opposite directions;
the adjusting module 103 is further configured to adjust the volume of the electronic device to be larger if a movement event of the mouse in a third direction is detected; and if the movement event of the mouse in the fourth direction is detected, turning down the volume of the electronic equipment.
In some embodiments, the second detection module 102 is further configured to trigger detection of a pressing event of a first button or a second button on the mouse;
the adjusting module 103 is further configured to turn down the volume of the electronic device according to the pressing duration if the pressing event of the first key is detected; if the pressing event of the second key is detected, the volume of the electronic equipment is increased according to the pressing duration; the first key is different from the second key, and the volume adjusting amplitude is positively correlated with the pressing duration.
In some embodiments, the second detecting module 102 is further configured to trigger detection of a touch event in a predetermined touch direction within the touch area of the mouse;
the adjusting module 103 is further configured to adjust the volume of the electronic device to be smaller according to the touch displacement if the touch event in the first touch direction is detected; if a touch event in a second touch direction is detected, the volume of the electronic equipment is increased according to the touch displacement; the first touch direction is different from the second touch direction, and the volume adjustment amplitude is positively correlated with the touch displacement.
In some embodiments, the apparatus further comprises:
the display module 104 is configured to display the adjusted volume information on a display screen of the electronic device in real time if the volume adjustment event is detected.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an electronic device apparatus 800 in accordance with an example embodiment. For example, the apparatus 800 may be a computer, tablet computer, or the like.
Referring to fig. 6, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a volume adjustment method, the method comprising:
detecting the current position of a mouse pointer;
if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, a volume adjustment event is triggered and detected;
and if the volume adjusting event is detected, adjusting the volume of the electronic equipment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A volume adjusting method is applied to an electronic device, and comprises the following steps:
detecting the current position of a mouse pointer;
if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, a volume adjustment event is triggered and detected;
and if the volume adjusting event is detected, adjusting the volume of the electronic equipment.
2. The method of claim 1, wherein the triggering the detection of the volume adjustment event if the current position of the mouse pointer is within a preset range of an indicator for indicating volume adjustment comprises:
and if the current position of the mouse pointer is within a preset range of an identifier for indicating volume adjustment, and the stay time of the mouse pointer within the preset range is longer than a preset time threshold, triggering and detecting the volume adjustment event.
3. The method of claim 1 or 2, wherein the triggering detection of a volume adjustment event comprises:
triggering and detecting an activity event of a mouse wheel;
if the volume adjustment event is detected, adjusting the volume of the electronic device, including:
and if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller.
4. The method of claim 3, wherein the activity event of the mouse wheel comprises: a scroll event of a mouse wheel in a first direction or a second direction, wherein the first direction and the second direction are opposite directions;
if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller, wherein the method comprises the following steps:
if the rolling event in the first direction is detected, turning up the volume of the electronic equipment according to the rolling amplitude;
if the rolling event in the second direction is detected, turning down the volume of the electronic equipment according to the rolling amplitude;
wherein the volume adjustment amplitude is positively correlated with the scroll amplitude.
5. The method of claim 3, wherein the activity event of the mouse wheel comprises: a movement event of the mouse wheel in a third direction or a fourth direction, wherein the third direction and the fourth direction are opposite directions;
if the activity event of the mouse roller is detected, adjusting the volume of the electronic equipment at least according to the activity direction of the roller, wherein the method comprises the following steps:
if the movement event of the mouse in the third direction is detected, turning up the volume of the electronic equipment;
and if the movement event of the mouse in the fourth direction is detected, turning down the volume of the electronic equipment.
6. The method of claim 1 or 2, wherein the triggering detection of a volume adjustment event comprises:
triggering and detecting a pressing event of a first key or a second key on the mouse;
if the volume adjustment event is detected, adjusting the volume of the electronic device, including:
if the pressing event of the first key is detected, turning down the volume of the electronic equipment according to the pressing duration;
if the pressing event of the second key is detected, the volume of the electronic equipment is increased according to the pressing duration;
the first key is different from the second key, and the volume adjusting amplitude is positively correlated with the pressing duration.
7. The method of claim 1 or 2, wherein the triggering detection of a volume adjustment event comprises:
triggering and detecting a touch event of a preset touch direction in a touch area of the mouse;
if the volume adjustment event is detected, adjusting the volume of the electronic device, including:
if a touch event in a first touch direction is detected, turning down the volume of the electronic equipment according to the touch displacement;
if a touch event in a second touch direction is detected, the volume of the electronic equipment is increased according to the touch displacement;
the first touch direction is different from the second touch direction, and the volume adjustment amplitude is positively correlated with the touch displacement.
8. The method according to claim 1 or 2, characterized in that the method further comprises:
and if the volume adjusting event is detected, displaying the adjusted volume information on a display screen of the electronic equipment in real time.
9. A volume adjustment device, applied to an electronic device, the device comprising:
a first detection module configured to detect a current position of a mouse pointer;
the second detection module is configured to trigger and detect a volume adjustment event if the current position of the mouse pointer is within a preset range of the identifier for indicating volume adjustment;
and the adjusting module is configured to adjust the volume of the electronic equipment if the volume adjusting event is detected.
10. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the volume adjustment method of any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the volume adjustment method of any one of claims 1 to 8.
CN202111301905.9A 2021-11-04 2021-11-04 Volume adjusting method and device, electronic equipment and storage medium Pending CN114153418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111301905.9A CN114153418A (en) 2021-11-04 2021-11-04 Volume adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111301905.9A CN114153418A (en) 2021-11-04 2021-11-04 Volume adjusting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114153418A true CN114153418A (en) 2022-03-08

Family

ID=80459407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111301905.9A Pending CN114153418A (en) 2021-11-04 2021-11-04 Volume adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114153418A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030000378A (en) * 2001-06-23 2003-01-06 정우협 How to adjust computer volume (volume) by mouse
CN102253741A (en) * 2011-08-04 2011-11-23 魏新成 Method for implementing common function operation through continuous actions of mouse button
CN102279665A (en) * 2011-06-24 2011-12-14 Tcl集团股份有限公司 Television remote control method, device and system based on touchpad remote control
CN202351810U (en) * 2011-10-25 2012-07-25 邵明省 Mouse with playing volume control function
CN104516638A (en) * 2013-09-27 2015-04-15 深圳市快播科技有限公司 Volume control method and device
CN104699268A (en) * 2013-12-04 2015-06-10 西安奇维科技股份有限公司 Mouse capable of controlling speaker
CN108509177A (en) * 2018-04-12 2018-09-07 出门问问信息科技有限公司 A kind of volume adjusting method, device, electronic equipment and storage medium
CN109032477A (en) * 2018-07-31 2018-12-18 深圳点猫科技有限公司 Method and education notebook based on education notebook control sound or bluetooth
CN109271072A (en) * 2018-07-31 2019-01-25 深圳点猫科技有限公司 A kind of volume adjusting method and system based on education operating system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030000378A (en) * 2001-06-23 2003-01-06 정우협 How to adjust computer volume (volume) by mouse
CN102279665A (en) * 2011-06-24 2011-12-14 Tcl集团股份有限公司 Television remote control method, device and system based on touchpad remote control
CN102253741A (en) * 2011-08-04 2011-11-23 魏新成 Method for implementing common function operation through continuous actions of mouse button
CN202351810U (en) * 2011-10-25 2012-07-25 邵明省 Mouse with playing volume control function
CN104516638A (en) * 2013-09-27 2015-04-15 深圳市快播科技有限公司 Volume control method and device
CN104699268A (en) * 2013-12-04 2015-06-10 西安奇维科技股份有限公司 Mouse capable of controlling speaker
CN108509177A (en) * 2018-04-12 2018-09-07 出门问问信息科技有限公司 A kind of volume adjusting method, device, electronic equipment and storage medium
CN109032477A (en) * 2018-07-31 2018-12-18 深圳点猫科技有限公司 Method and education notebook based on education notebook control sound or bluetooth
CN109271072A (en) * 2018-07-31 2019-01-25 深圳点猫科技有限公司 A kind of volume adjusting method and system based on education operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贵州省教育委员会教育科学研究所: "《电工技术与家电使用》", 30 April 1994, 贵州人民出版社, pages: 91 *

Similar Documents

Publication Publication Date Title
CN107908351B (en) Application interface display method and device and storage medium
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
EP3306441A1 (en) Temperature control method and apparatus
CN107102772B (en) Touch control method and device
CN104317402B (en) Description information display method and device and electronic equipment
CN106802741B (en) Method and device for determining screen edge touch event and mobile terminal
EP3361369B1 (en) Method and device for displaying time on mobile device
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
CN111399720A (en) Method and device for displaying application interface and storage medium
CN107885418B (en) Terminal, split screen display method and device
CN107656694B (en) Display control method and device of user interface
CN107132983B (en) Split-screen window operation method and device
CN108874450B (en) Method and device for waking up voice assistant
CN109769191B (en) Audio output detection method and device and electronic equipment
CN106445376B (en) Webpage operation method and device
CN106919302B (en) Operation control method and device of mobile terminal
CN111273979B (en) Information processing method, device and storage medium
CN109521923B (en) Floating window control method and device and storage medium
CN111506234B (en) Method and device for preventing false touch of edge of touch screen, storage medium and electronic equipment
CN107402677B (en) Method and device for recognizing finger lifting in touch operation and terminal
CN107832112B (en) Wallpaper setting method and device
CN114153418A (en) Volume adjusting method and device, electronic equipment and storage medium
CN108804009B (en) Gesture recognition method and device
CN114442789A (en) Dark screen control method, device, equipment and storage medium
CN107621990B (en) Control method and device of terminal key and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination