WO2023045139A1 - 一种扳机按键的力反馈控制方法、装置、电子产品及介质 - Google Patents

一种扳机按键的力反馈控制方法、装置、电子产品及介质 Download PDF

Info

Publication number
WO2023045139A1
WO2023045139A1 PCT/CN2021/139401 CN2021139401W WO2023045139A1 WO 2023045139 A1 WO2023045139 A1 WO 2023045139A1 CN 2021139401 W CN2021139401 W CN 2021139401W WO 2023045139 A1 WO2023045139 A1 WO 2023045139A1
Authority
WO
WIPO (PCT)
Prior art keywords
trigger button
distance
origin
force
current position
Prior art date
Application number
PCT/CN2021/139401
Other languages
English (en)
French (fr)
Inventor
杜文彬
Original Assignee
歌尔科技有限公司
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 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2023045139A1 publication Critical patent/WO2023045139A1/zh

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • A63F13/285Generating tactile feedback signals via the game input device, e.g. force feedback
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles

Definitions

  • the present invention relates to the field of virtual reality technology, in particular to a trigger button force feedback control method, device, electronic product and medium.
  • the purpose of the present invention is to provide a force feedback control method, device, electronic product and medium of a trigger button.
  • the main control chip obtains the current position of the trigger button on the handle and judges whether the distance between the current position of the trigger button and the origin is greater than If the distance between the previous position and the origin is not greater than that, the feedback force output by the control force feedback module remains unchanged, thereby avoiding that when the distance between the current position of the trigger button and the origin is not greater than the distance between the previous position and the origin, the feedback force Big and small make the user's fingers tremble when controlling the trigger button, which improves the user experience.
  • the present invention provides a force feedback control method for a trigger button, including:
  • the feedback force output by the control force feedback module remains unchanged, and returns to the step of obtaining the distance between the current position of the trigger button and the origin.
  • the force feedback control method of the trigger button further includes:
  • the feedback force output by the force feedback module is controlled to increase.
  • the method further includes:
  • the feedback force output by the force feedback module is controlled to be zero.
  • the activation threshold is set according to the maximum movable distance of the trigger button from the origin.
  • said obtaining the distance between the current position of the trigger button and the origin includes:
  • the distance between the current position of the trigger button and the origin is calculated according to the voltage value.
  • the present invention also provides a force feedback control device for trigger buttons, including:
  • the obtaining module is used to obtain the distance between the current position of the trigger button and the origin;
  • Judging module used to judge whether the distance between the current position of the trigger button and the origin is greater than the distance between the previous position and the origin
  • the control module is configured to control the feedback force output by the force feedback module to remain unchanged and trigger the acquisition module when the judgment result of the judgment module is negative.
  • the present invention also provides an electronic product, including a memory for storing computer programs;
  • the processor is configured to implement the steps of the force feedback control method for the trigger button when executing the computer program.
  • the electronic product is a VR device.
  • the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the force feedback of the trigger button as described The steps of the control method.
  • the trigger button force feedback control device, electronic product and medium provided by the present invention correspond to the above method, and the effect is the same as above.
  • FIG. 1 is a flow chart of a force feedback control method for a trigger button provided by an embodiment of the present invention
  • FIG. 2 is a structural diagram of a force feedback control device for a trigger button provided by an embodiment of the present invention
  • Fig. 3 is a structural diagram of an electronic product provided by another embodiment of the present invention.
  • the core of the present invention is to provide a trigger button force feedback control method, device, electronic product and medium.
  • the main control chip in the handle compares whether the distance between the current position of the trigger button and the origin is greater than the distance between the previous position and the origin. If it is not greater than, the feedback force output by the control force feedback module remains unchanged to ensure that the feedback force acting on the user's finger remains unchanged, avoiding the situation where the distance between the current position of the trigger button and the origin is not greater than the distance between the previous position and the origin , the feedback force is reduced, and then the trigger button is unstable due to the large and small feedback force, which makes the user's hand shake when using the trigger button, which improves the user experience.
  • the main control chip will change the feedback force according to the current position of the trigger button, and the feedback force acting on the user's hand will vary from time to time and become unstable. In this case, the user's finger will vibrate when using the trigger button, which will bring a bad experience to the user.
  • the present invention proposes a force feedback control method for the trigger button.
  • the current position of the trigger button is obtained through the main control chip, and according to the distance between the current position and the origin, it is judged whether it is greater than the distance between the previous position and the origin.
  • the feedback force output by the control force feedback module of the main control chip remains unchanged, so as to avoid that when the distance between the current position and the origin is not greater than the distance between the previous position and the origin, the feedback force decreases and the occurrence of The phenomenon of large and small feedback force makes the feedback force acting on the user's hands unstable.
  • Fig. 1 is a flow chart of a force feedback control method for a trigger button provided by an embodiment of the present invention. As shown in Fig. 1 , the method includes:
  • step S11 Determine whether the distance between the current position of the trigger button and the origin is greater than the distance between the previous position and the origin, if not, proceed to step S12.
  • the force feedback module can be a motor, an electromagnet, a cylinder, etc., which is not limited in the present invention.
  • step S10 obtains the distance between the current position of the trigger button and the origin
  • step S11 that is, the main control chip judges whether the distance between the current position of the trigger button and the origin is greater than the distance between the previous position and the origin, if the distance between the current position and the origin is If it is not greater than the distance between the previous position and the origin, then enter step S12, the feedback force output by the main control chip control force feedback module remains unchanged, and at the same time return to step S10 to continue to obtain the distance between the current position of the trigger button and the origin, so as to avoid if the current When the distance between the position and the origin is not greater than the distance between the previous position and the origin, the unstable feedback force will cause the finger of the user to use the trigger button to vibrate.
  • the present invention when the user uses the handle, when the distance between the current position of the trigger button and the origin is not greater than the distance between the previous position and the origin, that is, when the user releases the trigger button, due to the force that the user acts on the trigger button occurs Change, at this time, if the feedback force output by the force feedback module decreases, the trigger button will quickly retreat, causing the trigger button to be unstable, and then causing the finger acting on the trigger button to shake. In order to avoid this phenomenon, the present invention The force feedback control method of the trigger button is provided.
  • the feedback force output by the main control chip control force feedback module remains unchanged, so that the trigger button is at When released, it can be retracted smoothly, avoiding the vibration of the trigger button and improving the user experience.
  • the main control chip controls the output feedback force of the force feedback module to increase.
  • the feedback force output by the force feedback module There is an upper limit. When the upper limit is reached, the feedback force will no longer increase.
  • the distance between the current position of the trigger button and the origin is less than the start threshold, that is, the position where the user releases the trigger button returns to the start threshold range of the force feedback module.
  • the main control chip controls the output feedback force of the force feedback module to be zero, when the distance between the current position of the trigger button and the origin is greater than the start threshold again, the feedback force output by the main control chip control force feedback module is then adjusted according to the trigger button.
  • the movement of the handle is constantly increasing, thereby ensuring that the user can continue to feel the existence of the feedback force during the use of the handle.
  • a force feedback control method for a trigger button provided by the present invention includes: obtaining the distance between the current position of the trigger button and the origin, and judging whether the distance between the current position and the origin is greater than the distance between the previous position and the origin, if not greater, Then the feedback force output by the control force feedback module remains unchanged. It can be seen that, in the technical solution provided by the present invention, in the process of releasing the trigger button, it is possible to avoid the instability of the force of pressing the trigger button, the feedback force of the trigger button is reduced, and the trigger button caused by the feedback force is suddenly large or small. The problem of unstable buttons also avoids finger shaking when the user's fingers use the trigger button, improving the user experience.
  • the main control chip controls the output feedback force of the force feedback module to remain unchanged, thereby preventing the user from releasing the trigger button.
  • the unstable feedback force causes the finger of the user to use the trigger button to vibrate due to the large and small feedback force.
  • the main control chip will control the output of the force feedback module to increase the feedback force, thereby enabling the user to use the handle. While the feedback force is continuously increasing, there will be no decrease in the feedback force, so as to avoid the instability of the feedback force and the vibration of the user's finger when using the trigger button.
  • the feedback force output by the control force feedback module increases, thereby ensuring the feedback force Due to the different use scenarios of the handle, it can also avoid the situation that the force acting on the user's hand is unstable due to the decrease of the feedback force, thereby improving the user experience.
  • a start threshold of the force feedback module is set, that is, a start of the main control chip to control the work of the force feedback module threshold.
  • Fig. 2 is a structural diagram of a force feedback control device for a trigger button provided by an embodiment of the present invention. As shown in Fig. 2, the device includes:
  • the control module 12 is configured to keep the feedback force output by the control force feedback module unchanged and trigger the acquisition module when the judgment result of the judgment module is negative.
  • the electronic product may further include a display screen 22 , an input/output interface 23 , a communication interface 24 , a power supply 25 and a communication bus 26 .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种扳机按键的力反馈控制方法、装置、电子产品及介质,该方法包括:获取扳机按键的当前位置与原点的距离,并判断当前位置与原点的距离是否大于上一个位置与原点的距离,若不大于,则控制力反馈模组输出的反馈力保持不变。由此可见,相对于在扳机按键被释放的过程中,采用减小扳机按键的反馈力的控制方式而言,本发明所提供的技术方案,在扳机按键被释放的过程中,控制力反馈模组输出的反馈力保持不变,避免由于按压扳机按键力度的不稳定,出现扳机按键的反馈力减小而出现反馈力忽大忽小导致的扳机按键不稳定的问题,也就避免了用户手指使用扳机按键时出现手指抖动的情况,提高用户体验感。

Description

一种扳机按键的力反馈控制方法、装置、电子产品及介质
本申请要求于2021年09月27日提交中国专利局、申请号为202111136486.8、发明名称为“一种扳机按键的力反馈控制方法、装置、电子产品及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及虚拟现实技术领域,特别是涉及一种扳机按键的力反馈控制方法、装置、电子产品及介质。
背景技术
近几年,随着虚拟现实技术的逐渐成熟,各类产品走进大众的生活。游戏手柄、VR手柄通过控制扳机按键以控制不同场景的动作,例如,开赛车场景下,通过控制扳机按键来控制赛车油门加速,在射击场景下,通过扳机按键控制机枪的射击。为了让用户更真实地体验场景,力反馈功能逐渐应用于手柄中,目前,手柄中包括主控芯片,位置信息采集传感器,力反馈模组,当用户使用扳机按键时,位置信息采集传感器采集扳机按键的移动数据,主控芯片根据移动数据计算扳机按键的当前位置,并根据当前位置控制力反馈模组改变作用在用户手上的反馈力,提高用户体验的真实感。
用户在使用扳机按键时,需要根据当前的需求而采用不同的力度按压扳机按键,由于按压扳机按键力度的不稳定,则会导致扳机按键的力反馈不稳定,进而导致用户使用扳机按键的手指出现抖动的现象。
由此可见,如何解决手柄的扳机按键在使用过程中的反馈力不稳定,进而导致作用在用户手上的力度不稳定的问题,是本领域技术人员亟待解决的问题。
发明内容
本发明的目的是提供一种扳机按键的力反馈控制方法、装置、电子产品 及介质,主控芯片通过获取手柄上扳机按键移动的当前位置,并判断扳机按键的当前位置与原点的距离是否大于上一个位置与原点的距离,若不大于,则控制力反馈模组输出的反馈力保持不变,进而避免扳机按键的当前位置距离原点的距离不大于前一个位置与原点的距离时,反馈力忽大忽小使得用户手指控制扳机按键时出现手抖的情况,提高用户体验感。
为解决上述技术问题,本发明提供一种扳机按键的力反馈控制方法,包括:
获取扳机按键的当前位置与原点的距离;
判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离;
若不大于,则控制力反馈模组输出的反馈力保持不变,并返回所述获取扳机按键的当前位置与原点的距离的步骤。
优选地,所述扳机按键的力反馈控制方法还包括:
若所述扳机按键的当前位置与所述原点的距离大于前一个位置与所述原点的距离,则控制所述力反馈模组输出的所述反馈力增大。
优选地,在所述判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离之前还包括:
确定当前位置与所述原点的距离是否大于启动阈值;
若大于,进入所述判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离的步骤;
若不大于,则控制所述力反馈模组输出的所述反馈力为零。
优选地,所述启动阈值根据所述扳机按键距离所述原点可移动的最大距离进行设定。
优选地,所述获取扳机按键的当前位置与原点的距离包括:
获取霍尔传感器与所述扳机按键间因磁通量变化而产生的电压值;
根据所述电压值计算所述扳机按键的当前位置与所述原点的距离。
为解决上述技术问题,本发明还提供一种扳机按键的力反馈控制装置,包括:
获取模块,用于获取扳机按键的当前位置与原点的距离;
判断模块,用于判断所述扳机按键的当前位置与所述原点的距离是否大 于前一个位置与所述原点的距离;
控制模块,用于在所述判断模块的判断结果为否时,控制力反馈模组输出的反馈力保持不变,并触发所述获取模块。
为解决上述技术问题,本发明还提供一种电子产品,包括存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如所述的扳机按键的力反馈控制方法的步骤。
优选地,所述电子产品为VR设备。
为解决上述技术问题,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如所述的扳机按键的力反馈控制方法的步骤。
本发明所提供的一种扳机按键的力反馈控制方法,包括:获取扳机按键的当前位置与原点的距离,并判断当前位置与原点的距离是否大于上一个位置与原点的距离,若不大于,则控制力反馈模组输出的反馈力保持不变。由此可见,相对于在扳机按键被释放的过程中,采用减小扳机按键的反馈力的控制方式而言,本发明所提供的技术方案,在扳机按键被释放的过程中,控制力反馈模组输出的反馈力保持不变,避免由于按压扳机按键力度的不稳定,出现扳机按键的反馈力减小而出现反馈力忽大忽小导致的扳机按键不稳定的问题,也就避免了用户手指使用扳机按键时出现手指抖动的情况,提高用户体验感。
此外,本发明所提供的扳机按键的力反馈控制装置、电子产品及介质与上述方法对应,效果同上。
附图说明
为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例所提供的扳机按键的力反馈控制方法流程图;
图2为本发明实施例所提供的扳机按键的力反馈控制装置结构图;
图3为本发明另一实施例提供的一种电子产品的结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。
本发明的核心是提供一种扳机按键的力反馈控制方法、装置、电子产品及介质,手柄中的主控芯片通过对比扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离,若不大于,控制力反馈模组输出的反馈力的不变以确保作用在用户手指上的反馈力不变,避免出现扳机按键的当前位置距离原点的距离不大于前一个位置与原点的距离时,反馈力减小,进而反馈力忽大忽小导致的扳机按键不稳定,使得用户使用扳机按键时出现手抖的情况,提高用户体验感。
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。
近年来,随着虚拟现实技术的不断发展,各种虚拟现实的产品走进人们的生活。其中,游戏手柄、VR手柄等运用于游戏的手柄深受广大用户的喜爱,用户可以通过手柄的虚拟现实技术真实感受游戏场景,例如,通过手柄模拟真实的开车、格斗、飞行、射击等游戏场景,为了让用户更真实地体验各类游戏场景,自适应手柄的扳机按键的力反馈功能应用于手柄中,手柄通过位置信息采集传感器采集扳机按键的移动相关数据,并根据该相关数据计算扳机按键的当前位置,通过扳机按键的当前位置控制力反馈模组作用在用户手上一个反馈力,使得用户体验游戏中的真实感。
然而,在用户使用手柄时,由于用户按压扳机按键的力度不稳定,会导致主控芯片根据扳机按键的当前位置改变反馈力时会出现作用在用户手上的反馈力时大时小,不稳定的情况,进而使得用户手指使用扳机按键时出现抖动的情况,给用户带来不好的体验。
为了解决上述问题,本发明提出一种扳机按键的力反馈控制方法,通过主控芯片获取扳机按键的当前位置,并根据当前位置与原点的距离,判断是 否大于前一个位置与原点的距离,当不大于前一个位置与原点的距离时,主控芯片控制力反馈模组输出的反馈力不变,避免当前位置与原点的距离不大于前一个位置与原点的距离时,反馈力减小,出现反馈力忽大忽小的现象,使得作用在用户手上的反馈力不稳定。
图1为本发明实施例所提供的扳机按键的力反馈控制方法流程图,如图1所示,该方法包括:
S10:获取扳机按键的当前位置与原点的距离。
S11:判断扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离,若不大于,则进入步骤S12。
S12:控制力反馈模组输出的反馈力不变,并返回步骤S10。
在具体实施例中,手柄包括:主控芯片,位置信息采集传感器,力反馈模组。用户使用手柄时,位置信息采集模块采集扳机按键运动产生的相关数据,主控芯片获取该相关数据以计算扳机按键的当前位置与原点的距离,其中,原点为扳机按键的原始位置,即扳机按键未被触碰时所在的位置。需要说明的是,位置信息采集传感器可以是霍尔传感器,也可以是其他传感器,本发明对此不作限定,由于霍尔传感器体积小,成本低,且易于实现,因此优选霍尔传感器。此外,力反馈模组可以是电机,也可以是电磁铁,气缸等,本发明对此不作限定。步骤S10获取到扳机按键的当前位置与原点的距离后,进入步骤S11,即主控芯片判断扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离,若当前位置与原点的距离不大于前一个位置与原点的距离,则进入步骤S12,主控芯片控制力反馈模组输出的反馈力不变,同时返回步骤S10继续获取扳机按键的当前位置与原点的距离,进而避免若当前位置与原点的距离不大于前一个位置与原点的距离时,反馈力不稳定导致用户使用扳机按键的手指出现抖动的现象。值得注意的是,主控芯片除了获取扳机按键的当前位置与原点的距离,并判断当前位置是否大于前一个位置与原点的距离的功能外,还可以包括其他功能,对此本发明不作限定。此外,力反馈模组除了包含控制反馈力大小的元件外,还可以包括其他元件,对此本发明也不作限定。
在具体实施例中,用户使用手柄时,当扳机按键的当前位置与原点的距离不大于前一个位置与原点的距离时,即当用户释放扳机按键时,由于用户 作用在扳机按键上的力发生改变,此时,若力反馈模组输出的反馈力减小,则扳机按键会出现快速退回,导致扳机按键不稳定,进而导致作用在扳机按键上的手指发生抖动,为了避免该现象,本发明提供的扳机按键的力反馈控制方法,当扳机按键的当前位置与原点的距离不大于前一个位置与原点的距离时,主控芯片控制力反馈模组输出的反馈力不变,使得扳机按键在释放时,可以平缓退回,避免了扳机按键抖动的情况,提升用户体验感。
此外,当扳机按键的当前位置与原点的距离大于前一个位置与原点的距离时,主控芯片控制力反馈模组输出的反馈力增大,需要说明的是,力反馈模组输出的反馈力有一个上限值,达到上限值时反馈力不再增大,当扳机按键的当前位置与原点的距离小于启动阈值时,即用户释放扳机按键的位置退回至力反馈模组的启动阈值范围内时,主控芯片控制力反馈模组输出的反馈力为零,当扳机按键的当前位置与原点的距离重新大于启动阈值时,主控芯片控制力反馈模组输出的反馈力再根据扳机按键的移动不断增大,进而保证用户使用手柄过程中可以持续感受到反馈力的存在。
本发明所提供的一种扳机按键的力反馈控制方法,包括:获取扳机按键的当前位置与原点的距离,并判断当前位置与原点的距离是否大于上一个位置与原点的距离,若不大于,则控制力反馈模组输出的反馈力保持不变。由此可见,本发明所提供的技术方案,在扳机按键被释放的过程中,避免由于按压扳机按键力度的不稳定,出现扳机按键的反馈力减小而出现反馈力忽大忽小导致的扳机按键不稳定的问题,也就避免了用户手指使用扳机按键时出现手指抖动的情况,提高用户体验感。
在具体实施例中,当当前位置与原点的距离不大于前一个位置与原点的距离时,则主控芯片控制力反馈模组输出的反馈力不变,进而避免用户在释放扳机按键的过程中,反馈力不稳定导致用户使用扳机按键的手指由于反馈力忽大忽小出现抖动的现象。当然,若用户手指按压扳机按键移动的当前位置与原点的距离大于前一个位置与原点的距离时,主控芯片控制力反馈模组输出的反馈力增大,进而使得用户在使用手柄时,保证反馈力不断增大的同时不会出现反馈力减小的情况,避免反馈力不稳定导致用户手指使用扳机按键时出现抖动的现象。
本发实施例所提供的扳机按键的力反馈控制方法,当当前位置与原点的距离不大于前一个位置与原点的距离时,控制力反馈模组输出的反馈力增大,进而可以保证反馈力因手柄使用场景的不同不断增大的同时还可以避免反馈力减小导致作用在用户手上的力不稳定的情况,进而提升用户体验感。
在上述实施例的基础上,为了防止力反馈模组持续工作影响而力反馈模组的使用寿命,因此设置一个力反馈模组的启动阈值,即主控芯片控制力反馈模组工作的一个启动阈值。在判断扳机按键的当前位置与原点的距离是否大于上一个位置与原点的距离前,先判断扳机按键的当前位置与原点的距离是否大于启动阈值,若大于,则进入判断扳机按键的当前位置与原点的距离是否大于上一个位置与原点的距离的步骤,若不大于,则控制力反馈模组输出的反馈力为零,确保扳机按键的当前位置与原点的距离小于启动阈值时,力反馈模组不工作以延长力反馈模组的使用寿命。
本发实施例所提供的扳机按键的力反馈控制方法,为了避免力反馈模组持续工作而影响力反馈模组的使用寿命,增加设置一个力反馈模组的启动阈值,当扳机按键的当前位置距离原点的距离大于该启动阈值时,力反馈模组工作输出不同的反馈力以改变作用在用户手上的反馈力,从而保证了力反馈模组的使用寿命,进一步提升用户体验感。
在上述实施例的基础上,力反馈模组的启动阈值根据扳机按键距离原点可移动的最大距离进行设定,需要说明的是,原点为扳机按键的原始位置,即扳机按键未被触碰时所在的位置。此外,该启动阈值也可以依据其他方式进行设定,对此本发明不作限定。
本发实施例所提供的扳机按键的力反馈控制方法,对力反馈模组设置一个启动阈值,并且该启动阈值依据扳机按键距离原点可移动的最大距离进行设定,可以避免力反馈模组持续工作影响力反馈模组的使用寿命,提高用户体验感。
在具体实施例中,考虑到成本,体积大小,以及实现的难易程度,采集扳机按键移动相关数据的位置信息采集传感器设置为霍尔传感器,当然,也 可以设置为其他传感器,本发明对此不作限定。霍尔传感器设置于手柄内,其中霍尔传感器与手柄的扳机按键间有一定的距离,当用户使用手柄,手指按压移动扳机按键时会引起霍尔传感器与手柄的扳机按键间磁通量的变化,霍尔传感器依据磁通量的变化采集相应的电压值,并将该电压值传输至主控芯片,主控芯片根据该电压值计算扳机按键的当前位置与原点的距离。
本发实施例所提供的扳机按键的力反馈控制方法,将采集扳机按键移动相关数据的位置信息采集传感器设置为霍尔传感器,即可以节约成本,同时霍尔传感器体积较小且实现较容易,此外,主控芯片可以快速根据扳机按键移动时与霍尔传感器的磁通量变化计算出扳机按键的当前位置与原点的距离,以便于判断扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离以控制力反馈模组来控制作用在用户手上的反馈力大小,避免用户使用手柄时控制扳机按键的手指出现抖动的情况,进而提升用户体验感。
在上述实施例中,对于一种扳机按键的力反馈控制方法进行了详细描述,本发明还提供一种扳机按键的力反馈控制装置对应的实施例。需要说明的是,本发明从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件结构的角度。
图2为本发明实施例所提供的扳机按键的力反馈控制装置结构图,如图2所示,该装置包括:
获取模块10,用于获取扳机按键的当前位置与原点的距离。
判断模块11,用于判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离。
控制模块12,用于在所述判断模块的判断结果为否时,控制力反馈模组输出的反馈力保持不变,并触发所述获取模块。
作为优选的实施方式,该装置还包括确定模块和控制模块,确定模块用于确定当前位置与原点的距离是否大于启动阈值,若大于,进入判断扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离的步骤,若不大于,则力反馈模组输出的反馈力为零。控制模块用于若扳机按键的当前位置与原点的距离大于前一个位置与原点的距离,则控制力反馈模组输出的反馈力增大。
由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。
本发明所提供的一种扳机按键的力反馈控制装置,包括:获取扳机按键的当前位置与原点的距离,并判断当前位置与原点的距离是否大于上一个位置与原点的距离,若不大于,则控制力反馈模组输出的反馈力保持不变。由此可见,本发明所提供的技术方案,在扳机按键被释放的过程中,避免由于按压扳机按键力度的不稳定,出现扳机按键的反馈力减小而出现反馈力忽大忽小导致的扳机按键不稳定的问题,也就避免了用户手指使用扳机按键时出现手指抖动的情况,提高用户体验感。
图3为本发明另一实施例提供的一种电子产品的结构图,如图3所示,所述电子产品包括:存储器20,用于存储计算机程序;
处理器21,用于执行计算机程序时实现如上述实施例所提到的扳机按键的力反馈控制方法的步骤。
本实施例提供的电子产品可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。
其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用数字信号处理(Digital Signal Processing,简称DSP)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)、可编程逻辑阵列(Programmable Logic Array,简称PLA)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(Central Processing Unit,简称CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以在集成有图像处理器(Graphics Processing Unit,简称GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括人工智能(Artificial Intelligence,简称AI)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器20可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器20还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存 储器20至少用于存储以下计算机程序201,其中,该计算机程序被处理器21加载并执行之后,能够实现前述任一实施例公开的扳机按键的力反馈控制方法的相关步骤。另外,存储器20所存储的资源还可以包括操作系统202和数据203等,存储方式可以是短暂存储或者永久存储。其中,操作系统202可以包括Windows、Unix、Linux等。数据203可以包括但不限于扳机按键的力反馈控制方法中涉及的相关数据等。
在一些实施例中,电子产品还可包括有显示屏22、输入输出接口23、通信接口24、电源25以及通信总线26。
本领域技术人员可以理解,图3中示出的结构并不构成对电子产品的限定,可以包括比图示更多或更少的组件。
本发明实施例提供的电子产品,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如下方法:扳机按键的力反馈控制方法。
本发明实施例所提供的电子产品,包括处理器和存储器,处理器在执行存储器存储的程序时,能够实现扳机按键的力反馈控制方法,对比扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离,且控制作用在用户手上的反馈力持续增大,避免出现扳机按键的当前位置距离原点的距离不大于前一个位置与原点的距离时,反馈力减小导致的扳机按键不稳定,使得用户使用扳机按键时出现手抖的情况,提高用户体验感。
在具体实施例中,电子产品可以为VR设备,VR设备包括主控芯片,位置信息采集传感器,以及力反馈模组。主控芯片获取位置信息采集传感器采集VR设备的扳机按键移动的相关数据,并根据该相关数据计算扳机按键的当前位置与原点的距离是否大于前一个位置与原点的距离,当VR设备的扳机按键当前位置与原点的距离不大于前一个位置与原点的距离时,主控芯片控制力反馈模组输出的反馈力不变以确保作用在用户手上的作用力不变,避免用户使用VR设备时出现手抖的情况,提高用户体验感。
最后,本发明还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。
可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上对本发明所提供的一种扳机按键的力反馈控制方法、装置、电子产品及介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。

Claims (9)

  1. 一种扳机按键的力反馈控制方法,其特征在于,包括:
    获取扳机按键的当前位置与原点的距离;
    判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离;
    若不大于,则控制力反馈模组输出的反馈力保持不变,并返回所述获取扳机按键的当前位置与原点的距离的步骤。
  2. 根据权利要求1所述的扳机按键的力反馈控制方法,其特征在于,还包括:
    若所述扳机按键的当前位置与所述原点的距离大于前一个位置与所述原点的距离,则控制所述力反馈模组输出的所述反馈力增大。
  3. 根据权利要求1或2所述的扳机按键的力反馈控制方法,其特征在于,在所述判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离之前还包括:
    确定当前位置与所述原点的距离是否大于启动阈值;
    若大于,进入所述判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离的步骤;
    若不大于,则控制所述力反馈模组输出的所述反馈力为零。
  4. 根据权利要求3所述的扳机按键的力反馈控制方法,其特征在于,所述启动阈值根据所述扳机按键距离所述原点可移动的最大距离进行设定。
  5. 根据权利要求1所述的扳机按键的力反馈控制方法,其特征在于,所述获取扳机按键的当前位置与原点的距离包括:
    获取霍尔传感器与所述扳机按键间因磁通量变化而产生的电压值;
    根据所述电压值计算所述扳机按键的当前位置与所述原点的距离。
  6. 一种扳机按键的力反馈控制装置,其特征在于,包括:
    获取模块,用于获取扳机按键的当前位置与原点的距离;
    判断模块,用于判断所述扳机按键的当前位置与所述原点的距离是否大于前一个位置与所述原点的距离;
    控制模块,用于在所述判断模块的判断结果为否时,控制力反馈模组输出的反馈力保持不变,并触发所述获取模块。
  7. 一种电子产品,其特征在于,包括存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述的扳机按键的力反馈控制方法的步骤。
  8. 根据权利要求7所述的电子产品,其特征在于,所述电子产品为VR设备。
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的扳机按键的力反馈控制方法的步骤。
PCT/CN2021/139401 2021-09-27 2021-12-18 一种扳机按键的力反馈控制方法、装置、电子产品及介质 WO2023045139A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111136486.8 2021-09-27
CN202111136486.8A CN113842634B (zh) 2021-09-27 2021-09-27 一种扳机按键的力反馈控制方法、装置、电子产品及介质

Publications (1)

Publication Number Publication Date
WO2023045139A1 true WO2023045139A1 (zh) 2023-03-30

Family

ID=78980095

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139401 WO2023045139A1 (zh) 2021-09-27 2021-12-18 一种扳机按键的力反馈控制方法、装置、电子产品及介质

Country Status (2)

Country Link
CN (1) CN113842634B (zh)
WO (1) WO2023045139A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113842634B (zh) * 2021-09-27 2024-02-27 歌尔科技有限公司 一种扳机按键的力反馈控制方法、装置、电子产品及介质
CN115253281A (zh) * 2022-07-29 2022-11-01 歌尔股份有限公司 一种手柄的扳机键控制方法、装置、手柄及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6262712B1 (en) * 1997-04-24 2001-07-17 Microsoft Corporation Handle sensor with fade-in
CN105320316A (zh) * 2014-06-17 2016-02-10 中兴通讯股份有限公司 一种触摸屏的去抖动方法、装置及终端
CN105446646A (zh) * 2015-12-11 2016-03-30 小米科技有限责任公司 基于虚拟键盘的内容输入方法、装置及触控设备
US20160282943A1 (en) * 2015-03-27 2016-09-29 Chad Laurendeau System and method for force feedback interface devices
CN107168554A (zh) * 2017-04-26 2017-09-15 歌尔股份有限公司 扳机按键标定方法、装置及设备
CN110665216A (zh) * 2019-09-29 2020-01-10 网易(杭州)网络有限公司 游戏中瞄准方向的控制方法、装置、电子设备及存储介质
CN113842634A (zh) * 2021-09-27 2021-12-28 歌尔科技有限公司 一种扳机按键的力反馈控制方法、装置、电子产品及介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5691898A (en) * 1995-09-27 1997-11-25 Immersion Human Interface Corp. Safe and low cost computer peripherals with force feedback for consumer applications
JP6224734B2 (ja) * 2013-01-30 2017-11-01 ポール スミス デイビッド 可変感触及び保持フィードバック、自動化較正、及び学習可能な性能最適化を伴う操作者制御型電気出力信号装置
EP2854120A1 (en) * 2013-09-26 2015-04-01 Thomson Licensing Method and device for controlling a haptic device
US10073523B2 (en) * 2014-12-23 2018-09-11 Immersion Corporation Position control of a user input element associated with a haptic output device
CN109478098B (zh) * 2016-07-26 2022-01-11 索尼互动娱乐股份有限公司 信息处理系统、操作装置和操作装置控制方法
CN106057536B (zh) * 2016-08-05 2019-05-03 苏州达方电子有限公司 按键结构
US10226697B2 (en) * 2017-06-01 2019-03-12 Microsoft Technology Licensing, Llc Input device with sector geared feedback trigger
US10737172B2 (en) * 2017-06-01 2020-08-11 Microsoft Technology Licensing, Llc Input device with force sensor feedback trigger
WO2019009455A1 (ko) * 2017-07-07 2019-01-10 ㈜리얼감 포스 피드백 장치 및 방법
CN108020223B (zh) * 2017-11-29 2021-05-18 北京众绘虚拟现实技术研究院有限公司 一种基于惯性测量装置的力反馈设备手柄的姿态测量方法
KR102348898B1 (ko) * 2019-03-15 2022-01-11 에스엘 주식회사 차량용 페달 장치

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6262712B1 (en) * 1997-04-24 2001-07-17 Microsoft Corporation Handle sensor with fade-in
CN105320316A (zh) * 2014-06-17 2016-02-10 中兴通讯股份有限公司 一种触摸屏的去抖动方法、装置及终端
US20160282943A1 (en) * 2015-03-27 2016-09-29 Chad Laurendeau System and method for force feedback interface devices
CN105446646A (zh) * 2015-12-11 2016-03-30 小米科技有限责任公司 基于虚拟键盘的内容输入方法、装置及触控设备
CN107168554A (zh) * 2017-04-26 2017-09-15 歌尔股份有限公司 扳机按键标定方法、装置及设备
CN110665216A (zh) * 2019-09-29 2020-01-10 网易(杭州)网络有限公司 游戏中瞄准方向的控制方法、装置、电子设备及存储介质
CN113842634A (zh) * 2021-09-27 2021-12-28 歌尔科技有限公司 一种扳机按键的力反馈控制方法、装置、电子产品及介质

Also Published As

Publication number Publication date
CN113842634B (zh) 2024-02-27
CN113842634A (zh) 2021-12-28

Similar Documents

Publication Publication Date Title
WO2023045139A1 (zh) 一种扳机按键的力反馈控制方法、装置、电子产品及介质
CN109885245B (zh) 应用控制方法、装置、终端设备及计算机可读取存储介质
WO2022142626A1 (zh) 虚拟场景的适配显示方法、装置、电子设备、存储介质及计算机程序产品
KR20180094053A (ko) 프로그램 및 정보 처리 방법
KR20160120760A (ko) 호버 감지형 디바이스들에 대한 진보된 게임 메카닉스
US20090062004A1 (en) Input Terminal Emulator for Gaming Devices
CN105446525A (zh) 一种游戏角色行为的控制方法
US11270087B2 (en) Object scanning method based on mobile terminal and mobile terminal
CN108434733B (zh) 游戏对象的速度控制方法和装置
US11617953B2 (en) Virtual object interaction scripts
CN113398590A (zh) 声音处理方法、装置、计算机设备及存储介质
CN110750743B (zh) 一种动画播放方法、装置、设备及存储介质
CN115040873A (zh) 一种游戏分组处理方法、装置、计算机设备及存储介质
CN108427505A (zh) 触感控制方法、电子装置及计算机可读存储介质
US10983602B2 (en) Identifying an input device
CN107241633A (zh) 一种焦点提示方法及装置、计算机装置及可读存储介质
CN109618234A (zh) 视频播放控制方法、装置、移动终端及存储介质
CN113350801A (zh) 模型处理方法、装置、存储介质及计算机设备
CN107426612A (zh) 一种控制播放速度的方法及介质
JP2017023697A (ja) コンピュータプログラム及びタッチ操作によりゲームを進行するゲームプログラム
CN111782865A (zh) 音频信息的处理方法、装置及存储介质
CN116774835B (zh) 基于vr手柄的虚拟环境中交互方法、设备和存储介质
WO2023001011A1 (zh) 光标交互方法、电子设备及其介质
WO2024037154A1 (zh) 虚拟对象的控制方法、装置、终端、存储介质及程序产品
US20240149147A1 (en) Virtual button charging

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21958250

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE