[go: up one dir, main page]

CN106020669A - Configuration method and apparatus of key functions, and electronic device - Google Patents

Configuration method and apparatus of key functions, and electronic device Download PDF

Info

Publication number
CN106020669A
CN106020669A CN201610345073.3A CN201610345073A CN106020669A CN 106020669 A CN106020669 A CN 106020669A CN 201610345073 A CN201610345073 A CN 201610345073A CN 106020669 A CN106020669 A CN 106020669A
Authority
CN
China
Prior art keywords
electronic device
function
preset
handed
preset physical
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
CN201610345073.3A
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
Original Assignee
Beijing Xiaomi Mobile Software 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 filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610345073.3A priority Critical patent/CN106020669A/en
Publication of CN106020669A publication Critical patent/CN106020669A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开是关于一种按键功能的配置方法及装置、电子设备,该方法可以包括:通过位于电子设备的边框处的预置传感器,采集握持特征参数;根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。通过本公开的技术方案,可以自适应于用户采用的单手握持方式,便于用户实现对大屏终端的单手操控。

The present disclosure relates to a method and device for configuring button functions, and an electronic device. The method may include: collecting a grip characteristic parameter through a preset sensor located at the frame of the electronic device; According to the conformity of the characteristic parameters of left-hand holding or right-hand holding, identifying whether the electronic device is held by the left hand or right hand; configuring the trigger function of the preset physical button on the electronic device, to match the way it is held. Through the technical solution of the present disclosure, it can be adapted to the one-handed holding mode adopted by the user, and it is convenient for the user to realize one-handed manipulation of the large-screen terminal.

Description

按键功能的配置方法及装置、电子设备Button function configuration method and device, electronic equipment

技术领域technical field

本公开涉及终端技术领域,尤其涉及一种按键功能的配置方法及装置、电子设备。The present disclosure relates to the technical field of terminals, and in particular, to a method and device for configuring button functions, and electronic equipment.

背景技术Background technique

移动互联网时代的到来,手机、平板等电子设备在很多方面代替了电脑,以满足于人们的上网、看视频和玩游戏等多种需求。由于大屏幕的电子设备给用户带来的使用体验更佳,使得诸如大屏手机等电子设备越来越受欢迎。但是,由于电子设备的尺寸增大,使得用户在单手握持电子设备时,形成的单手操控范围无法覆盖电子设备上的所有操控目标,因而导致了用户在单手操作上的不便。With the advent of the mobile Internet era, mobile phones, tablets and other electronic devices have replaced computers in many ways to meet people's various needs such as surfing the Internet, watching videos and playing games. Electronic devices such as large-screen mobile phones are becoming more and more popular because the electronic devices with large screens bring better experience to users. However, due to the increase in the size of the electronic device, when the user holds the electronic device with one hand, the formed one-handed manipulation range cannot cover all manipulation targets on the electronic device, thus causing inconvenience to the user in one-handed operation.

在相关技术中,针对电子设备的屏幕显示内容,通过对屏幕显示内容的临时性缩放控制,使得屏幕显示内容能够进入用户的单手操控范围内,从而便于用户对屏幕显示内容进行单手的触控操作。In related technologies, for the screen display content of electronic devices, through temporary zoom control of the screen display content, the screen display content can enter the user's one-hand control range, so that the user can easily touch the screen display content with one hand. control operation.

发明内容Contents of the invention

本公开提供一种按键功能的配置方法及装置、电子设备,以解决相关技术中的不足。The disclosure provides a button function configuration method, device, and electronic equipment to solve the deficiencies in related technologies.

根据本公开实施例的第一方面,提供一种按键功能的配置方法,包括:According to the first aspect of the embodiments of the present disclosure, a method for configuring key functions is provided, including:

通过位于电子设备的边框处的预置传感器,采集握持特征参数;Collecting characteristic parameters of the grip through the preset sensor located at the frame of the electronic device;

根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;Identifying that the electronic device is held in a left-handed or right-handed manner according to the conformity of the holding characteristic parameter with the predefined left-handed holding characteristic parameter or right-handed holding characteristic parameter;

配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The trigger function of the preset physical button on the electronic device is configured to match the way of being held.

可选的,当所述预置传感器为压力传感器时,所述握持特征参数包括以下至少之一:受力位置、受力面积。Optionally, when the preset sensor is a pressure sensor, the grip characteristic parameters include at least one of the following: force-bearing position and force-bearing area.

可选的,所述配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式,包括:Optionally, configuring the triggering function of the preset physical button on the electronic device to match the way of being held includes:

确定所述被握持方式对应的单手操控范围内的预设物理按键;Determining a preset physical button within the range of one-handed manipulation corresponding to the held manner;

将所述预设物理按键配置为预定义的常用功能。The preset physical keys are configured as predefined common functions.

可选的,还包括:Optionally, also include:

当所述预定义的常用功能区别于所述预设物理按键的原始功能时,将所述原始功能配置于所述单手操控范围外的其他预设物理按键。When the predefined commonly used function is different from the original function of the preset physical button, the original function is configured on other preset physical buttons outside the range of the one-handed control.

可选的,还包括:Optionally, also include:

采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示。The trigger function configured on the preset physical key is prompted by using a predefined prompt manner corresponding to the trigger function.

可选的,所述采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示,包括以下至少之一:Optionally, the use of a predefined prompt method corresponding to the trigger function to prompt the trigger function configured on the preset physical button includes at least one of the following:

为所述预设物理按键配置与所述触发功能对应的背光颜色;Configuring a backlight color corresponding to the trigger function for the preset physical button;

为所述预设物理按键配置与所述触发功能对应的背光亮度。Configuring backlight brightness corresponding to the trigger function for the preset physical key.

根据本公开实施例的第二方面,提供一种按键功能的配置装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for configuring button functions, including:

采集单元,通过位于电子设备的边框处的预置传感器,采集握持特征参数;The acquisition unit collects the grip characteristic parameters through the preset sensor located at the frame of the electronic device;

识别单元,根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;The identification unit is configured to identify whether the electronic device is held by the left hand or the right hand according to the conformity of the holding characteristic parameters with the predefined left-hand holding characteristic parameters or right-hand holding characteristic parameters;

第一配置单元,配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The first configuration unit is configured to configure the trigger function of the preset physical button on the electronic device to match the gripping manner.

可选的,所述识别单元包括:Optionally, the identification unit includes:

采集子单元,通过位于所述电子设备的边框处的预置传感器,采集握持特征参数;The collection sub-unit collects the grip characteristic parameters through the preset sensor located at the frame of the electronic device;

方式确定子单元,根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,确定所述被握持方式。The manner determination subunit determines the gripping manner according to the conformity of the gripping characteristic parameter with the predefined left-hand gripping characteristic parameter or right-hand gripping characteristic parameter.

可选的,当所述预置传感器为压力传感器时,所述握持特征参数包括以下至少之一:受力位置、受力面积。Optionally, when the preset sensor is a pressure sensor, the grip characteristic parameters include at least one of the following: force-bearing position and force-bearing area.

可选的,所述第一配置单元包括:Optionally, the first configuration unit includes:

按键确定子单元,确定所述被握持方式对应的单手操控范围内的预设物理按键;The button determination subunit determines the preset physical buttons within the range of one-handed manipulation corresponding to the gripping manner;

功能配置子单元,将所述预设物理按键配置为预定义的常用功能。The function configuration subunit configures the preset physical keys as predefined common functions.

可选的,还包括:Optionally, also include:

第二配置单元,当所述预定义的常用功能区别于所述预设物理按键的原始功能时,将所述原始功能配置于所述单手操控范围外的其他预设物理按键。The second configuration unit is configured to configure the original function on other preset physical keys outside the one-hand control range when the predefined commonly used function is different from the original function of the preset physical key.

可选的,还包括:Optionally, also include:

提示单元,采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示。The prompting unit is configured to prompt the triggering function configured on the preset physical key by using a predefined prompting manner corresponding to the triggering function.

可选的,所述提示单元包括以下至少之一:颜色提示子单元、亮度提示子单元;Optionally, the prompting unit includes at least one of the following: a color prompting subunit, a brightness prompting subunit;

所述颜色提示子单元,为所述预设物理按键配置与所述触发功能对应的背光颜色;The color prompt subunit configures the preset physical key with a backlight color corresponding to the trigger function;

所述亮度提示子单元,为所述预设物理按键配置与所述触发功能对应的背光亮度。The brightness prompting subunit is configured to configure a backlight brightness corresponding to the trigger function for the preset physical key.

根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

通过位于电子设备的边框处的预置传感器,采集握持特征参数;Collecting characteristic parameters of the grip through the preset sensor located at the frame of the electronic device;

根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;Identifying that the electronic device is held in a left-handed or right-handed manner according to the conformity of the holding characteristic parameter with the predefined left-handed holding characteristic parameter or right-handed holding characteristic parameter;

配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The trigger function of the preset physical button on the electronic device is configured to match the way of being held.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

由上述实施例可知,本公开通过识别出用户采取的单手握持方式,并对电子设备上的物理按键进行相应的功能配置,使得在物理按键无法变更设置位置的情况下,仍然能够根据用户采取的单手握持方式,确保其能够在单手操控范围内实现对相应功能的触发操作,便于实现用户对大屏终端的屏幕显示内容和物理按键的全面单手操控。It can be seen from the above-mentioned embodiments that the present disclosure recognizes the one-handed holding method adopted by the user, and configures corresponding functions for the physical buttons on the electronic device, so that when the physical buttons cannot change the setting position, it can still be set according to the user's The one-handed holding method is adopted to ensure that it can realize the trigger operation of the corresponding function within the range of one-handed control, which is convenient for the user to realize the comprehensive one-handed control of the screen display content and physical buttons of the large-screen terminal.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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 present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是用户单手操控的示意图。FIG. 1 is a schematic diagram of a user's one-handed manipulation.

图2是根据一示例性实施例示出的一种按键功能的配置方法的流程图。Fig. 2 is a flow chart showing a method for configuring key functions according to an exemplary embodiment.

图3是根据一示例性实施例示出的另一种按键功能的配置方法的流程图。Fig. 3 is a flow chart showing another method for configuring key functions according to an exemplary embodiment.

图4是根据一示例性实施例之一示出的一种左手握持的示意图。Fig. 4 is a schematic diagram of a left-hand grip according to one of the exemplary embodiments.

图5是根据一示例性实施例之二示出的一种左手握持的示意图。Fig. 5 is a schematic diagram of a left-hand grip according to a second exemplary embodiment.

图6是根据一示例性实施例之三示出的一种左手握持的示意图。Fig. 6 is a schematic diagram of a left-hand grip according to a third exemplary embodiment.

图7-11是根据一示例性实施例示出的一种按键功能的配置装置的框图。7-11 are block diagrams of an apparatus for configuring key functions according to an exemplary embodiment.

图12是根据一示例性实施例示出的一种用于按键功能的配置的装置的结构示意图。Fig. 12 is a schematic structural diagram of an apparatus for configuring key functions according to an exemplary embodiment.

具体实施方式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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

图1是用户单手操控的示意图。如图1所示,当用户单手握持电子设备时,形成的单手操控范围(即图1所示的阴影区域)通常是指用户的大拇指所形成的弧形区域,当然本公开并不对此进行限制;那么,在相关技术中,通过对屏幕显示内容的缩放处理,使其基本能够进入用户的单手操控范围内,从而确保用户能够实现单手操控。FIG. 1 is a schematic diagram of a user's one-handed manipulation. As shown in Figure 1, when the user holds the electronic device with one hand, the formed single-hand manipulation range (that is, the shaded area shown in Figure 1) usually refers to the arc-shaped area formed by the user's thumb. This is not limited; then, in related technologies, by scaling the content displayed on the screen, it can basically enter the user's one-handed control range, thereby ensuring that the user can realize one-handed control.

但是,除了屏幕显示内容之外,相关技术中往往忽略了电子设备上的物理按键,比如图1所示电子设备的屏幕正下方的三个物理按键,当用户采用图1所示的右手握持方式时,显然单手操控范围仅能够基本覆盖中间按键和右侧按键,而无法覆盖左侧按键,且电子设备上的物理按键显然无法通过诸如“缩放”等方式而改变其物理位置,使得用户在操控相关物理按键,仍然无法实现单手操控。However, in addition to the content displayed on the screen, physical buttons on the electronic device are often ignored in related technologies, such as the three physical buttons directly below the screen of the electronic device shown in Figure 1. When the user uses the right hand as shown in Figure 1 to hold the In this way, it is obvious that the one-handed control range can only basically cover the middle button and the right button, but cannot cover the left button, and the physical button on the electronic device obviously cannot change its physical position through methods such as "zooming", so that the user When manipulating the relevant physical buttons, it is still impossible to achieve one-handed manipulation.

因此,本公开通过改进单手操控方案,以解决相关技术中的上述问题。Therefore, the present disclosure solves the above-mentioned problems in the related art by improving the one-handed control solution.

图2是根据一示例性实施例示出的一种按键功能的配置方法的流程图,如图2所示,该方法用于电子设备中,可以包括以下步骤:Fig. 2 is a flow chart of a method for configuring key functions according to an exemplary embodiment. As shown in Fig. 2, the method is used in an electronic device and may include the following steps:

在步骤202中,通过位于电子设备的边框处的预置传感器,采集握持特征参数。In step 202, a grip characteristic parameter is collected through a preset sensor located at a frame of the electronic device.

在步骤204中,根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持。In step 204, according to the conformity between the holding characteristic parameters and the predefined left-hand holding characteristic parameters or right-hand holding characteristic parameters, it is identified that the electronic device is held in a left-handed or right-handed manner.

在本实施例中,当预置传感器为压力传感器时,握持特征参数可以包括以下至少之一:受力位置、受力面积。在该实施例中,通过采集用户握持电子设备时的握持特征参数,可以推测出用户握持电子设备时的姿态特点,从而准确判定出用户的握持方式。In this embodiment, when the preset sensor is a pressure sensor, the grip characteristic parameter may include at least one of the following: force-bearing position and force-bearing area. In this embodiment, by collecting the grip characteristic parameters when the user grips the electronic device, the gesture characteristics of the user when gripping the electronic device can be inferred, so as to accurately determine the user's grip mode.

当然,预置传感器还可以包括其他类型,并通过相应类型的握持特征参数,实现对握持方式的识别,本公开并不对此进行限制。例如,该预置传感器还可以为光线传感器,从而根据该光线传感器的被遮挡状态,识别出用户的握持方式:当用户采用左手握持时,电子设备的左侧边框被遮挡面积较大、右侧边框被遮挡面积较小;当用户采用右手握持时,电子设备的右侧边框被遮挡面积较大、左侧边框被遮挡面积较小等。Certainly, the preset sensor may also include other types, and the recognition of the gripping manner may be realized through corresponding types of gripping characteristic parameters, which is not limited in the present disclosure. For example, the preset sensor can also be a light sensor, so as to recognize the user's holding method according to the blocked state of the light sensor: when the user uses the left hand to hold the electronic device, the left frame of the electronic device is covered with a larger area, The blocked area of the right frame is small; when the user holds the electronic device with the right hand, the blocked area of the right frame of the electronic device is relatively large, and the blocked area of the left frame is small.

在步骤206中,配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。In step 206, the triggering function of the preset physical button on the electronic device is configured to match the held manner.

在本实施例中,可以确定被握持方式对应的单手操控范围内的预设物理按键,并将预设物理按键配置为预定义的常用功能。举例而言,该预设物理按键可以包括:位于电子设备的面板上的一组对称设置的物理按键。In this embodiment, the preset physical keys within the single-hand manipulation range corresponding to the gripping mode may be determined, and the preset physical keys may be configured as predefined common functions. For example, the preset physical keys may include: a group of symmetrically arranged physical keys located on the panel of the electronic device.

由上述实施例可知,本公开通过识别出用户采取的单手握持方式,并对电子设备上的物理按键进行相应的功能配置,使得在物理按键无法变更设置位置的情况下,仍然能够根据用户采取的单手握持方式,确保其能够在单手操控范围内实现对相应功能的触发操作,便于实现用户对大屏终端的屏幕显示内容和物理按键的全面单手操控。It can be seen from the above-mentioned embodiments that the present disclosure recognizes the one-handed holding method adopted by the user, and configures corresponding functions for the physical buttons on the electronic device, so that when the physical buttons cannot change the setting position, it can still be set according to the user's The one-handed holding method is adopted to ensure that it can realize the trigger operation of the corresponding function within the range of one-handed control, which is convenient for the user to realize the comprehensive one-handed control of the screen display content and physical buttons of the large-screen terminal.

图3是根据一示例性实施例示出的另一种按键功能的配置方法的流程图,如图3所示,该方法可以包括以下步骤:Fig. 3 is a flow chart of another method for configuring button functions according to an exemplary embodiment. As shown in Fig. 3 , the method may include the following steps:

在步骤302中,采集握持特征参数。In step 302, grip feature parameters are collected.

在本实施例中,通过电子设备上的预置传感器,可以对用户握持电子设备时的握持特征参数进行采集。其中,预置传感器可以持续或周期性地启动采集操作;或者,预置传感器可以通过与电子设备中功耗较低的其他器件之间的配合,使得当其他器件检测到电子设备被用户握持时,该预置传感器才启动并采集上述的握持特征参数,以降低电子设备的整体功耗。In this embodiment, through the preset sensor on the electronic device, it is possible to collect the holding feature parameters when the user holds the electronic device. Among them, the preset sensor can continuously or periodically start the collection operation; or, the preset sensor can cooperate with other devices with low power consumption in the electronic device, so that when other devices detect that the electronic device is held by the user , the preset sensor starts and collects the above-mentioned grip characteristic parameters, so as to reduce the overall power consumption of the electronic device.

举例而言,上述的其他器件可以为电子设备中的陀螺仪,当该陀螺仪检测到电子设备产生预定义的姿态变化时,可以判定为电子设备被用户握持,从而促使预置传感器启动对握持特征参数的采集。For example, the above-mentioned other device may be a gyroscope in the electronic device. When the gyroscope detects that the electronic device produces a predefined posture change, it may be determined that the electronic device is being held by the user, thereby prompting the preset sensor to start pairing Acquisition of grip feature parameters.

在步骤304中,将采集到的握持特征参数,与预定义的握持方案进行匹配。In step 304, the collected gripping feature parameters are matched with a predefined gripping scheme.

在本实施例中,可以通过位于电子设备的边框处的预置传感器,采集握持特征参数,然后根据该握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,确定所述被握持方式。In this embodiment, the grip characteristic parameters can be collected through the preset sensor located at the frame of the electronic device, and then according to the conformity between the grip characteristic parameters and the predefined left-hand grip characteristic parameters or right-hand grip characteristic parameters , to determine the manner of being held.

在本实施例中,预置传感器可以为压力传感器,则相应的握持特征参数可以包括以下至少之一:受力位置、受力面积。如图1所示,以用户采取右手握持方式为例,大拇指和手掌与电子设备的右边框接触,中指、无名指和小指与左边框接触,而食指可能与左边框接触(即图1所示情况)也可能位于电子设备的后盖处;类似地,如图4所示,当用户采取左手握持方式时,大拇指和手掌与电子设备的左边框接触,中指、无名指和小指与右边框接触,而食指可能与右边框接触(即图1所示情况)也可能位于电子设备的后盖处。In this embodiment, the preset sensor may be a pressure sensor, and the corresponding grip characteristic parameters may include at least one of the following: force-bearing position and force-bearing area. As shown in Figure 1, taking the user’s right-hand grip as an example, the thumb and palm are in contact with the right frame of the electronic device, the middle finger, ring finger and little finger are in contact with the left frame, and the index finger may be in contact with the left frame (that is, as shown in Figure 1 display) may also be located at the back cover of the electronic device; similarly, as shown in Figure 4, when the user holds the electronic device with the left hand, the thumb and palm are in contact with the left frame of the electronic device, and the middle finger, ring finger and little finger are in contact with the right frame. The frame is in contact, and the index finger may be in contact with the right frame (that is, the situation shown in FIG. 1 ) or may be located at the back cover of the electronic device.

可见,当用户采取某种单手握持方式时,握持手与电子设备的左边框、右边框等处的受力位置、受力面积等都可能不一样。所以,通过预先确定出用户采用左手握持或右手握持时可能的受力位置和受力面积等握持特征参数,以建立相应的预定义的握持方案(即预定义的左手握持特征参数或右手握持特征参数),即可将实时采集到的握持特征参数与该预定义的握持方案进行匹配,从而确定出用户当前采用的握持方式为左手握持或右手握持。It can be seen that when the user adopts a one-handed holding method, the force-bearing position and force-bearing area of the holding hand and the left frame and right frame of the electronic device may be different. Therefore, by pre-determining the grip characteristic parameters such as the possible force position and force area when the user uses left-hand grip or right-hand grip, to establish a corresponding predefined grip scheme (that is, the predefined left-hand grip feature parameters or right-hand grip feature parameters), the grip feature parameters collected in real time can be matched with the predefined grip scheme, so as to determine whether the user's current grip mode is left-handed or right-handed.

当然,针对用户不同握持方式下,还存在其他握持特征参数的差异。例如,预置传感器还可以为光线传感器,从而根据该光线传感器的被遮挡状态,识别出用户的握持方式:当用户采用左手握持时,电子设备的左侧边框被遮挡面积较大、右侧边框被遮挡面积较小;当用户采用右手握持时,电子设备的右侧边框被遮挡面积较大、左侧边框被遮挡面积较小等。Of course, there are differences in other gripping characteristic parameters for different gripping modes of the user. For example, the preset sensor can also be a light sensor, so that according to the blocked state of the light sensor, the user's holding method can be identified: when the user holds it with the left hand, the left side frame of the electronic device is covered with a larger area, and the right side frame is blocked. The blocked area of the side frame is small; when the user holds the electronic device with the right hand, the blocked area of the right frame of the electronic device is relatively large, and the blocked area of the left frame is small.

在本实施例中,同一电子设备中可以设置一种预置传感器;也可以同时设置多种预置传感器,以提升对握持方式的识别准确率。In this embodiment, one type of preset sensor can be set in the same electronic device; multiple kinds of preset sensors can also be set at the same time, so as to improve the recognition accuracy of the gripping manner.

在步骤306中,根据匹配结果确定单手操控范围内的物理按键。In step 306, the physical keys within the range of one-hand manipulation are determined according to the matching result.

在本实施例中,通过统计分析等方式,可以确定出用户在每种握持方式下的单手操控距离,然后根据电子设备的尺寸规格等确定出用户在握持该电子设备时的单手操控范围(比如图1所示的阴影范围),以及该电子设备上位于该单手操控范围内的物理按键。In this embodiment, the user's single-handed manipulation distance in each holding mode can be determined through statistical analysis, and then the user's single-handed manipulation distance when holding the electronic device can be determined according to the size and specifications of the electronic device. range (such as the shaded range shown in FIG. 1 ), and the physical buttons on the electronic device within the single-hand control range.

比如图1所示的实施例中,电子设备的正面下方设有三个物理按键,分别为左侧的菜单键、中间的主页键和右侧的返回键,那么主页键和返回键在图1所示的右手握持的情况下位于单手操控范围内,而菜单键位于单手操控范围之外。而如图4所示的实施例中,用户采用左手握持的情况下,主页键和菜单键位于单手操控范围内,而返回键位于单手操控范围之外。For example, in the embodiment shown in FIG. 1, three physical buttons are arranged on the front bottom of the electronic device, which are respectively the menu key on the left, the home page key in the middle, and the return key on the right. In the case of the shown right-hand grip, it is within the range of one-handed control, while the menu key is located outside the range of one-handed control. However, in the embodiment shown in FIG. 4 , when the user holds it with the left hand, the home key and the menu key are located within the range of one-handed manipulation, while the return key is located outside the range of one-handed manipulation.

在步骤308A中,配置单手操控范围内的物理按键的功能。In step 308A, the functions of the physical keys within the single-hand manipulation range are configured.

对比图1和图4可知:假定电子设备上的三个物理按键中,主页键和返回键属于用户的常用按键,那么用户采用如图1所示的右手握持方式下,可以完成对主页键和返回键的单手操控,但在图4所示的左手握持方式下,仅能够完成对主页键的单手操控、无法完成对返回键的单手操控。Comparing Figure 1 and Figure 4, it can be seen that: assuming that among the three physical keys on the electronic device, the home key and the return key belong to the user's commonly used keys, then the user can complete the home key key by holding it with the right hand as shown in Figure 1. and the one-handed control of the return key, but in the left-hand holding mode shown in Figure 4, only the one-handed control of the home key can be completed, and the one-handed control of the return key cannot be completed.

因而在本实施例中,可以根据确定出的属于被握持方式对应的单手操控范围内的预设物理按键,将该预设物理按键配置为预定义的常用功能。比如在图4所示的实施例中,可以对位于单手操控范围内的菜单键进行功能配置,使其被配置为“返回”功能,从而在无需变更电子设备上的物理按键的物理位置的情况下,可以确保用户总是能够在单手操控范围内触发希望使用的常用功能。Therefore, in this embodiment, according to the determined preset physical button that belongs to the single-handed manipulation range corresponding to the gripping mode, the preset physical button can be configured as a predefined common function. For example, in the embodiment shown in FIG. 4 , the menu key located within the range of one-handed manipulation can be functionally configured so that it can be configured as a "return" function, so that there is no need to change the physical position of the physical key on the electronic device. In this case, it can be ensured that users can always trigger the frequently used functions they want to use within the range of one-handed control.

“常用功能”可以由用户预定义,比如当用户预定义的常用功能为“菜单”和“返回”功能时,对于图1所示的实施例,可以将返回键配置为“菜单”功能,而对于图4所示的实施例,可以将主页键配置为“返回”功能。"Frequently used functions" can be predefined by the user, for example, when the commonly used functions predefined by the user are "menu" and "return" functions, for the embodiment shown in Figure 1, the return key can be configured as a "menu" function, and For the embodiment shown in FIG. 4, the home key may be configured as a "back" function.

当然,本公开并不限制电子设备上的物理按键数量、常用功能数量等,这些均可能随着电子设备的结构变化而更改;比如图5所示,电子设备的面板上存在菜单键、主页键、返回键和搜索键等四个物理按键,且用户在左手握持时,单手操控范围仅能够覆盖左侧的三个物理按键,那么当用户预定义的常用功能为“主页”、“返回”和“搜索”时,可以将菜单键配置为“搜索”功能,以满足用户的使用需求。Of course, the present disclosure does not limit the number of physical buttons and the number of commonly used functions on the electronic device, which may be changed as the structure of the electronic device changes; for example, as shown in FIG. , back key, and search key, and when the user holds it with the left hand, the single-handed control range can only cover the three physical keys on the left, then when the user's predefined common functions are "home page", "back ” and “Search”, you can configure the menu key as the “Search” function to meet the needs of users.

此外,电子设备还可以根据用户的设置操作,配置单手操控范围的大小。比如在图5所示的实施例中,单手操控范围可以基本覆盖三个物理按键;而在图6所示的实施例中,根据用户操作可以将单手操控范围配置为仅覆盖两个物理按键,从而适应于不同用户的单手操控情况。In addition, the electronic device can also configure the size of the one-handed control range according to the user's setting operation. For example, in the embodiment shown in FIG. 5, the one-handed control range can basically cover three physical buttons; while in the embodiment shown in FIG. 6, the one-handed control range can be configured to cover only two physical buttons according to user operations. Buttons, so as to adapt to the single-handed control situation of different users.

在步骤308B中,配置单手操控范围外的其他物理按键的功能。In step 308B, configure the functions of other physical keys outside the range of one-handed manipulation.

在本实施例中,在将单手操控范围之内的物理按键配置为预定义的常用功能时,实际上是由于原本配置有该常用功能的物理按键位于单手操控范围之外,因而将单手操控范围内的物理按键的原始功能替换为常用功能,比如将图6所示的最左侧的菜单键的“菜单”功能替换为返回键的“返回”功能,即被配置的物理按键的原始功能(配置前的功能)区别于被配置的常用功能。In this embodiment, when configuring the physical keys within the range of one-hand manipulation as predefined common functions, it is actually because the physical keys originally configured with the common functions are located outside the range of one-hand manipulation, so the single-handed The original functions of the physical buttons within the range of hand control are replaced with common functions, such as replacing the "menu" function of the leftmost menu key shown in Figure 6 with the "return" function of the return key, that is, the configured physical keys Original functions (functions before configuration) are distinguished from configured common functions.

那么,对于上述的预定义的常用功能区别于物理按键的原始功能的情况下,可以将该原始功能配置于单手操控范围外的其他预设物理按键,比如原本配置有上述的常用功能的物理按键。例如图6所示,在将“返回”功能由返回键配置至菜单键后,还可以将菜单键的原始功能“菜单”功能配置至返回键,即位于单手操控范围之外的返回键与位于单手操控范围之内的菜单键之间实现功能互换。Then, when the above-mentioned predefined commonly used functions are different from the original functions of the physical buttons, the original functions can be configured on other preset physical buttons outside the range of one-handed control, such as physical buttons originally configured with the above-mentioned commonly used functions. button. For example, as shown in Figure 6, after the "return" function is configured from the return key to the menu key, the original function of the menu key "menu" can also be configured to the return key, that is, the return key located outside the range of one-handed manipulation and The functions of the menu keys located within the reach of one hand are interchangeable.

当然,步骤308B并非必须,比如在将常用功能“返回”功能配置至菜单键时,可以仍然保留返回键的“返回”功能,从而仅配置菜单键的功能即可,可以减少对物理按键的配置次数。Of course, step 308B is not necessary. For example, when configuring the commonly used function "return" to the menu key, the "return" function of the return key can still be retained, so that only the function of the menu key can be configured, which can reduce the configuration of physical keys frequency.

在步骤310中,对物理按键配置的触发功能进行提示。In step 310, the trigger function configured by the physical key is prompted.

在本实施例中,可以采用与触发功能对应的预定义提示方式,对配置于预设物理按键的触发功能进行提示。其中,提示方式可以包括以下至少之一:为预设物理按键配置与触发功能对应的背光颜色;为预设物理按键配置与触发功能对应的背光亮度。In this embodiment, a predefined prompt manner corresponding to the trigger function may be used to prompt the trigger function configured on the preset physical button. Wherein, the prompting method may include at least one of the following: configuring a backlight color corresponding to the trigger function for the preset physical button; configuring a backlight brightness corresponding to the trigger function for the preset physical button.

举例而言,假定在图4所示的实施例中,预定义各个触发功能对应的颜色,比如“菜单”功能对应于红色、“主页”功能对应于黄色、“返回”功能对应于蓝色,那么当各个物理按键均采用原始功能时,即菜单键的背光颜色为红色、主页键的背光颜色为黄色、返回键的背光颜色为蓝色;而当电子设备基于图4所示的实施例进行功能配置后,假定菜单键配置为“返回”功能、返回键配置为“菜单”功能,那么菜单键的背光颜色可以变更为蓝色、返回键的背光颜色可以变更为红色,从而使用户可以根据各个物理按键的背光颜色,轻易区分和识别出各个物理按键当前配置的功能。For example, assuming that in the embodiment shown in FIG. 4 , the colors corresponding to each trigger function are predefined, for example, the "menu" function corresponds to red, the "home page" function corresponds to yellow, and the "return" function corresponds to blue, Then when each physical key adopts the original function, that is, the backlight color of the menu key is red, the backlight color of the home key is yellow, and the backlight color of the return key is blue; After the function is configured, assuming that the menu key is configured as the "return" function and the return key is configured as the "menu" function, then the backlight color of the menu key can be changed to blue, and the backlight color of the return key can be changed to red, so that the user can according to The backlight color of each physical button can easily distinguish and identify the currently configured function of each physical button.

类似地,假定在图4所示的实施例中,预定义各个触发功能对应的亮度,比如“菜单”功能对应于低亮度、“主页”功能对应于中亮度、“返回”功能对应于高亮度,那么当各个物理按键均采用原始功能时,即菜单键的背光亮度为低亮度、主页键的背光亮度为中亮度、返回键的背光亮度为高亮度;而当电子设备基于图4所示的实施例进行功能配置后,假定菜单键配置为“返回”功能、返回键配置为“菜单”功能,那么菜单键的背光亮度可以变更为高亮度、返回键的背光亮度可以变更为低亮度,从而使用户可以根据各个物理按键的背光亮度,轻易区分和识别出各个物理按键当前配置的功能。Similarly, assume that in the embodiment shown in FIG. 4, the brightness corresponding to each trigger function is predefined, for example, the "menu" function corresponds to low brightness, the "home page" function corresponds to medium brightness, and the "return" function corresponds to high brightness , then when each physical button adopts the original function, that is, the backlight brightness of the menu key is low brightness, the backlight brightness of the home button is medium brightness, and the backlight brightness of the return key is high brightness; and when the electronic device is based on the After the function configuration in the embodiment, assuming that the menu key is configured as the "return" function and the return key is configured as the "menu" function, then the backlight brightness of the menu key can be changed to high brightness, and the backlight brightness of the return key can be changed to low brightness, thereby The user can easily distinguish and identify the currently configured function of each physical button according to the backlight brightness of each physical button.

当然,虽然上述实施例中以电子设备的面板上的物理按键为例,介绍了本公开对于物理按键的功能配置方案,但本领域技术人员应该理解的是:在本公开的技术方案中,仅区分物理按键是否处于用户的单手操控范围内,而并不限制物理按键在电子设备上所处的位置,比如物理按键除了位于电子设备的面板之外,还可以位于诸如背板、侧边等处,均可以基于本公开的技术方案进行功能配置,此处不再赘述。Of course, although the above-mentioned embodiment uses the physical buttons on the panel of the electronic device as an example to introduce the functional configuration solution of the physical buttons in the present disclosure, those skilled in the art should understand that: in the technical solutions of the present disclosure, only Distinguish whether the physical button is within the user's single-hand control range, without limiting the location of the physical button on the electronic device. For example, the physical button can be located not only on the panel of the electronic device, but also on the back panel, side, etc. Where, function configurations can be performed based on the technical solution of the present disclosure, which will not be repeated here.

与前述的按键功能的配置方法的实施例相对应,本公开还提供了按键功能的配置装置的实施例。Corresponding to the foregoing embodiments of the method for configuring key functions, the present disclosure also provides embodiments of an apparatus for configuring key functions.

图7是根据一示例性实施例示出的一种按键功能的配置装置框图。参照图7,该装置包括采集单元70、识别单元71和第一配置单元72。Fig. 7 is a block diagram of an apparatus for configuring button functions according to an exemplary embodiment. Referring to FIG. 7 , the device includes an acquisition unit 70 , an identification unit 71 and a first configuration unit 72 .

采集单元70,被配置为通过位于电子设备的边框处的预置传感器,采集握持特征参数;The collection unit 70 is configured to collect the grip characteristic parameters through the preset sensor located at the frame of the electronic device;

识别单元71,被配置为根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;The identification unit 71 is configured to identify whether the electronic device is held by the left hand or by the right hand according to the conformity of the holding characteristic parameters with the predefined left-hand holding characteristic parameters or right-hand holding characteristic parameters hold;

第一配置单元72,被配置为配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The first configuration unit 72 is configured to configure a trigger function of a preset physical button on the electronic device to match the gripping manner.

可选的,当所述预置传感器为压力传感器时,所述握持特征参数包括以下至少之一:受力位置、受力面积。Optionally, when the preset sensor is a pressure sensor, the grip characteristic parameters include at least one of the following: force-bearing position and force-bearing area.

如图8所示,图8是根据一示例性实施例示出的另一种按键功能的配置装置的框图,该实施例在前述图7所示实施例的基础上,第一配置单元72可以包括:按键确定子单元721和功能配置子单元722。As shown in FIG. 8, FIG. 8 is a block diagram of another key function configuration device according to an exemplary embodiment. On the basis of the embodiment shown in FIG. 7, the first configuration unit 72 may include : a button determination subunit 721 and a function configuration subunit 722.

按键确定子单元721,被配置为确定所述被握持方式对应的单手操控范围内的预设物理按键;The button determination subunit 721 is configured to determine a preset physical button within the range of one-hand manipulation corresponding to the gripping manner;

功能配置子单元722,被配置为将所述预设物理按键配置为预定义的常用功能。The function configuration subunit 722 is configured to configure the preset physical keys as predefined common functions.

如图9所示,图9是根据一示例性实施例示出的另一种按键功能的配置装置的框图,该实施例在前述图8所示实施例的基础上,该装置还可以包括:第二配置单元73。As shown in Fig. 9, Fig. 9 is a block diagram of another device for configuring button functions according to an exemplary embodiment. On the basis of the embodiment shown in Fig. 8, the device may further include: Two configuration units 73.

第二配置单元73,被配置为当所述预定义的常用功能区别于所述预设物理按键的原始功能时,将所述原始功能配置于所述单手操控范围外的其他预设物理按键。The second configuration unit 73 is configured to configure the original function on other preset physical buttons outside the single-hand control range when the predefined commonly used function is different from the original function of the preset physical button .

如图10所示,图10是根据一示例性实施例示出的另一种按键功能的配置装置的框图,该实施例在前述图7所示实施例的基础上,该装置还可以包括:提示单元74。As shown in Fig. 10, Fig. 10 is a block diagram of another key function configuration device according to an exemplary embodiment. On the basis of the embodiment shown in Fig. 7, the device may also include: Unit 74.

提示单元74,被配置为采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示。The prompting unit 74 is configured to prompt the triggering function configured on the preset physical key by adopting a predefined prompting manner corresponding to the triggering function.

需要说明的是,上述图10所示的装置实施例中的提示单元74的结构也可以包含在前述图8-9的装置实施例中,对此本公开不进行限制。It should be noted that, the structure of the prompting unit 74 in the device embodiment shown in FIG. 10 may also be included in the device embodiments in FIGS. 8-9 , and this disclosure is not limited thereto.

如图11所示,图11是根据一示例性实施例示出的另一种按键功能的配置装置的框图,该实施例在前述图10所示实施例的基础上,提示单元74可以包括以下至少之一:颜色提示子单元741、亮度提示子单元742。As shown in FIG. 11, FIG. 11 is a block diagram of another device for configuring button functions according to an exemplary embodiment. On the basis of the embodiment shown in FIG. 10, the prompt unit 74 may include at least the following One: a color prompting subunit 741 and a brightness prompting subunit 742 .

所述颜色提示子单元741,被配置为为所述预设物理按键配置与所述触发功能对应的背光颜色;The color prompt subunit 741 is configured to configure a backlight color corresponding to the trigger function for the preset physical key;

所述亮度提示子单元742,被配置为为所述预设物理按键配置与所述触发功能对应的背光亮度。The brightness prompt subunit 742 is configured to configure a backlight brightness corresponding to the trigger function for the preset physical key.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.

相应的,本公开还提供一种按键功能的配置装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:通过位于电子设备的边框处的预置传感器,采集握持特征参数;根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。Correspondingly, the present disclosure also provides an apparatus for configuring button functions, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to: Set the sensor to collect the grip characteristic parameters; according to the conformity of the grip characteristic parameters with the predefined left-hand grip characteristic parameters or right-hand grip characteristic parameters, identify that the electronic device is held by the left hand or by the left hand Hold with the right hand; configure the trigger function of the preset physical button on the electronic device to match the way of being held.

相应的,本公开还提供一种终端,所述终端包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:通过位于电子设备的边框处的预置传感器,采集握持特征参数;根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。Correspondingly, the present disclosure also provides a terminal, the terminal includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: collect the gripping characteristic parameters through the preset sensor located at the border of the electronic device; according to the gripping characteristic parameters and the predefined left-hand gripping characteristic parameters or The conformity of the right-hand holding characteristic parameters, identifying the electronic device being held by the left hand or the right hand; configuring the trigger function of the preset physical button on the electronic device to cooperate with the held support method.

图12是根据一示例性实施例示出的一种用于按键功能的配置的装置1200的框图。例如,装置1200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 12 is a block diagram of an apparatus 1200 for configuring key functions according to an exemplary embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图12,装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。12, device 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communication component 1216.

处理组件1202通常控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the device 1200, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .

存储器1204被配置为存储各种类型的数据以支持在装置1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the device 1200 . Examples of such data include instructions for any application or method operating on device 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, 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 Disk.

电源组件1206为装置1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为装置1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the device 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1200 .

多媒体组件1208包括在所述装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当装置1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the 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 input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive external audio signals when the device 1200 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 . In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到装置1200的打开/关闭状态,组件的相对定位,例如所述组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing status assessments of various aspects of device 1200 . For example, the sensor component 1214 can detect the open/closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, and the sensor component 1214 can also detect a change in the position of the device 1200 or a component of the device 1200 , the presence or absence of user contact with the device 1200 , the device 1200 orientation or acceleration/deceleration and the temperature change of the device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件1216被配置为便于装置1200和其他设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the apparatus 1200 and other devices. The device 1200 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1200 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器1220执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1220 of the device 1200 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and 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 (13)

1.一种按键功能的配置方法,其特征在于,包括:1. A method for configuring button functions, characterized in that, comprising: 通过位于电子设备的边框处的预置传感器,采集握持特征参数;Collecting characteristic parameters of the grip through the preset sensor located at the frame of the electronic device; 根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;Identifying that the electronic device is held in a left-handed or right-handed manner according to the conformity of the holding characteristic parameter with the predefined left-handed holding characteristic parameter or right-handed holding characteristic parameter; 配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The trigger function of the preset physical button on the electronic device is configured to match the way of being held. 2.根据权利要求1所述的方法,其特征在于,当所述预置传感器为压力传感器时,所述握持特征参数包括以下至少之一:受力位置、受力面积。2 . The method according to claim 1 , wherein when the preset sensor is a pressure sensor, the grip characteristic parameters include at least one of the following: force-bearing position and force-bearing area. 3.根据权利要求1所述的方法,其特征在于,所述配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式,包括:3. The method according to claim 1, wherein the configuring the trigger function of the preset physical button on the electronic device to match the way of being held includes: 确定所述被握持方式对应的单手操控范围内的预设物理按键;Determining a preset physical button within the range of one-handed manipulation corresponding to the held manner; 将所述预设物理按键配置为预定义的常用功能。The preset physical keys are configured as predefined common functions. 4.根据权利要求3所述的方法,其特征在于,还包括:4. The method according to claim 3, further comprising: 当所述预定义的常用功能区别于所述预设物理按键的原始功能时,将所述原始功能配置于所述单手操控范围外的其他预设物理按键。When the predefined commonly used function is different from the original function of the preset physical button, the original function is configured on other preset physical buttons outside the range of the one-handed control. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method according to claim 1, further comprising: 采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示。The trigger function configured on the preset physical key is prompted by using a predefined prompt manner corresponding to the trigger function. 6.根据权利要求5所述的方法,其特征在于,所述采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示,包括以下至少之一:6. The method according to claim 5, characterized in that, using a predefined prompt method corresponding to the trigger function to prompt the trigger function configured on the preset physical button includes at least the following: one: 为所述预设物理按键配置与所述触发功能对应的背光颜色;Configuring a backlight color corresponding to the trigger function for the preset physical button; 为所述预设物理按键配置与所述触发功能对应的背光亮度。Configuring backlight brightness corresponding to the trigger function for the preset physical key. 7.一种按键功能的配置装置,其特征在于,包括:7. A device for configuring button functions, characterized in that it comprises: 采集单元,通过位于电子设备的边框处的预置传感器,采集握持特征参数;The acquisition unit collects the grip characteristic parameters through the preset sensor located at the frame of the electronic device; 识别单元,根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;The identification unit is configured to identify whether the electronic device is held by the left hand or the right hand according to the conformity of the holding characteristic parameters with the predefined left-hand holding characteristic parameters or right-hand holding characteristic parameters; 第一配置单元,配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The first configuration unit is configured to configure the trigger function of the preset physical button on the electronic device to match the gripping manner. 8.根据权利要求7所述的装置,其特征在于,当所述预置传感器为压力传感器时,所述握持特征参数包括以下至少之一:受力位置、受力面积。8 . The device according to claim 7 , wherein when the preset sensor is a pressure sensor, the grip characteristic parameters include at least one of the following: a force-bearing position and a force-bearing area. 9.根据权利要求7所述的装置,其特征在于,所述第一配置单元包括:9. The device according to claim 7, wherein the first configuration unit comprises: 按键确定子单元,确定所述被握持方式对应的单手操控范围内的预设物理按键;The button determination subunit determines the preset physical buttons within the range of one-handed manipulation corresponding to the gripping manner; 功能配置子单元,将所述预设物理按键配置为预定义的常用功能。The function configuration subunit configures the preset physical keys as predefined common functions. 10.根据权利要求9所述的装置,其特征在于,还包括:10. The device according to claim 9, further comprising: 第二配置单元,当所述预定义的常用功能区别于所述预设物理按键的原始功能时,将所述原始功能配置于所述单手操控范围外的其他预设物理按键。The second configuration unit is configured to configure the original function on other preset physical keys outside the one-hand control range when the predefined commonly used function is different from the original function of the preset physical key. 11.根据权利要求7所述的方法,其特征在于,还包括:11. The method according to claim 7, further comprising: 提示单元,采用与所述触发功能对应的预定义提示方式,对配置于所述预设物理按键的所述触发功能进行提示。The prompting unit is configured to prompt the triggering function configured on the preset physical key by using a predefined prompting manner corresponding to the triggering function. 12.根据权利要求11所述的装置,其特征在于,所述提示单元包括以下至少之一:颜色提示子单元、亮度提示子单元;12. The device according to claim 11, wherein the prompting unit comprises at least one of the following: a color prompting subunit, a brightness prompting subunit; 所述颜色提示子单元,为所述预设物理按键配置与所述触发功能对应的背光颜色;The color prompt subunit configures the preset physical key with a backlight color corresponding to the trigger function; 所述亮度提示子单元,为所述预设物理按键配置与所述触发功能对应的背光亮度。The brightness prompting subunit is configured to configure a backlight brightness corresponding to the trigger function for the preset physical key. 13.一种电子设备,其特征在于,包括:13. An electronic device, characterized in that it comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 通过位于电子设备的边框处的预置传感器,采集握持特征参数;Collecting characteristic parameters of the grip through the preset sensor located at the frame of the electronic device; 根据所述握持特征参数与预定义的左手握持特征参数或右手握持特征参数的符合情况,识别所述电子设备的被握持方式为左手握持或右手握持;Identifying that the electronic device is held in a left-handed or right-handed manner according to the conformity of the holding characteristic parameter with the predefined left-handed holding characteristic parameter or right-handed holding characteristic parameter; 配置所述电子设备上的预设物理按键的触发功能,以配合于所述被握持方式。The trigger function of the preset physical button on the electronic device is configured to match the way of being held.
CN201610345073.3A 2016-05-23 2016-05-23 Configuration method and apparatus of key functions, and electronic device Pending CN106020669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610345073.3A CN106020669A (en) 2016-05-23 2016-05-23 Configuration method and apparatus of key functions, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610345073.3A CN106020669A (en) 2016-05-23 2016-05-23 Configuration method and apparatus of key functions, and electronic device

Publications (1)

Publication Number Publication Date
CN106020669A true CN106020669A (en) 2016-10-12

Family

ID=57095764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610345073.3A Pending CN106020669A (en) 2016-05-23 2016-05-23 Configuration method and apparatus of key functions, and electronic device

Country Status (1)

Country Link
CN (1) CN106020669A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775343A (en) * 2016-11-17 2017-05-31 北京小米移动软件有限公司 Mobile terminal and multimedia file changing method
CN113342193A (en) * 2021-06-28 2021-09-03 歌尔科技有限公司 VR handle control method, VR handle and control system
CN115671717A (en) * 2022-10-27 2023-02-03 网易(杭州)网络有限公司 Game operation control method, device and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100134423A1 (en) * 2008-12-02 2010-06-03 At&T Mobility Ii Llc Automatic soft key adaptation with left-right hand edge sensing
CN104571880A (en) * 2013-10-11 2015-04-29 詹世绅 Method for identifying and applying holding modes of electronic equipment with back touch
CN104731339A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Holding mode recognition method and device for mobile terminal
CN105120160A (en) * 2015-08-27 2015-12-02 努比亚技术有限公司 Shooting device and shooting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100134423A1 (en) * 2008-12-02 2010-06-03 At&T Mobility Ii Llc Automatic soft key adaptation with left-right hand edge sensing
CN104571880A (en) * 2013-10-11 2015-04-29 詹世绅 Method for identifying and applying holding modes of electronic equipment with back touch
CN104731339A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Holding mode recognition method and device for mobile terminal
CN105120160A (en) * 2015-08-27 2015-12-02 努比亚技术有限公司 Shooting device and shooting method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775343A (en) * 2016-11-17 2017-05-31 北京小米移动软件有限公司 Mobile terminal and multimedia file changing method
CN113342193A (en) * 2021-06-28 2021-09-03 歌尔科技有限公司 VR handle control method, VR handle and control system
CN115671717A (en) * 2022-10-27 2023-02-03 网易(杭州)网络有限公司 Game operation control method, device and electronic device
CN115671717B (en) * 2022-10-27 2025-11-14 网易(杭州)网络有限公司 Game operation and control methods, devices and electronic devices

Similar Documents

Publication Publication Date Title
WO2016023340A1 (en) Camera switching method and device
WO2017020486A1 (en) Control method and device for adjusting photographing function, and apparatus
CN106951884A (en) Method, device and electronic equipment for collecting fingerprints
CN106873834B (en) Method and device for identifying triggering of key and mobile terminal
WO2016192324A1 (en) Key operation processing method and apparatus under single hand mode and electronic device
CN106484284B (en) Method and device for switching single-hand mode
CN104537366A (en) Touch key and fingerprint identification implementation method and device and terminal equipment
EP3249514A1 (en) Method and device for determining operation mode of terminal
CN106547466A (en) Display control method and device
CN106843592A (en) Touch control method and device and mobile terminal
CN106484287A (en) Display device control method, device and display device
CN106201108A (en) Glove control mode touch mode control method and device and electronic equipment
CN113361305B (en) Fingerprint collection method, electronic device and computer-readable storage medium
CN106775377A (en) The control method of gesture identifying device, equipment and gesture identifying device
CN106484296A (en) Mobile terminal prevents processing method, device and the equipment of false touch
CN106020669A (en) Configuration method and apparatus of key functions, and electronic device
CN107608538A (en) Intelligent keyboard and its control method
CN108766427B (en) Voice control method and device
CN106502406A (en) Application program deployment method, device and terminal unit
CN106843691B (en) Operation control method and device of mobile terminal
CN106126050B (en) Menu display method and device
CN105975428A (en) Method and device for displaying character and terminal
CN106339092B (en) Horizontal/vertical screen switching method and apparatus
CN107656616A (en) Input interface displaying method, device, electronic equipment
CN206819226U (en) Electronic equipment

Legal Events

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

Application publication date: 20161012