WO2011140752A1 - Electronic device and method for obtaining user operation - Google Patents

Electronic device and method for obtaining user operation Download PDF

Info

Publication number
WO2011140752A1
WO2011140752A1 PCT/CN2010/075915 CN2010075915W WO2011140752A1 WO 2011140752 A1 WO2011140752 A1 WO 2011140752A1 CN 2010075915 W CN2010075915 W CN 2010075915W WO 2011140752 A1 WO2011140752 A1 WO 2011140752A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
electronic device
user
trackball
virtual trackball
Prior art date
Application number
PCT/CN2010/075915
Other languages
French (fr)
Chinese (zh)
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 WO2011140752A1 publication Critical patent/WO2011140752A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present invention relates to the field of communications, and in particular to an electronic device and a method for acquiring user operations.
  • manufacturers have configured physical trackballs on more and more electronic devices to provide users with a mouse-like mouse on an electronic device.
  • the physical trackball is consistently sought after by users and is considered a high-priority configuration option for high-end electronic consumption.
  • the open source Android OS system supported by the OHA Alliance it can provide better support for the trackball.
  • the OHA Alliance's compatibility requirements also recommend supporting the operation of the trackball as much as possible.
  • FIG. 1 A schematic diagram of an electronic device with a physical trackball (specifically, an Android OS wireless terminal) is shown in FIG. 1, which includes: a touch screen 1, a physical trackball 2, and a physical button 3, and the illustrated physical button 3 includes a MENU. (Menu;), HOME (Home) and BACK (Return) Three Android system essential function keys.
  • MENU MENU
  • HOME Home
  • BACK Return
  • An aspect of the present invention provides an electronic device, including: a display module, configured to display a virtual trackball on a screen of the electronic device; a receiving module, configured to receive a touch operation of the virtual trackball by the user; and an instruction generating module, configured to: Generating an action instruction according to the touch operation; and a response module, configured to perform processing in response to the action instruction.
  • the electronic device further includes: a determining module, configured to determine whether an area in which the user performs the touch operation is within a range of the area where the virtual trackball is displayed; and the receiving block module is configured to: when the determining result of the determining module is yes, Receive user's touch operation.
  • the response module includes: an update module, configured to update the display of the virtual trackball according to the action instruction. Further, the response module includes: a first determining module, configured to determine a linear trajectory generated when the action command acts on the virtual trackball; and a second determining module, configured to determine an end point of the corresponding trajectory of the linear trajectory on the screen; Used to determine the target point selected by the user as the end point. Further, the response module includes: a third determining module, configured to determine an operation direction corresponding to the motion instruction; and a focusing module, configured to control a focus of the control on the interface according to the operation direction.
  • the response module includes: a fourth determining module, configured to determine an operation direction corresponding to the motion instruction; and a cursor control module, configured to control a position of the cursor in the editing interface according to the operation direction.
  • the electronic device further includes: a setting module, configured to accept a setting of the user, wherein the setting includes at least one of the following: setting the opening or closing of the virtual trackball, setting the sensitivity of the virtual trackball, and corresponding to the action The settings of the processing, the setting of the size of the virtual trackball, and the visual effect of the virtual trackball.
  • the setting module is further configured to display an interface for receiving the setting of the user if the action instruction is consistent with the preset action instruction.
  • Another aspect of the present invention provides a method for obtaining a user operation, comprising the steps of: causing a screen of an electronic device to display a virtual trackball; receiving a user's touch operation on the virtual trackball; generating an action instruction according to the touch operation; The instructions are processed. Further, the foregoing processing includes: updating the display of the virtual trackball by the action instruction.
  • the display module of the electronic device causes the screen to display the virtual trackball
  • the receiving module receives the user's operation on the virtual trackball
  • the command generation module generates an action instruction for the operation
  • the response module responds to the action command to process the process, and receives the user
  • the operation on the virtual trackball displayed on the display screen, and executing the corresponding instruction of the operation solves the problem of high cost of the electronic device in the related art, can provide the trackball operation function for the user, and minimize the cost of the electronic device. .
  • FIG. 1 is a schematic structural diagram of an electronic device with a physical trackball in the related art
  • FIG. 2 is a structural block diagram of an electronic device according to an embodiment of the present invention
  • FIG. 3 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention
  • 4 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention
  • FIG. 1 is a schematic structural diagram of an electronic device with a physical trackball in the related art
  • FIG. 2 is a structural block diagram of an electronic device according to an embodiment of the present invention
  • FIG. 3 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention
  • 4 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention
  • FIG. 5 is a block diagram 3 of a preferred structure of an electronic device according to an embodiment of the present invention
  • FIG. 6 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention.
  • 7 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention;
  • FIG. 9 is a schematic diagram of a method for acquiring a user operation according to an embodiment of the present invention;
  • 10 is a schematic diagram of an electronic device according to Embodiment 1 of the present invention;
  • FIG. 11 is a flowchart of a process for receiving an operation of an electronic device according to Embodiment 2 of the present invention;
  • the electronic device can provide various application functions for the user, and generally includes: an output module (including a screen, a sound output module, etc.), an input module (including a keyboard, a physical trackball, etc.) and a processing module, and the following embodiments are The electronic device ⁇ has been improved.
  • FIG. 2 is a structural block diagram of an electronic device according to an embodiment of the present invention, including: a display module 22, configured to display a virtual trackball on a screen of the electronic device; and a receiving module 24 coupled to the display module 22, configured to receive a user-to-virtual track The touch operation of the ball; the command generating module 26 is coupled to the receiving module 24 for generating an action command according to the touch operation; the response module 28 is coupled to the command generating module 26 for processing in response to the action command.
  • the electronic device is equipped with a physical trackball for simulating the operation of the mouse.
  • the physical trackball includes a mechanical structure, and the operation of the mechanical structure is also converted into an electrical signal, the cost is high, resulting in an electronic device.
  • An embodiment of the present invention provides an improved electronic device that causes a screen to display a virtual trackball through the display module 22.
  • the receiving module 24 receives an operation of the virtual trackball by the user, and the command generation module 26 generates an action instruction for the operation, and the response module 28
  • the virtual trackball with the same function as the physical trackball is realized by the touch screen, which can achieve the same effect as the physical trackball and reduce the cost of the electronic device.
  • 3 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 3, the device may further include: a determining module 32 coupled to the display module 22 for determining that the user performs a touch operation.
  • the receiving block module 24 is configured to receive the touch operation of the user if the determination result of the determination module 32 is YES.
  • the response module 28 may include: an update module 42 coupled to the command generation module 26 for Update the display of the virtual trackball.
  • the response module 28 may include: a first determining module 52 coupled to the command generating module 26 for determining an action command.
  • the second determining module 54 is coupled to the first determining module 52 for determining the end point of the corresponding track of the linear track on the screen; the positioning module 56 is coupled to the second determining module 54.
  • FIG. 6 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention.
  • the response module 28 may include: a third determining module 62 coupled to the command generating module 26 for determining an action command. Corresponding operation direction; the focusing module 64 is coupled to the third determining module 62 for controlling the focus of the control on the interface according to the determined operation direction.
  • FIG. 7 is a block diagram 5 of a preferred structure of an electronic device according to an embodiment of the present invention.
  • the response module 28 may include: a fourth determining module 72 coupled to the command generating module 26 for determining an action command. Corresponding operation direction; the cursor control module 74 is coupled to the fourth determining module 72 for positioning the cursor in the operation direction control editing interface.
  • FIG. 8 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention.
  • the electronic device may further include: a setting module 82 coupled to the display module 22 and the response module 28 for receiving The setting of the user, wherein the setting includes at least one of the following: setting of turning on or off the virtual trackball, setting sensitivity to the virtual trackball, setting of processing corresponding to the action, setting of the size of the virtual trackball, The setting of the visual effect of the virtual trackball.
  • FIG. 9 is a flowchart of a method for obtaining a user operation according to an embodiment of the present invention.
  • the method includes the following steps: Step S902: displaying a virtual trackball on a screen of the electronic device; Step S904, receiving a touch of the user on the virtual trackball Step S906, generating an action instruction according to the touch operation; Step S908, in response to the action instruction, the process is performed.
  • the cost of the electronic device is high.
  • the method provided by the embodiment of the invention causes the screen to display the virtual trackball, and receives the operation of the virtual trackball by the user, and then generates an action instruction for the operation, and then responds to the action instruction to cause corresponding processing, and the touch screen is used to implement
  • the virtual trackball with the same function of the physical trackball can achieve the same effect as the physical trackball and reduce the cost of the electronic device.
  • the above processing comprises: updating the display of the virtual trackball by the action instruction.
  • This method can simulate the real rotation effect, so that the user can get a better visual experience.
  • the data structure information required to implement the virtual trackball may include at least one of the following: a touch sensitivity of the virtual trackball, a position report information of the virtual trackball, an operation interval judgment and interval data, and an area operation gesture of the virtual trackball. Processing information, the position of the virtual trackball in the interface, the current animation initial ⁇ 1 state, the virtual trackball display size, the virtual trackball other information.
  • the embodiment 1-3 described below combines the technical solutions of the above-described plurality of preferred embodiments.
  • Embodiment 1 This embodiment describes a preferred display interface design supporting a virtual trackball, including: (1) designing a virtual trackball in a touchscreen display area, and designing a virtual track as much as possible in a touch area convenient for the user to operate. ball.
  • the interface design can be a 2D animation interface.
  • the interface design can be a 3D dynamic trackball animation interface.
  • FIG. 10 is a schematic diagram of an electronic device according to Embodiment 1 of the present invention.
  • the interface design of the virtual trackball 4 can be maintained in the user operation display interface, or is a floating interface design, or embedded.
  • the interface design is designed to allow the user to operate the virtual trackball while the screen is lit.
  • FIG. 11 is a flowchart of a process for an electronic device to receive a user operation according to Embodiment 2 of the present invention.
  • the process includes the following steps: Step 1: The electronic device is powered on and started, and the touch screen device is initialized and completed; Step 2, Virtual The data structure information required by the trackball is initialized and completed; Step 3, the electronic device is in a standby state, ready to receive the touch screen trigger; Step 4, determining whether the touch screen trigger area belongs to the area to which the virtual trackball belongs; Step 5: If the touch screen trigger area belongs to the area to which the virtual trackball belongs, start the virtual trackball processing flow; if the touch screen trigger area does not belong to the area of the virtual trackball, start the normal processing of the touch screen; Step 6, the electronic device responds to the user shutdown operation, shuts down Power off.
  • Embodiment 3 The virtual trackball processing flow described in Embodiment 2 includes the following parsing and triggering actions: Step 1, the touch operation software parses, parses the user's operation into an operation behavior specific to the actual physical trackball, and The application layer software is applied to the application layer software; as a specific example, the touch operation software analysis of the virtual trackball (ie, the correspondence between the touch operation and the action instruction) includes the following definitions according to different needs of the user:
  • the linear gesture operates the virtual trackball touch area and resolves to the physical trackball scrolling operation. 4 ⁇ scrolling operation in 3D coordinates. If swiping left, it is resolved to move the physical trackball to the left.
  • the method of converting two-dimensional operations into three-dimensional coordinates in the 3D technology such as Open Graphics Library (OpenGL) has already mature technology, and can control 3D virtual trackball through 2D operation.
  • An exemplary conversion approach is to simulate three coordinate sensing points of a physical trackball that update the data changes of the three virtual sensing contacts in real time as the virtual trackball is controlled to rotate. If the trackball is rotated 90 degrees in parallel in an operation, and R is the virtual trackball radius parameter value, then the coordinates of X, Y, and ⁇ may be up to 4 ⁇ : 4 (0, 0, R) to (0) , R, 0);
  • the curve gesture operates the virtual trackball touch area, and the analysis action is first calculated and converted into the operation feedback of the simulated physical trackball according to the curve operation of the gesture, and then the feedback result is reported to the application layer, and the supply layer is collected and processed.
  • This operation is mainly used when special scenes such as game operations are required to perform fine operation of the virtual trackball. More parsing implementations can be continually set and modified in subsequent user experiences. Moreover, in a specific practice, a correspondence relationship between other touch operations and motion instructions may also be set, and the embodiment is not limited to the relationship definitions exemplified above.
  • Step 2 the corresponding operation behavior is parsed, the virtual trackball interface is displayed in real time, and the touch feedback is given when necessary, such as vibration;
  • Step 3 If the user triggers the operation of setting the trackball sensitivity, the user may be Operation habits, custom selection of the sensitivity, size and visual effect of the virtual trackball, the user can also choose to close the virtual trackball device.
  • Embodiment 4 In order to improve the user's body-risk, in the specific implementation process, the virtual trackball can be correspondingly processed according to the scene currently interacting with the user, so as to improve the user's operating body-risk.
  • Scene 1 An application scenario that requires fine manipulation of the direction.
  • the operation of this scenario can best achieve the purpose of fine control.
  • the virtual trackball is required to judge the sliding of the user's finger, and the algorithm continuously calculates the performance and effect of the continuous scrolling of the physical trackball to achieve the purpose of quickly positioning the specific orientation in the display screen. For example, if the trackball is rotated 90 degrees in parallel in an operation and R is the virtual trackball radius parameter value, then the possible 4 ⁇ changes in the coordinates of X, Y, and ⁇ are: (0, 0, R) to (0) , R, 0).
  • Scene 2 Control layout interface for each main menu and submenu.
  • the focus of the controls in the interface can be controlled by the virtual trackball, and the selection of the focus can be selected from the simple up, down, left and right directions. This operation is similar to the up, down, left, and right direction keyboards in conventional terminals.
  • Traditional arrow keys need to be moved one by one during short presses to test user patience. When you press and hold it, it will produce a fast moving effect, but you cannot control the speed of the focus movement between the controls, which may lead to misoperation.
  • the advantage of using the virtual trackball is that it does not require continuous operation, and smooth and continuous operation between the controls can be realized.
  • Scene 3 Enter in each edit box.
  • the direction of the cursor in the interface can be controlled by the virtual trackball to achieve an implementation such as an input method that requires fine operations.
  • This operation is also similar to the up, down, left, and right direction keyboards in traditional terminals, but the traditional arrow keys need to be moved one by one during short presses to test the user's Patience; It will produce a fast moving effect when pressed for a long time, but it cannot control the moving speed and is easy to operate incorrectly.
  • FIG. 12 is a flowchart of virtual trackball processing in each scene according to Embodiment 4 of the present invention, including the following steps: Step 1201: The user starts up, and enters standby to operate the virtual trackball; Step 1202, User The interface operation can be triggered by the linear operation of the touch area of the virtual trackball. The virtual trackball is suspended in the lower right of the interface, and the interface of the 10MM dynamic 3D ball is fed back to the user for operation display; Step 1203, according to the user operation.
  • the different scenarios are processed separately. Specifically, in scenario 1, that is, an application scenario that requires a fine control direction, the following steps are included:
  • the focus selection can be selected from the simple up, down, left, and right directions.
  • the main points of the function are: To achieve the user's focus selection for a specific control, and with the MENU button, the user can enter the MENU option for the control. This operation is different from the click, double click and long press operation for the control. In the Android OS system, these four operations are defined as corresponding to different interaction meanings. Clicking is to activate the control, double-clicking for the specific operation of the control, and triggering the respective functions according to different definitions of each control.
  • the direction of the cursor in the interface can be controlled to achieve an implementation such as an input method that requires fine operations. For example, after the user enters the three letters of ABC, the user needs to modify B to D. He needs to move the cursor one bit later, and then select the delete function. Since the letter spacing is too small, the finger cannot locate the cursor very quickly. At this time, the software can set the virtual track. The ball is positioned to control the direction of the cursor, and achieves the effect of finely controlling the cursor through the virtual trackball.
  • the virtual trackball needs to be sensitive to various up, down, left, and right directions to achieve the effect of quickly positioning the cursor.
  • the solution provided by the embodiment of the present invention can simulate the user-use risk of the physical trackball, and achieve the convenience of the user to finely select and operate the interface through the effect of the software design, and at the same time achieve the effect of saving the device cost.
  • the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, may be different The steps shown or described are performed in the order herein.

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)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An electronic device and a method for obtaining the user operation are provided in the present invention, the electronic device includes: a display module, for displaying virtual track ball on the screen of the electronic device; a receiving module, for receiving the touch operation of a user on the virtual track ball; an instruction generation module, for generating a motion instruction according to the touch operation; a response module, for performing treatment responding to the motion instruction. The present invention can not only provide track ball operation function to users, but also reduce the cost of electronic device as most as possible.

Description

电子装置及获取用户 4喿作的方法 技术领域 本发明涉及通信领域, 具体而言, 涉及一种电子装置及获取用户操作的 方法。 背景技术 在竟争日益激烈的电子市场中, 为了提高用户体 -险, 生产商在越来越多 的电子装置上配置了物理轨迹球, 以便在电子设备上为用户提供类似于 PC 机上鼠标的功能。 事实证明, 物理轨迹球受到用户一致追捧, 视为为高端电 子消费的高优先配置选择。 在 OHA联盟支持的开源 Android OS系统中, 能 够对轨迹球提供较好的支持度。 OHA联盟的兼容性要求也建议尽量支持轨迹 球的操作。 一种带有物理轨迹球的电子装置 (具体为 Android OS无线终端) 的结构示意图如图 1所示, 其包括: 触摸屏 1、 物理轨迹球 2和物理按键 3 , 图示的物理按键 3 包括 MENU (菜单;)、 HOME (主页) 和 BACK (返回) 三个 Android系统必备的功能键。 但是, 这种物理轨迹球的成本较高, 这势必会增加电子设备的成本, 从 而导致产品的竟争力下降。 发明内容 本发明的主要目的在于提供一种电子装置及获取用户操作的方法, 以至 少解决上述问题。 本发明的一个方面提供了一种电子装置, 包括: 显示模块, 用于使电子 装置的屏幕显示虚拟轨迹球; 接收模块, 用于接收用户对虚拟轨迹球的触摸 操作; 指令生成模块, 用于根据触摸操作生成动作指令; 响应模块, 用于响 应于动作指令做出处理。 进一步地, 该电子装置还包括: 判断模块, 用于判断用户进行触摸操作 的区域是否位于显示虚拟轨迹球的区域的范围内; 接收块模块用于在判断模 块的判断结果为是的情况下, 接收用户的触摸操作。 进一步地, 响应模块包括: 更新模块, 用于根据动作指令更新对虚拟轨 迹球的显示。 进一步地, 响应模块包括: 第一确定模块, 用于确定动作指令作用于虚 拟轨迹球时产生的线性轨迹; 第二确定模块, 用于确定线性轨迹在屏幕上对 应的轨迹的终点; 定位模块, 用于确定用户选定的目标点为终点。 进一步地, 响应模块包括: 第三确定模块, 用于确定动作指令对应的操 作方向; 聚焦模块, 用于根据操作方向控制界面上控件的聚焦。 进一步地, 响应模块包括: 第四确定模块, 用于确定动作指令对应的操 作方向; 光标控制模块, 用于根据操作方向控制编辑界面中光标的位置。 进一步地, 该电子装置还包括: 设置模块, 用于接受用户的设置, 其中, 设置包括以下至少之一: 对虚拟轨迹球的开启或关闭的设置、 对虚拟轨迹球 灵敏度的设置、 对动作对应的处理的设置、 对虚拟轨迹球的大小的设置、 对 虚拟轨迹球的视觉效果的设置。 进一步地, 设置模块还用于在动作指令与预先设定的动作指令相一致的 情况下, 显示用于接收用户的设置的界面。 本发明的另一个方面提供了一种获取用户操作的方法, 包括以下步骤: 使电子装置的屏幕显示虚拟轨迹球; 接收用户对虚拟轨迹球的触摸操作; 根 据触摸操作生成动作指令; 响应于动作指令做出处理。 进一步地, 上述处理包括: 居动作指令更新对虚拟轨迹球的显示。 通过本发明, 电子装置的显示模块使屏幕显示虚拟轨迹球, 接收模块接 收用户对虚拟轨迹球的操作, 指令生成模块对该操作生成动作指令, 响应模 块响应于动作指令故出处理, 通过接收用户在显示屏显示的虚拟轨迹球上的 操作, 并执行该操作对应的指令, 解决了相关技术中电子装置成本较高的问 题, 既能为用户提供轨迹球操作功能, 又尽量减少了电子装置成本。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是相关技术中带有物理轨迹球的电子装置的结构示意图; 图 2是 居本发明实施例的电子装置的结构框图; 图 3是 居本发明实施例的电子装置的优选结构框图一; 图 4是 居本发明实施例的电子装置的优选结构框图二; 图 5是 居本发明实施例的电子装置的优选结构框图三; 图 6是 居本发明实施例的电子装置的优选结构框图四; 图 7是 居本发明实施例的电子装置的优选结构框图五; 图 8是 居本发明实施例的电子装置的优选结构框图六; 图 9是 居本发明实施例的获取用户操作的方法的流程图; 图 10是才艮据本发明实施例 1的电子装置示意图; 图 11是根据本发明实施例 2的电子装置接收用户操作的处理流程图; 图 12是根据本发明实施例 4的在各场景下的虚拟轨迹球处理的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 电子装置能够为用户提供各种应用功能, 其通常包括: 输出模块 (包括 屏幕、 声音输出模块等等)、 输入模块(包括键盘、 物理轨迹球等等)和处理 模块, 以下实施例对现有的电子装置^ 出了改进。 图 2是根据本发明实施例的电子装置的结构框图, 包括: 显示模块 22 , 用于使电子装置的屏幕显示虚拟轨迹球; 接收模块 24 , 耦合至显示模块 22 , 用于接收用户对虚拟轨迹球的触摸操作; 指令生成模块 26 , 耦合至接收模块 24 , 用于根据上述触摸操作生成动作指令; 响应模块 28 , 耦合至指令生成模 块 26 , 用于响应于该动作指令故出处理。 相关技术中, 电子装置为了模拟鼠标的操作, 配备了物理轨迹球, 然而, 由于物理轨迹球包括了机械结构,同时还要将机械结构的动作转换为电信号, 成本较高, 导致电子装置的成本偏高。 本发明实施例提供了一种改进的电子 装置, 其通过显示模块 22使屏幕显示虚拟轨迹球, 接收模块 24接收用户对 虚拟轨迹球的操作, 指令生成模块 26对该操作生成动作指令, 响应模块 28 响应于动作指令故出处理, 釆用触摸屏实现了与物理轨迹球功能相同的虚拟 轨迹球, 既能达到与物理轨迹球相同的效果, 又减少了电子装置的成本。 图 3是 居本发明实施例的电子装置的优选结构框图一, 如图 3所示, 优选地, 该装置还可以包括: 判断模块 32 , 耦合至显示模块 22 , 用于判断 用户进行触摸操作的区域是否位于显示虚拟轨迹球的区域的范围内; 接收块 模块 24用于在判断模块 32的判断结果为是的情况下,接收用户的触摸操作。 通过判断模块 32 进行的判断过程, 能够将用户对虚拟轨迹球的操作与用户 对触摸屏其他区域的操作区别开来, 防止处理混乱。 图 4是 居本发明实施例的电子装置的优选结构框图二, 如图 4所示, 优选地, 响应模块 28可以包括: 更新模块 42 , 合至指令生成模块 26 , 用 于才艮据动作指令更新对虚拟轨迹球的显示。 通过更新模块 42 更新对虚拟轨 迹球的显示, 例如, 更新虚拟轨迹球的转动状态的显示, 能够模拟真实的转 动效果, 使用户获得较好的视觉感受, 减小虚拟轨迹球和物理轨迹球之间的 体验差异。 图 5是 居本发明实施例的电子装置的优选结构框图三, 如图 5所示, 优选地, 响应模块 28可以包括: 第一确定模块 52 , 耦合至指令生成模块 26 , 用于确定动作指令作用于虚拟轨迹球时产生的线性轨迹; 第二确定模块 54 , 耦合至第一确定模块 52 , 用于确定线性轨迹在屏幕上对应的轨迹的终点; 定 位模块 56 , 合至第二确定模块 54 , 用于确定用户选定的目标点为上述确 定的终点。 通过以上第一确定模块 52、 第二确定模块 54和定位模块 56的配 合, 能够根据用户的线性操作快速获得用户指定的目标位置, 模拟了物理轨 迹球的 "鼠标" 操作功能。 图 6是 居本发明实施例的电子装置的优选结构框图四, 如图 4所示, 优选地, 响应模块 28可以包括: 第三确定模块 62 , 耦合至指令生成模块 26 , 用于确定动作指令对应的操作方向; 聚焦模块 64 , 耦合至第三确定模块 62 , 用于根据上述确定的操作方向控制界面上控件的聚焦。 通过以上第三确定模 块 62和聚焦模块 64的配合,能够根据用户的线性操作快速进行聚焦的控制, 不需要用户进行连续操作, 防止用户误操作。 图 7是 居本发明实施例的电子装置的优选结构框图五, 如图 5所示, 优选地, 响应模块 28可以包括: 第四确定模块 72 , 耦合至指令生成模块 26 , 用于确定动作指令对应的操作方向; 光标控制模块 74 , 耦合至第四确定模块 72 , 用于 居操作方向控制编辑界面中光标的位置。 通过以上第四确定模块 72和光标控制模块 74的配合, 能够 居用户的线性操作快速调整光标在编 辑界面的位置, 无需用户进行连续操作, 可实现平滑的调整, 防止用户误操 作。 图 8是 居本发明实施例的电子装置的优选结构框图六, 如图 8所示, 优选地, 该电子装置还可以包括: 设置模块 82 , 耦合至显示模块 22和响应 模块 28 , 用于接受用户的设置, 其中, 设置包括以下至少之一: 对虚拟轨迹 球的开启或关闭的设置、 对虚拟轨迹球灵敏度的设置、 对动作对应的处理的 设置、 对虚拟轨迹球的大小的设置、 对虚拟轨迹球的视觉效果的设置。 通过 设置模块 82 的设置, 能够提高用户对虚拟轨迹球的控制灵活度, 提供个性 化的功能体验, 提高用户的满意度。 优选地, 设置模块 82 还可以用于在动作指令与预先设定的动作指令相 一致的情况下, 显示用于接收用户的设置的界面。 通过以上的设置, 能够快 捷进入设置界面, 提高操作的效率。 图 9是 居本发明实施例的获取用户操作的方法的流程图, 该方法包括 以下步 4聚: 步骤 S902, 使电子装置的屏幕显示虚拟轨迹球; 步骤 S904 , 接收用户对虚拟轨迹球的触摸操作; 步骤 S906, 根据该触摸操作生成动作指令; 步骤 S908, 响应于该动作指令故出处理。 相关技术中, 电子装置的成本偏高。 本发明实施例提供的方法使屏幕显 示虚拟轨迹球, 并接收用户对虚拟轨迹球的操作,再对该操作生成动作指令, 之后响应于该动作指令故出相应的处理, 釆用触摸屏实现了与物理轨迹球功 能相同的虚拟轨迹球, 既能达到与物理轨迹球相同的效果, 又减少了电子装 置的成本。 优选地, 以上的处理包括: 居动作指令更新对虚拟轨迹球的显示。 该 方法能够模拟真实的转动效果, 使用户获得较好的视觉感受。 优选地, 实现虚拟轨迹球所需的数据结构信息可以包括以下至少之一: 虚拟轨迹球的触控灵敏度, 虚拟轨迹球的位置上报信息, 操作间隔判断和间 隔数据,虚拟轨迹球的区域操作手势处理信息 ,虚拟轨迹球在界面中的位置, 当前动画初始 ^1 态, 虚拟轨迹球显示大小, 虚拟轨迹球其他信息。 下面描述的实施例 1-3 , 综合了上述多个优选实施例的技术方案。 实施例 1 该实施例描述了一种支持虚拟轨迹球的优选的显示界面设计, 包括: ( 1 ) 在触摸屏显示区域中设计虚拟轨迹球, 并尽可能在方便用户操作 的触摸区域中设计虚拟轨迹球。 TECHNICAL FIELD The present invention relates to the field of communications, and in particular to an electronic device and a method for acquiring user operations. BACKGROUND OF THE INVENTION In an increasingly competitive electronic market, in order to improve user risk, manufacturers have configured physical trackballs on more and more electronic devices to provide users with a mouse-like mouse on an electronic device. Features. It turns out that the physical trackball is consistently sought after by users and is considered a high-priority configuration option for high-end electronic consumption. In the open source Android OS system supported by the OHA Alliance, it can provide better support for the trackball. The OHA Alliance's compatibility requirements also recommend supporting the operation of the trackball as much as possible. A schematic diagram of an electronic device with a physical trackball (specifically, an Android OS wireless terminal) is shown in FIG. 1, which includes: a touch screen 1, a physical trackball 2, and a physical button 3, and the illustrated physical button 3 includes a MENU. (Menu;), HOME (Home) and BACK (Return) Three Android system essential function keys. However, the cost of such a physical trackball is high, which inevitably increases the cost of electronic equipment, resulting in a decline in the competitiveness of the product. SUMMARY OF THE INVENTION A primary object of the present invention is to provide an electronic device and a method of acquiring user operations to at least solve the above problems. An aspect of the present invention provides an electronic device, including: a display module, configured to display a virtual trackball on a screen of the electronic device; a receiving module, configured to receive a touch operation of the virtual trackball by the user; and an instruction generating module, configured to: Generating an action instruction according to the touch operation; and a response module, configured to perform processing in response to the action instruction. Further, the electronic device further includes: a determining module, configured to determine whether an area in which the user performs the touch operation is within a range of the area where the virtual trackball is displayed; and the receiving block module is configured to: when the determining result of the determining module is yes, Receive user's touch operation. Further, the response module includes: an update module, configured to update the display of the virtual trackball according to the action instruction. Further, the response module includes: a first determining module, configured to determine a linear trajectory generated when the action command acts on the virtual trackball; and a second determining module, configured to determine an end point of the corresponding trajectory of the linear trajectory on the screen; Used to determine the target point selected by the user as the end point. Further, the response module includes: a third determining module, configured to determine an operation direction corresponding to the motion instruction; and a focusing module, configured to control a focus of the control on the interface according to the operation direction. Further, the response module includes: a fourth determining module, configured to determine an operation direction corresponding to the motion instruction; and a cursor control module, configured to control a position of the cursor in the editing interface according to the operation direction. Further, the electronic device further includes: a setting module, configured to accept a setting of the user, wherein the setting includes at least one of the following: setting the opening or closing of the virtual trackball, setting the sensitivity of the virtual trackball, and corresponding to the action The settings of the processing, the setting of the size of the virtual trackball, and the visual effect of the virtual trackball. Further, the setting module is further configured to display an interface for receiving the setting of the user if the action instruction is consistent with the preset action instruction. Another aspect of the present invention provides a method for obtaining a user operation, comprising the steps of: causing a screen of an electronic device to display a virtual trackball; receiving a user's touch operation on the virtual trackball; generating an action instruction according to the touch operation; The instructions are processed. Further, the foregoing processing includes: updating the display of the virtual trackball by the action instruction. Through the invention, the display module of the electronic device causes the screen to display the virtual trackball, the receiving module receives the user's operation on the virtual trackball, the command generation module generates an action instruction for the operation, and the response module responds to the action command to process the process, and receives the user The operation on the virtual trackball displayed on the display screen, and executing the corresponding instruction of the operation, solves the problem of high cost of the electronic device in the related art, can provide the trackball operation function for the user, and minimize the cost of the electronic device. . BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawing: 1 is a schematic structural diagram of an electronic device with a physical trackball in the related art; FIG. 2 is a structural block diagram of an electronic device according to an embodiment of the present invention; FIG. 3 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention; 4 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention; FIG. 5 is a block diagram 3 of a preferred structure of an electronic device according to an embodiment of the present invention; FIG. 6 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. 7 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention; FIG. 8 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention; FIG. 9 is a schematic diagram of a method for acquiring a user operation according to an embodiment of the present invention; 10 is a schematic diagram of an electronic device according to Embodiment 1 of the present invention; FIG. 11 is a flowchart of a process for receiving an operation of an electronic device according to Embodiment 2 of the present invention; FIG. 12 is a flowchart of Embodiment 4 according to Embodiment 4 of the present invention; Flow chart of virtual trackball processing under each scene. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The electronic device can provide various application functions for the user, and generally includes: an output module (including a screen, a sound output module, etc.), an input module (including a keyboard, a physical trackball, etc.) and a processing module, and the following embodiments are The electronic device ^ has been improved. 2 is a structural block diagram of an electronic device according to an embodiment of the present invention, including: a display module 22, configured to display a virtual trackball on a screen of the electronic device; and a receiving module 24 coupled to the display module 22, configured to receive a user-to-virtual track The touch operation of the ball; the command generating module 26 is coupled to the receiving module 24 for generating an action command according to the touch operation; the response module 28 is coupled to the command generating module 26 for processing in response to the action command. In the related art, the electronic device is equipped with a physical trackball for simulating the operation of the mouse. However, since the physical trackball includes a mechanical structure, and the operation of the mechanical structure is also converted into an electrical signal, the cost is high, resulting in an electronic device. The cost is high. An embodiment of the present invention provides an improved electronic device that causes a screen to display a virtual trackball through the display module 22. The receiving module 24 receives an operation of the virtual trackball by the user, and the command generation module 26 generates an action instruction for the operation, and the response module 28 In response to the action command, the virtual trackball with the same function as the physical trackball is realized by the touch screen, which can achieve the same effect as the physical trackball and reduce the cost of the electronic device. 3 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 3, the device may further include: a determining module 32 coupled to the display module 22 for determining that the user performs a touch operation. Whether the area is within the range of the area in which the virtual trackball is displayed; the receiving block module 24 is configured to receive the touch operation of the user if the determination result of the determination module 32 is YES. By judging the judgment process performed by the module 32, the user's operation of the virtual trackball can be distinguished from the user's operation of other areas of the touch screen to prevent confusion. 4 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 4, the response module 28 may include: an update module 42 coupled to the command generation module 26 for Update the display of the virtual trackball. Updating the display of the virtual trackball by the update module 42, for example, updating the display of the rotation state of the virtual trackball, can simulate the real rotation effect, so that the user obtains a better visual experience, and reduces the virtual trackball and the physical trackball. The difference in experience between the two. 5 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 5, the response module 28 may include: a first determining module 52 coupled to the command generating module 26 for determining an action command. The second determining module 54 is coupled to the first determining module 52 for determining the end point of the corresponding track of the linear track on the screen; the positioning module 56 is coupled to the second determining module 54. , used to determine that the target point selected by the user is the determined end point. Through the cooperation of the first determining module 52, the second determining module 54, and the positioning module 56, the user-specified target position can be quickly obtained according to the linear operation of the user, and the "mouse" operation function of the physical trackball is simulated. FIG. 6 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 4, the response module 28 may include: a third determining module 62 coupled to the command generating module 26 for determining an action command. Corresponding operation direction; the focusing module 64 is coupled to the third determining module 62 for controlling the focus of the control on the interface according to the determined operation direction. Through the cooperation of the above third determining module 62 and the focusing module 64, the focus control can be quickly performed according to the linear operation of the user. Users are not required to perform continuous operations to prevent users from operating incorrectly. FIG. 7 is a block diagram 5 of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 5, the response module 28 may include: a fourth determining module 72 coupled to the command generating module 26 for determining an action command. Corresponding operation direction; the cursor control module 74 is coupled to the fourth determining module 72 for positioning the cursor in the operation direction control editing interface. Through the cooperation of the fourth determining module 72 and the cursor control module 74, the position of the cursor on the editing interface can be quickly adjusted by the user's linear operation, and the user can perform smooth operation without the need for continuous operation, thereby preventing the user from misoperation. FIG. 8 is a block diagram of a preferred structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 8, the electronic device may further include: a setting module 82 coupled to the display module 22 and the response module 28 for receiving The setting of the user, wherein the setting includes at least one of the following: setting of turning on or off the virtual trackball, setting sensitivity to the virtual trackball, setting of processing corresponding to the action, setting of the size of the virtual trackball, The setting of the visual effect of the virtual trackball. By setting the setting of the module 82, the user can control the flexibility of the virtual trackball, provide a personalized functional experience, and improve user satisfaction. Preferably, the setting module 82 is further configured to display an interface for receiving a setting of the user if the action instruction is consistent with the preset action command. Through the above settings, the setting interface can be quickly accessed to improve the efficiency of the operation. FIG. 9 is a flowchart of a method for obtaining a user operation according to an embodiment of the present invention. The method includes the following steps: Step S902: displaying a virtual trackball on a screen of the electronic device; Step S904, receiving a touch of the user on the virtual trackball Step S906, generating an action instruction according to the touch operation; Step S908, in response to the action instruction, the process is performed. In the related art, the cost of the electronic device is high. The method provided by the embodiment of the invention causes the screen to display the virtual trackball, and receives the operation of the virtual trackball by the user, and then generates an action instruction for the operation, and then responds to the action instruction to cause corresponding processing, and the touch screen is used to implement The virtual trackball with the same function of the physical trackball can achieve the same effect as the physical trackball and reduce the cost of the electronic device. Preferably, the above processing comprises: updating the display of the virtual trackball by the action instruction. This method can simulate the real rotation effect, so that the user can get a better visual experience. Preferably, the data structure information required to implement the virtual trackball may include at least one of the following: a touch sensitivity of the virtual trackball, a position report information of the virtual trackball, an operation interval judgment and interval data, and an area operation gesture of the virtual trackball. Processing information, the position of the virtual trackball in the interface, the current animation initial ^1 state, the virtual trackball display size, the virtual trackball other information. The embodiment 1-3 described below combines the technical solutions of the above-described plurality of preferred embodiments. Embodiment 1 This embodiment describes a preferred display interface design supporting a virtual trackball, including: (1) designing a virtual trackball in a touchscreen display area, and designing a virtual track as much as possible in a touch area convenient for the user to operate. ball.
( 2 )该界面设计可以为 2D的动画界面, 优选地, 为了实现良好的显示 效果, 该界面设计可以为 3D的动态轨迹球动画界面。 (2) The interface design can be a 2D animation interface. Preferably, in order to achieve a good display effect, the interface design can be a 3D dynamic trackball animation interface.
( 3 ) 该动画设计能反映用户当前模拟轨迹球的视觉效果。 ( 4 ) 图 10是 居本发明实施例 1 的电子装置示意图, 如图 10所示, 虚拟轨迹球 4的界面设计可以一直保持在用户操作显示界面中, 或为悬浮式 界面设计, 或为嵌入式界面设计, 目的为用户在屏幕点亮时都能操作该虚拟 轨迹球。 实施例 2 图 11是根据本发明实施例 2的电子装置接收用户操作的处理流程图,该 流程包括以下步骤: 步骤 1 , 电子装置上电开机启动, 触摸屏器件初始化启动并完成; 步骤 2, 虚拟轨迹球需要的数据结构信息初始化启动并完成; 步骤 3 , 电子装置处于待机状态, 时刻准备接收触摸屏触发; 步骤 4, 判断触摸屏触发区域是否属于虚拟轨迹球所属区域; 步骤 5 , 如果触摸屏触发区域属于虚拟轨迹球所属区域,启动虚拟轨迹球 处理流程; 如果触摸屏触发区域不属于虚拟轨迹球所属区域, 启动触摸屏正 常处理流程; 步骤 6, 电子装置响应用户关机操作, 关机断电。 实施例 3 实施例 2中所述的虚拟轨迹球处理流程包含了以下的解析和触发动作: 步骤 1 , 触控操作软件解析, 将用户的操作解析为具体对于实际物理轨 迹球的操作行为, 并上 4艮给应用层软件; 作为一个具体的实例, 针对用户的不同需求, 虚拟轨迹球的触控操作软 件解析 (即, 触摸操作和动作指令的对应关系) 包括如下的定义: (3) The animation design can reflect the visual effect of the user's current simulated trackball. (4) FIG. 10 is a schematic diagram of an electronic device according to Embodiment 1 of the present invention. As shown in FIG. 10, the interface design of the virtual trackball 4 can be maintained in the user operation display interface, or is a floating interface design, or embedded. The interface design is designed to allow the user to operate the virtual trackball while the screen is lit. Embodiment 2 FIG. 11 is a flowchart of a process for an electronic device to receive a user operation according to Embodiment 2 of the present invention. The process includes the following steps: Step 1: The electronic device is powered on and started, and the touch screen device is initialized and completed; Step 2, Virtual The data structure information required by the trackball is initialized and completed; Step 3, the electronic device is in a standby state, ready to receive the touch screen trigger; Step 4, determining whether the touch screen trigger area belongs to the area to which the virtual trackball belongs; Step 5: If the touch screen trigger area belongs to the area to which the virtual trackball belongs, start the virtual trackball processing flow; if the touch screen trigger area does not belong to the area of the virtual trackball, start the normal processing of the touch screen; Step 6, the electronic device responds to the user shutdown operation, shuts down Power off. Embodiment 3 The virtual trackball processing flow described in Embodiment 2 includes the following parsing and triggering actions: Step 1, the touch operation software parses, parses the user's operation into an operation behavior specific to the actual physical trackball, and The application layer software is applied to the application layer software; as a specific example, the touch operation software analysis of the virtual trackball (ie, the correspondence between the touch operation and the action instruction) includes the following definitions according to different needs of the user:
( 1 ) 长按虚拟轨迹球触控区域超过 5 秒, 解析为可进行虚拟轨迹球设 置操作; (1) Long press the virtual trackball touch area for more than 5 seconds, and parse it as a virtual trackball setting operation;
( 2 ) 短按虚拟轨迹球触控区域, 解析为物理轨迹球点击处理; (2) Short press the virtual trackball touch area, and resolve to the physical trackball click processing;
( 3 ) 双击虚拟轨迹球触控区域, 解析为物理轨迹球双击并同时上报间 隔时间值; (3) Double-click the touch area of the virtual trackball to resolve to double-click the physical trackball and report the interval value at the same time;
( 4 ) 线性手势操作虚拟轨迹球触控区域, 解析为物理轨迹球滚动操作。 以 3维坐标方式上 4艮滚动操作。 如左划动, 解析为向左拨动物理轨迹球。 其 中,将二维操作转化为三维坐标的方法在开放图形库( Open Graphics Library, 简称为 OpenGL )等 3D技术中, 已经有较成熟的技术, 可以通过 2D的操作, 来控制 3D虚拟轨迹球, 一种示例性的转化做法是模拟出物理轨迹球的三个 坐标感应点, 当虚拟轨迹球被控制转动时, 实时更新这三个虚拟传感触点的 数据变化。如轨迹球在某操作中平行转了 90度, R为虚拟轨迹球半径参数值, 那么 X、 Y、 Ζ的坐标可能的上 4艮变 4匕是: (0, 0, R ) 到 (0, R, 0 ); (4) The linear gesture operates the virtual trackball touch area and resolves to the physical trackball scrolling operation. 4艮 scrolling operation in 3D coordinates. If swiping left, it is resolved to move the physical trackball to the left. Among them, the method of converting two-dimensional operations into three-dimensional coordinates in the 3D technology such as Open Graphics Library (OpenGL) has already mature technology, and can control 3D virtual trackball through 2D operation. An exemplary conversion approach is to simulate three coordinate sensing points of a physical trackball that update the data changes of the three virtual sensing contacts in real time as the virtual trackball is controlled to rotate. If the trackball is rotated 90 degrees in parallel in an operation, and R is the virtual trackball radius parameter value, then the coordinates of X, Y, and 可能 may be up to 4艮: 4 (0, 0, R) to (0) , R, 0);
( 5 ) 曲线手势操作虚拟轨迹球触控区域, 解析动作为首先根据手势的 曲线操作计算并换算为模拟物理轨迹球的操作反馈, 其次将换算结果反馈上 报给应用层, 供应用层收集处理。 该操作主要应用于需要虚拟轨迹球精细操 作, 实施游戏操作等特殊场景时。 更多的解析实施可以在后续用户体验中不断进行设置修改。 并且, 在具 体实践中, 还可以设置其他的触摸操作和动作指令之间的对应关系, 本实施 例并不限于以上例举的关系定义。 步骤 2, 居解析出的对应操作行为, 实时更新虚拟轨迹球界面显示, 必要时给出触控反馈, 如振动等; 步骤 3 , 如果用户触发了设置轨迹球灵敏度的操作, 可进行跟据用户操 作习惯, 对虚拟轨迹球的灵敏度, 大小和视效进行自定义选择操作, 用户也 可以选择关闭虚拟轨迹球装置。 实施例 4 为了提高用户的体 -险, 在具体实施过程中, 可以才艮据当前与用户交互的 场景对虚拟轨迹球丈出相应的处理, 以提高用户的操作体 -险。 几种可以应用 虚拟轨迹球的场景包括但不限于: 场景一: 需要精细操控方向的应用场景, 这种场景的操作, 类似于 PC 中鼠标的操控, 最能达到精细控制的目的。 需要虚拟轨迹球通过判断用户手 指的滑动,通过算法连续计算,模拟出物理轨迹球的连续滚动的性能和效果, 达到迅速定位在显示屏中的具体方位的目的。 例如, 若轨迹球在某操作中平 行转了 90度, R为虚拟轨迹球半径参数值, 那么 X、 Y、 Ζ的坐标可能的上 4艮变化是: (0, 0, R ) 到 (0, R, 0 )。 以 R 为这个轨迹球半径为例, 那么 对应的轨迹球控制的精细计算为鼠标对应光标在屏幕上移动了 R*n个像素的 距离, 这里的 n可才艮据物理屏幕来调节参数数值。 场景二: 各个主菜单和子菜单等控件布局界面。 通过虚拟轨迹球可控制 界面中控件的聚焦, 聚焦的选择可以为单纯的上下左右方向选择。 这种操作 类似于传统终端中的上下左右方向键盘。 传统的方向键在短按时需要逐一移 动, 考验用户的耐心。 在长按时会产生快速移动的效果, 但无法控制控件间 聚焦移动速度, 容易导致误操作。 釆用虚拟轨迹球的优点为不需要连续操作, 可实现控件间的平滑连续操作, 随着手机在虚拟轨迹球上滑动, 控件聚集随 手划速度而移动。 场景三: 在各个编辑框进行输入。 通过虚拟轨迹球可控制界面中光标的 方向, 达到输入法等需要精细操作的实施。 这种操作也类似于传统终端中的 上下左右方向键盘, 但是传统的方向键在短按时需要逐一移动, 考验用户的 耐心; 在长按时会产生快速移动的效果, 但无法控制移动速度, 容易误操作。 釆用虚拟轨迹球的优点为不需要连续操作, 可实现光标的平滑连续操作, 随 着手机在虚拟轨迹球上滑动, 光标随手划速度而移动, 便于控制速度。 图 12是根据本发明实施例 4的在各场景下的虚拟轨迹球处理的流程图, 包括以下步 4聚: 步骤 1201 , 用户开机, 进入待机即可对虚拟轨迹球进行操作; 步骤 1202, 用户可通过对虚拟轨迹球触控区域的线性操作来触发界面操 作, 虚拟轨迹球以悬浮设计为在界面右下方, 以 10MM动态 3D球的界面反 馈给用户操作显示; 步骤 1203 , 根据用户操作进入的不同场景分别进行处理, 具体地, 在场景一, 即需要精细操控方向的应用场景下, 包括以下步骤: (5) The curve gesture operates the virtual trackball touch area, and the analysis action is first calculated and converted into the operation feedback of the simulated physical trackball according to the curve operation of the gesture, and then the feedback result is reported to the application layer, and the supply layer is collected and processed. This operation is mainly used when special scenes such as game operations are required to perform fine operation of the virtual trackball. More parsing implementations can be continually set and modified in subsequent user experiences. Moreover, in a specific practice, a correspondence relationship between other touch operations and motion instructions may also be set, and the embodiment is not limited to the relationship definitions exemplified above. Step 2, the corresponding operation behavior is parsed, the virtual trackball interface is displayed in real time, and the touch feedback is given when necessary, such as vibration; Step 3: If the user triggers the operation of setting the trackball sensitivity, the user may be Operation habits, custom selection of the sensitivity, size and visual effect of the virtual trackball, the user can also choose to close the virtual trackball device. Embodiment 4 In order to improve the user's body-risk, in the specific implementation process, the virtual trackball can be correspondingly processed according to the scene currently interacting with the user, so as to improve the user's operating body-risk. Several scenarios in which a virtual trackball can be applied include, but are not limited to: Scene 1: An application scenario that requires fine manipulation of the direction. The operation of this scenario, similar to the manipulation of a mouse in a PC, can best achieve the purpose of fine control. The virtual trackball is required to judge the sliding of the user's finger, and the algorithm continuously calculates the performance and effect of the continuous scrolling of the physical trackball to achieve the purpose of quickly positioning the specific orientation in the display screen. For example, if the trackball is rotated 90 degrees in parallel in an operation and R is the virtual trackball radius parameter value, then the possible 4艮 changes in the coordinates of X, Y, and 是 are: (0, 0, R) to (0) , R, 0). Taking R as the radius of the trackball as an example, the fine calculation of the corresponding trackball control is that the mouse corresponding cursor moves by R*n pixels on the screen, where n can adjust the parameter value according to the physical screen. Scene 2: Control layout interface for each main menu and submenu. The focus of the controls in the interface can be controlled by the virtual trackball, and the selection of the focus can be selected from the simple up, down, left and right directions. This operation is similar to the up, down, left, and right direction keyboards in conventional terminals. Traditional arrow keys need to be moved one by one during short presses to test user patience. When you press and hold it, it will produce a fast moving effect, but you cannot control the speed of the focus movement between the controls, which may lead to misoperation. The advantage of using the virtual trackball is that it does not require continuous operation, and smooth and continuous operation between the controls can be realized. As the mobile phone slides on the virtual trackball, the control gathers and moves with the speed of the hand. Scene 3: Enter in each edit box. The direction of the cursor in the interface can be controlled by the virtual trackball to achieve an implementation such as an input method that requires fine operations. This operation is also similar to the up, down, left, and right direction keyboards in traditional terminals, but the traditional arrow keys need to be moved one by one during short presses to test the user's Patience; It will produce a fast moving effect when pressed for a long time, but it cannot control the moving speed and is easy to operate incorrectly. The advantage of using the virtual trackball is that it does not require continuous operation, and the smooth and continuous operation of the cursor can be realized. As the mobile phone slides on the virtual trackball, the cursor moves with the hand stroke speed, which is convenient for controlling the speed. FIG. 12 is a flowchart of virtual trackball processing in each scene according to Embodiment 4 of the present invention, including the following steps: Step 1201: The user starts up, and enters standby to operate the virtual trackball; Step 1202, User The interface operation can be triggered by the linear operation of the touch area of the virtual trackball. The virtual trackball is suspended in the lower right of the interface, and the interface of the 10MM dynamic 3D ball is fed back to the user for operation display; Step 1203, according to the user operation. The different scenarios are processed separately. Specifically, in scenario 1, that is, an application scenario that requires a fine control direction, the following steps are included:
( 1 ) 和马区动进 #通讯; (1) and Ma District move forward # communication;
( 2 ) 获取用户操作的数据, 并解析数据; (2) obtaining data of user operations and parsing the data;
( 3 ) 启动精细算法模块对数据进行计算, 获取用户操作在屏幕上对应 的轨迹; (3) starting a fine algorithm module to calculate data, and obtaining a corresponding trajectory of the user operation on the screen;
( 4 ) 输出计算结果, 并刷新界面以显示处理结果。 通过以上的步骤, 可以实现迅速定位, 例如, 在游戏中, 首先选中特定 角色, 然后操控轨迹球可指定角色到达屏幕的任意位置。 在该场景中, 轨迹 球的精细度需要满足 2维坐标迅速定位的需要。 用户需要连续操作, 比如连 续划动, 达到迅速将位置指定的目的, 相应地, 软件需要通过连续换算得出 用户需要指定的位置。 在场景二, 即对主菜单和子菜单等控件布局界面进行聚焦的场景下, 包 括以下步 4聚: (4) Output the calculation result and refresh the interface to display the processing result. Through the above steps, you can achieve rapid positioning. For example, in the game, first select a specific character, and then manipulate the trackball to specify the character to reach any position on the screen. In this scenario, the fineness of the trackball needs to meet the need for rapid positioning of 2D coordinates. The user needs continuous operation, such as continuous swipe, to achieve the purpose of quickly specifying the position. Accordingly, the software needs to continuously convert the position that the user needs to specify. In scenario 2, where the control layout interface such as the main menu and submenu is focused, the following steps are included:
( 1 ) 和马区动进 #通讯; ( 2 )根据控件聚焦点进行预处理; (1) and the horse area move forward # communication; (2) according to the control focus point for preprocessing;
( 3 ) 获取数据, 并根据数据获取用户操作对应的方向; ( 4 ) 输出获取的方向, 并刷新界面以显示聚焦结果。 通过以上的步骤, 可以控制界面中控件的聚焦, 聚焦的选择可以为单纯 的上下左右方向选择。 功能要点为: 实现用户对特定控件的聚焦选择, 同时 配合 MENU键, 用户可进入针对该控件的 MENU选项。 该项操作不同于针 对该控件的点击, 双击和长按操作, 在 Android OS系统中这四个操作被定义 为分别对应不同的交互含义。其中点击是激活控件,双击为该控件特定操作, 可根据各个控件不同定义触发各自的功能。 长按为弹出 Option菜单选项, 供 用户做 Option部分的操作。在这一场景中虚拟轨迹球的处理仅需解析出上下 左右方向的选择和用户的点击、 双击、 长按, 并配合判断当前控件是否处于 聚焦模式。 在场景三, 即在编辑框中进行输入的场景下, 包括以下步骤: (3) obtaining data, and obtaining a direction corresponding to the user operation according to the data; (4) Output the acquired direction and refresh the interface to display the focus result. Through the above steps, you can control the focus of the controls in the interface. The focus selection can be selected from the simple up, down, left, and right directions. The main points of the function are: To achieve the user's focus selection for a specific control, and with the MENU button, the user can enter the MENU option for the control. This operation is different from the click, double click and long press operation for the control. In the Android OS system, these four operations are defined as corresponding to different interaction meanings. Clicking is to activate the control, double-clicking for the specific operation of the control, and triggering the respective functions according to different definitions of each control. Long press to pop up the Option menu option for the user to do the Option part. In this scenario, the processing of the virtual trackball only needs to resolve the selection of the up, down, left, and right directions and the user's click, double click, long press, and cooperate to determine whether the current control is in the focus mode. In scenario 3, where the input is made in the edit box, the following steps are included:
( 1 ) 与驱动进行通信; (1) communicating with the driver;
( 2 ) 居光标位置进行预处理; (2) pre-processing at the cursor position;
( 3 ) 获取数据, 并根据数据获取用户操作对应的方向; ( 4 ) 输出获取的方向, 并刷新界面以显示光标的运动结果。 通过以上的步骤, 可以控制界面中光标的方向, 达到输入法等需要精细 操作的实施。 比如用户在输入了 ABC三个字母后, 需要修改 B为 D, 他需 要将光标后移动一位, 之后选择删除功能, 由于字母间隔太小手指无法很快 速的定位光标, 此时软件可将虚拟轨迹球定位为控制光标的方向, 达到通过 虚拟轨迹球, ^"细控制光标的效果。 此种场景, 虚拟轨迹球需要对各种上下 左右故灵敏判断, 以达到迅速定位光标的效果。 综上所述, 本发明实施例提供的方案能够模拟出物理轨迹球的用户使用 体 -险, 通过软件设计的效果达到满足用户对界面精细选择和操作的方便, 同 时达到节省装置成本的效果。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执 行指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是 在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 (3) Acquiring data, and obtaining the direction corresponding to the user operation according to the data; (4) outputting the acquired direction, and refreshing the interface to display the motion result of the cursor. Through the above steps, the direction of the cursor in the interface can be controlled to achieve an implementation such as an input method that requires fine operations. For example, after the user enters the three letters of ABC, the user needs to modify B to D. He needs to move the cursor one bit later, and then select the delete function. Since the letter spacing is too small, the finger cannot locate the cursor very quickly. At this time, the software can set the virtual track. The ball is positioned to control the direction of the cursor, and achieves the effect of finely controlling the cursor through the virtual trackball. In this scenario, the virtual trackball needs to be sensitive to various up, down, left, and right directions to achieve the effect of quickly positioning the cursor. The solution provided by the embodiment of the present invention can simulate the user-use risk of the physical trackball, and achieve the convenience of the user to finely select and operate the interface through the effect of the software design, and at the same time achieve the effect of saving the device cost. Yes, the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, may be different The steps shown or described are performed in the order herein. Obviously, those skilled in the art should It should be understood that the various modules or steps of the present invention described above may be Implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of computing devices, optionally, they may be implemented by program code executable by the computing device, such that They may be stored in a storage device by a computing device, or they may be fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof may be implemented as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 一种电子装置, 其特征在于, 包括: Claims An electronic device characterized by comprising:
显示模块, 用于使电子装置的屏幕显示虚拟轨迹球;  a display module, configured to display a virtual trackball on the screen of the electronic device;
接收模块, 用于接收用户对所述虚拟轨迹球的触摸操作;  a receiving module, configured to receive a touch operation of the virtual trackball by a user;
指令生成模块, 用于根据所述触摸操作生成动作指令;  An instruction generating module, configured to generate an action instruction according to the touch operation;
响应模块, 用于响应于所述动作指令故出处理。 根据权利要求 1所述的电子装置, 其特征在于, 还包括: 判断模块, 用 于判断所述用户进行触摸操作的区域是否位于显示所述虚拟轨迹球的区 域的范围内;  The response module is configured to process the response in response to the action instruction. The electronic device according to claim 1, further comprising: a determining module, configured to determine whether an area in which the user performs a touch operation is within a range of an area in which the virtual trackball is displayed;
所述接收块模块用于在所述判断模块的判断结果为是的情况下, 接 收所述用户的触摸操作。 根据权利要求 1所述的电子装置, 其特征在于, 所述响应模块包括: 更新模块, 用于 居所述动作指令更新对所述虚拟轨迹球的显示。 根据权利要求 1所述的电子装置, 其特征在于, 所述响应模块包括: 第一确定模块, 用于确定所述动作指令作用于所述虚拟轨迹球时产 生的线性轨迹;  The receiving block module is configured to receive a touch operation of the user if the determination result of the determining module is yes. The electronic device according to claim 1, wherein the response module comprises: an update module, configured to update the display of the virtual trackball by the action instruction. The electronic device according to claim 1, wherein the response module comprises: a first determining module, configured to determine a linear trajectory generated when the action command acts on the virtual trackball;
第二确定模块, 用于确定所述线性轨迹在所述屏幕上对应的轨迹的 终点;  a second determining module, configured to determine an end point of the corresponding track of the linear track on the screen;
定位模块, 用于确定所述用户选定的目标点为所述终点。 根据权利要求 1所述的电子装置, 其特征在于, 所述响应模块包括: 第三确定模块, 用于确定所述动作指令对应的操作方向;  And a positioning module, configured to determine that the target point selected by the user is the end point. The electronic device according to claim 1, wherein the response module comprises: a third determining module, configured to determine an operation direction corresponding to the action instruction;
聚焦模块, 用于根据所述操作方向控制界面上控件的聚焦。 根据权利要求 1所述的电子装置, 其特征在于, 所述响应模块包括: 第四确定模块, 用于确定所述动作指令对应的操作方向;  A focusing module is configured to control the focus of the control on the interface according to the operating direction. The electronic device according to claim 1, wherein the response module comprises: a fourth determining module, configured to determine an operation direction corresponding to the action instruction;
光标控制模块,用于根据所述操作方向控制编辑界面中光标的位置。 a cursor control module, configured to control a position of a cursor in the editing interface according to the operation direction.
7. 根据权利要求 1所述的电子装置, 其特征在于, 还包括: 设置模块, 用于接受用户的设置, 其中, 所述设置包括以下至少之 一: 对所述虚拟轨迹球的开启或关闭的设置、 对所述虚拟轨迹球灵敏度 的设置、 对所述动作对应的处理的设置、 对所述虚拟轨迹球的大小的设 置、 对所述虚拟轨迹球的视觉效果的设置。 The electronic device according to claim 1, further comprising: a setting module, configured to accept a setting of the user, wherein the setting includes at least one of: turning on or off the virtual trackball The setting, the setting of the sensitivity of the virtual trackball, the setting of the process corresponding to the action, the setting of the size of the virtual trackball, and the setting of the visual effect of the virtual trackball.
8. 根据权利要求 7所述的电子装置, 其特征在于, 所述设置模块还用于在 所述动作指令与预先设定的动作指令相一致的情况下, 显示用于接收所 述用户的设置的界面。 The electronic device according to claim 7, wherein the setting module is further configured to display a setting for receiving the user if the action instruction is consistent with a preset action command Interface.
9. 一种获取用户操作的方法, 其特征在于, 包括以下步 4聚: 9. A method of obtaining user operations, characterized in that it comprises the following steps:
使电子装置的屏幕显示虚拟轨迹球;  Making the screen of the electronic device display a virtual trackball;
接收用户对所述虚拟轨迹球的触摸操作;  Receiving a touch operation of the virtual trackball by the user;
根据所述触摸操作生成动作指令;  Generating an action instruction according to the touch operation;
响应于所述动作指令故出处理。  Processing is performed in response to the action instruction.
10. 根据权利要求 9所述的方法, 其特征在于, 所述处理包括: 根据所述动 作指令更新对所述虚拟轨迹球的显示。 10. The method of claim 9, wherein the processing comprises: updating display of the virtual trackball in accordance with the motion instruction.
PCT/CN2010/075915 2010-05-12 2010-08-11 Electronic device and method for obtaining user operation WO2011140752A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010178356A CN101833421A (en) 2010-05-12 2010-05-12 Electronic device and method for acquiring user operation
CN201010178356.6 2010-05-12

Publications (1)

Publication Number Publication Date
WO2011140752A1 true WO2011140752A1 (en) 2011-11-17

Family

ID=42717505

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/075915 WO2011140752A1 (en) 2010-05-12 2010-08-11 Electronic device and method for obtaining user operation

Country Status (2)

Country Link
CN (1) CN101833421A (en)
WO (1) WO2011140752A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731469A (en) * 2013-12-24 2015-06-24 昆山国显光电有限公司 Touch equipment and one-hand operation method for same
CN106293430A (en) * 2015-05-25 2017-01-04 富泰华工业(深圳)有限公司 Virtual slide-mouse control system and control method thereof

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9645986B2 (en) * 2011-02-24 2017-05-09 Google Inc. Method, medium, and system for creating an electronic book with an umbrella policy
CN103164132A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 Portable electronic terminal, unlocking method and device thereof
CN103853348A (en) * 2012-11-29 2014-06-11 华为技术有限公司 Operation method, operation control method and related device of air input device
CN104463039B (en) * 2014-12-16 2017-12-22 上海斐讯数据通信技术有限公司 The unlocking method and device of smart machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052939A (en) * 2004-07-30 2007-10-10 苹果电脑有限公司 Mode-based graphical user interfaces for touch sensitive input devices
CN101344835A (en) * 2008-08-15 2009-01-14 北京立通无限科技有限公司 Touch screen terminal rolling wheel implementing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008038897A1 (en) * 2008-08-13 2010-02-18 Deutsche Telekom Ag Mobile phone with menu navigation on the screen

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052939A (en) * 2004-07-30 2007-10-10 苹果电脑有限公司 Mode-based graphical user interfaces for touch sensitive input devices
CN101344835A (en) * 2008-08-15 2009-01-14 北京立通无限科技有限公司 Touch screen terminal rolling wheel implementing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731469A (en) * 2013-12-24 2015-06-24 昆山国显光电有限公司 Touch equipment and one-hand operation method for same
CN106293430A (en) * 2015-05-25 2017-01-04 富泰华工业(深圳)有限公司 Virtual slide-mouse control system and control method thereof

Also Published As

Publication number Publication date
CN101833421A (en) 2010-09-15

Similar Documents

Publication Publication Date Title
US11269575B2 (en) Devices, methods, and graphical user interfaces for wireless pairing with peripheral devices and displaying status information concerning the peripheral devices
JP6728275B2 (en) Virtual computer keyboard
US10057934B2 (en) Automatic selection of a wireless connectivity protocol for an input device
US10120531B2 (en) User interfaces for navigating and playing content
JP4752921B2 (en) Information processing apparatus, animation adding method, and program
CN106462283B (en) Calculate the character recognition in equipment
CN104471521B (en) For providing the equipment, method and graphic user interface of feedback for the state of activation for changing user interface object
CN104903835B (en) For abandoning equipment, method and the graphic user interface of generation tactile output for more contact gestures
US11650733B2 (en) Device, method, and graphical user interface for controlling multiple devices in an accessibility mode
US9697702B2 (en) Display device and method for controlling the same
US20140101581A1 (en) Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
US10572017B2 (en) Systems and methods for providing dynamic haptic playback for an augmented or virtual reality environments
US9880697B2 (en) Remote multi-touch control
WO2011150878A2 (en) Touch screen and control method of touch screen
US11615595B2 (en) Systems, methods, and graphical user interfaces for sharing augmented reality environments
US10353550B2 (en) Device, method, and graphical user interface for media playback in an accessibility mode
US20140218289A1 (en) Electronic device with control interface and methods therefor
WO2013182089A1 (en) Object suspension realizing method and device
CN108920071B (en) Control method and device based on special-shaped display screen, storage medium and mobile terminal
WO2011140752A1 (en) Electronic device and method for obtaining user operation
JP2015007949A (en) Display device, display controlling method, and computer program
CN108920070B (en) Screen splitting method and device based on special-shaped display screen, storage medium and mobile terminal
TW201224849A (en) Mobile devices and methods for controlling mobile devices
CN103197759A (en) Method, device and equipment for controlling external equipment on mobile equipment
CN108920069A (en) A kind of touch operation method, device, mobile terminal and storage medium

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: 10851257

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10851257

Country of ref document: EP

Kind code of ref document: A1