WO2018086479A1 - 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备 - Google Patents

触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备 Download PDF

Info

Publication number
WO2018086479A1
WO2018086479A1 PCT/CN2017/109127 CN2017109127W WO2018086479A1 WO 2018086479 A1 WO2018086479 A1 WO 2018086479A1 CN 2017109127 W CN2017109127 W CN 2017109127W WO 2018086479 A1 WO2018086479 A1 WO 2018086479A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
input device
driver
working mode
selection instruction
Prior art date
Application number
PCT/CN2017/109127
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 WO2018086479A1 publication Critical patent/WO2018086479A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Definitions

  • the present invention relates to the field of touch screen technologies, and in particular, to a touch screen operation mode switching implementation method, a touch screen device, and a head mounted device.
  • each smart phone usually uses only one fixed working mode, for example, a touch screen mode (or a traditional touch screen mode).
  • a touch screen mode or a traditional touch screen mode
  • the user can click on the touch screen of the smart phone.
  • an app for example, contacts
  • the use of the touch screen is similar to the operation of the mouse (that is, the touch screen is expected to operate in the simulated mouse mode), and the operation of the conventional touch screen is The way (ie, I want the touch screen to work in touch screen mode).
  • the system controls a mouse pointer on the touch screen.
  • the mouse pointer tracks the user's sliding track, thereby completing the related operations more accurately and quickly.
  • the user wants the touch screen to work in the traditional touch screen mode as described above.
  • the invention provides a touch screen working mode switching implementation method, a touch screen device and a head mounted device, to solve The problem of poor user experience of existing touch screen devices is a problem.
  • a method for implementing a touch screen operation mode switching comprising:
  • the touch screen driver receives a touch screen working mode selection instruction
  • the touch screen driver selects a corresponding input device driver as the currently used input device driver according to the received touch screen working mode selection instruction;
  • the touch screen driver reports the input device name corresponding to the currently used input device driver, so that the input processing service selects the input device configuration file corresponding to the input device name, and implements and uses according to the attributes configured in the input device configuration file.
  • the input device driver matches the touch screen operating mode.
  • a touch screen device comprising: a touch screen, a touch screen driving module, and an input processing module;
  • the touch screen driving module is configured to receive a touch screen working mode selection instruction, and select a corresponding input device driver according to the touch screen working mode selection instruction, and report the input device name corresponding to the selected input device driver to the input processing Module
  • the input processing module is configured to receive an input device name reported by the touch driving module, search for a corresponding input device configuration file according to the input device name, and implement and select according to attributes configured in the input device configuration file.
  • the input device driver matches the touch screen operating mode.
  • a touch screen device comprising a touch screen, a memory, a touch screen drive and an input processing service, the memory storing a computer program driven by the touch screen and the input processing service
  • the touch screen driver receives a touch screen working mode selection instruction, selects a corresponding input device driver as the currently used input device driver according to the received touch screen working mode selection instruction, and reports the input device name corresponding to the selected input device driver. Giving the input processing service;
  • the input processing service receives an input device name reported by the touch screen driver, searches for a corresponding input device configuration file according to the input device name, and implements driving with the selected input device according to an attribute configured in the input device configuration file. Match the touch screen working mode.
  • a head mounted device comprising: a touch screen device according to another aspect of the present invention or a touch screen device of still another aspect.
  • the touch screen working mode switching implementation method of the present invention receives the touch screen
  • the working mode selection instruction selects an instruction according to the touch screen working mode, selects the corresponding input device driver as the currently used input device driver, and then reports the input device name corresponding to the currently used input device driver, so that the input processing service can select the corresponding input.
  • the device profile and the touch screen mode of operation that matches the currently used input device driver based on the properties configured in the input device profile. In this way, the user can flexibly switch the working mode of the touch screen, does not need system restart, does not need to add additional hardware, realizes free switching of the touch screen working mode and the simulated mouse mode, saves the enterprise cost, and improves the flexibility of use. .
  • the touch screen device provided by the present invention can realize the touch screen operation mode switching, so that the user experience is better than the existing touch screen device, and the market competitiveness of the touch screen device is improved.
  • the present invention also provides a head mounted device in which the touch screen device of the embodiment of the present invention is included, thereby improving the satisfaction of the user of the head mounted device.
  • FIG. 1 is a flowchart of a method for implementing a touch screen operation mode switching according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a method for implementing a touch screen operation mode switching according to another embodiment of the present invention
  • FIG. 3 is a block diagram showing the structure of a touch screen device according to an embodiment of the present invention.
  • FIG. 4 is a functional block diagram of a touch screen device according to another embodiment of the present invention.
  • FIG. 5 is a block diagram of a head mounted device in accordance with one embodiment of the present invention.
  • the design concept of the present invention is that, in the prior art, the device with a touch screen does not support the problem that the switching between the touch screen mode and the simulated mouse working mode leads to a poor user experience, and the embodiment of the present invention does not need to be restarted, and does not need to be added.
  • additional hardware by creating two input devices in the same touch screen driver and defining the driving of the two input devices, when receiving the touch screen working mode selection instruction, selecting the corresponding input device and reporting the input device
  • the name of the device is such that the corresponding input device configuration file is selected according to the device name, and the behavior of the device attribute in the selected input device configuration file is implemented, that is, the switching between the touch screen working mode and the simulated mouse mode is implemented, thereby improving the user experience.
  • the application field of the broadband touch screen device by creating two input devices in the same touch screen driver and defining the driving of the two input devices, when receiving the touch screen working mode selection instruction, selecting the corresponding input device and reporting the input device
  • the name of the device is such that
  • FIG. 1 is a flowchart of a method for implementing a touch screen operation mode switching according to an embodiment of the present invention.
  • the method for implementing the touch screen operation mode switching in this embodiment includes the following steps:
  • Step S101 the touch screen driver receives a touch screen working mode selection instruction; the touch screen working mode package herein Including: touch screen working mode and analog mouse working mode;
  • Step S102 the touch screen driver selects a corresponding input device driver as the currently used input device driver according to the received touch screen operation mode selection instruction
  • step S103 the touch screen driver reports the input device name corresponding to the currently used input device driver, so that the input processing service selects the input device configuration file corresponding to the input device name, and implements according to the attributes configured in the input device configuration file.
  • a touch screen mode of operation that matches the currently used input device driver.
  • the touch screen driving of the device with the touch screen is used to receive the touch screen working mode selection instruction, and then the corresponding input device driver is selected according to the selection instruction, as the currently used input device driver, and
  • the input device drives the device name of the corresponding input device to be sent to the upper layer input processing service, so that the input processing service selects the corresponding input device configuration file according to the device name, and implements the corresponding touch screen working mode according to the configured attribute.
  • each step in the method shown in FIG. 1 can be implemented by a corresponding function module in the touch screen device.
  • a touch screen device is used as a device for installing an Android Android operating system.
  • the Android system adopts a layered architecture, which usually includes a hardware driver layer, a hardware abstraction layer (HAL), a runtime library, and an application framework layer from bottom to top.
  • the hardware access of the Android system is carried out through the HAL layer.
  • the HAL layer functions as a hardware adapter. Simply put, it encapsulates the Linux kernel driver, provides an interface upwards, and shields the underlying implementation details. That is, the hardware support is divided into two layers, one in the user space (User Space) and one in the kernel space (Kernel Space), where the hardware abstraction layer runs in user space, while the Linux kernel driver runs. In the kernel space. For input devices such as keyboards, touch screens, etc., Android encapsulates them with EventHub.
  • EventHub is the abstract structure of the event, which maintains the operation of the system device (the device file is placed in /dev/input).
  • the device type includes Keyboard, TouchScreen, and TraceBall. It will increase the input devices provided by the system through the open_device method when the system is started.
  • the type of event read it is divided into three categories (KEYBOARD, TOUCHSCREEN, TRACKBALL) and processed separately.
  • call dispatchPointer ev,(MotionEvent)ev.event,0,0
  • type of event UP, DOWN, MOVE, OUT_SIDE, etc.
  • the upper application accesses the underlying input device driver by means of an interface call.
  • each input device in the Android system has a unique device name, and the input management service (Input Manager Service) of the upper layer of the system searches for the corresponding input device configuration file according to the device name of the input device reported by the underlying touch screen driver, and Different behaviors are represented based on different attributes in the input device configuration file.
  • the input management service Input Manager Service
  • the embodiment of the present invention implements a driver that can switch the touch screen event input device node in the touch screen driver of the hardware driver layer; and sets two input device configuration files idc in the system frame layer ( Input device configuration), one for implementing the touch screen function, one for implementing the analog mouse function; thus, the application layer can switch the corresponding touch screen working mode according to different usage requirements.
  • the method before the step of the touch screen driving receiving the touch screen working mode selection instruction, the method further includes: setting, in the touch screen driving, the first input device driving that matches the touch screen working mode and matching the simulated mouse working mode.
  • the second input device is driven.
  • the touch screen driver selects a corresponding input device driver as the currently used input device driver according to the received touch screen operation mode selection instruction, and includes: selecting a corresponding first input device driver or second according to the received touch screen operation mode selection instruction.
  • the input device driver is the input device driver currently in use.
  • two input devices are implemented in one touch screen driver, one for implementing a touch screen function (for example, the device name is A), and one for implementing an analog mouse function (for example, the device name is B), when implemented, the device Most of the functions of A and Device B can be reused.
  • the difference is the device name of the two input devices and the reporting function corresponding to the device name.
  • an idc file for example, A.idc
  • A.idc for implementing a touch screen function
  • an idc for implementing an analog mouse function is added.
  • File for example, B.idc
  • FIG. 2 is a schematic flowchart of a method for implementing a touch screen operation mode switching according to an embodiment of the present invention.
  • the touch screen working mode switching implementation method of the embodiment of the present invention includes the following steps:
  • an application layer receiving a switching touch screen input by a user and a selection instruction simulating a working mode of the mouse
  • the application layer is the upper layer of the application that provides direct interaction with the user.
  • the application layer receives the switching touch screen input by the user and the selection instruction for simulating the working mode of the mouse, accesses the device node file of the hardware driver layer according to the selection instruction, and modifies the variable indicating the currently used input device in the device node file.
  • the value for example, defines a global variable that switches the working mode in the device node file.
  • the value of the variable has two cases 0 and 1, 0 indicates that the currently used input device is the first input device, and 1 indicates the current value.
  • the input device used is the second input device.
  • touch screen driver it is a passive receiving touch screen working mode selection instruction.
  • the touch screen driver receives the touch screen working mode selection instruction in two ways, one is directly received through the touch screen. The other is received by the interface of the application.
  • Receiving directly through the touch screen means displaying two kinds of touch screen working modes selectable by the user on the touch screen, that is, the touch screen working mode and the simulated mouse working mode, and then the touch screen receives the user's click on the touch screen working mode or the simulated mouse working mode. Selecting an operation, determining whether the user currently selects the touch screen working mode or the simulated mouse working mode according to the click operation coordinate point, and after determining the user operation, the application layer application determines whether it needs to change the working mode used by the current touch screen (for example, the user selects The working mode of the touch screen is the same as that of the current touch screen. In this case, there is no need to switch. If the working mode of the touch screen is required, the upper application accesses the underlying device node file and modifies the value of the corresponding variable in the device node file.
  • the voice instruction of the user can be received by the voice application in the terminal, and the voice instruction is sent to the related application capable of modifying the value of the variable in the file file of the underlying device node.
  • the related application accesses the underlying device node file by means of an interface call, and modifies the value of the corresponding variable in the device node file.
  • Android is based on the Linux kernel. Android uses the same device driver to access the hardware device as Linux.
  • the device node file is a device-driven logical file.
  • the application can access the device driver through the device node, and many device information can be stored. In the device node. In the application layer, device nodes are generally readable. For write node operations, you need higher root privileges.
  • the hardware driver layer selects the corresponding device according to the value of the variable in the device node file, and reports the device name (for example, device B), the coordinate point, and/or the input device configuration file storage path information;
  • touch.deviceType pointer.
  • the corresponding simulated mouse behavior is implemented according to the attribute. For example, a mouse pointer is displayed on the touch screen, and when the user slides the touch screen, the mouse pointer is controlled to move according to the user's sliding track, and the like.
  • the touch screen working mode switching implementation method of the embodiment of the present invention is provided by setting two input device drivers for realizing the touch screen working mode and the simulated mouse working mode in a touch screen driver, and in the corresponding directory of the system.
  • the device name of the corresponding input device can be reported to the input processing service of the system frame layer, so that the input processing service is
  • the device name, coordinate point, and input device configuration file storage path reported by the touch screen driver find the corresponding input device configuration file, and perform corresponding actions according to the attributes defined in the input device configuration file, thereby realizing the touch screen working mode and the simulated mouse working mode.
  • the switching meets the needs of users in different application scenarios and greatly enhances the user experience.
  • FIG. 3 is a block diagram of a touch screen device according to an embodiment of the present invention.
  • the touch screen device 300 is provided with: a touch screen 301, a touch screen driving module 302, and an input processing module 303;
  • the touch screen driving module 302 is configured to receive the touch screen working mode selection instruction, select a corresponding input device driver according to the touch screen working mode selection instruction, and drive the selected input device to drive the corresponding input device name. Said to report to the input processing module;
  • the input processing module 302 is configured to receive the input device name reported by the touch screen driving module 302, search for a corresponding input device configuration file according to the input device name, and implement driving with the selected input device according to the attribute configured in the input device configuration file. Matching touch screen mode of operation.
  • the touch screen working mode comprises: a touch screen working mode and an analog mouse working mode
  • the touch screen device 300 further includes: an input device driving setting module configured to set a first input device driving matched with the touch screen working mode and a matching with the simulated mouse working mode in the touch screen driving Two input device drivers.
  • the touch screen driving module 302 includes:
  • An interface submodule configured to receive a touch screen working mode selection instruction
  • Selecting a submodule configured to select, in the first input device driver and the second input device driver, the input device driving corresponding to the touch screen working mode selection instruction as the current according to the received touch screen working mode selection instruction Input device driver used;
  • the reporting sub-module is configured to report the input device name corresponding to the currently used input device driver to the input processing module.
  • the touch screen device further includes: an input device profile adding module configured to add an input device profile corresponding to the first input device, and set an attribute touch in the input device profile.
  • the interface sub-module is specifically configured to receive a touch screen working mode selection instruction sent by the specified application; or receive the touch screen working mode selection instruction through the touch screen.
  • the touch screen device 400 includes a touch screen 401, a memory 402, a touch screen driver 403, and an input processing service 404.
  • the memory 402 stores a computer program 4020.
  • the touch screen 401, the memory 402, the touch screen driver 403, and the input processing service 404 are communicatively coupled to each other via an internal bus 405.
  • the touch screen driver 403 and the input processing service 404 execute the computer program 4020, the following steps are implemented:
  • the touch screen driver 403 receives the touch screen operation mode selection instruction, selects the corresponding input device driver as the currently used input device driver according to the received touch screen operation mode selection instruction, and reports the input device name corresponding to the selected input device driver to the input processing.
  • Service 404
  • the input processing service 404 receives the input device name reported by the touch screen driver 403, searches for a corresponding input device configuration file according to the input device name, and implements a touch screen working mode that matches the selected input device driver according to the attributes configured in the input device configuration file. .
  • the touch screen operation mode includes: a touch screen operation mode and an analog mouse operation mode
  • the computer program 4020 can also implement the following steps when executed by the touch screen driver 403:
  • a first input device driver that matches the touch screen mode of operation and a second input device driver that matches the simulated mouse mode of operation are set in the touch screen driver 403.
  • the touch screen driver 403 selects a corresponding input device driver as the currently used input device driver according to the received touch screen operation mode selection instruction, and includes:
  • the touch screen driver 403 selects a corresponding first input device driver or second input device driver as the currently used input device driver according to the received touch screen operation mode selection instruction.
  • the step of the touch screen driving 403 receiving the touch screen working mode selection instruction comprises: the touch screen driving 403 receiving the touch screen working mode selection instruction sent by the specified application; or the touch screen driving 403 receiving the touch screen working mode selection through the touch screen instruction.
  • the head mounted device 500 includes the touch screen device 300 described in the third embodiment or the touch screen device 400 described in the fourth embodiment.
  • the head mounted device of this embodiment may be a head mounted virtual reality device or a head mounted augmented reality device.
  • the touch panel working mode switching implementation method of the embodiment of the present invention can implement touch screen operation.
  • the mode and the free switching of the simulated mouse working mode greatly satisfy the user's use requirements. And no need to add additional hardware, saving the cost of the enterprise, the program is simple to implement, and convenient for large-scale promotion.
  • the touch screen device and the head mounted device of the embodiments of the present invention can realize the free switching of the working mode of the touch screen, so that the user experience is better than the existing products, and the market competitiveness of the product is improved.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • the head mounted device of the present invention conventionally includes a processor and a computer program product or computer readable medium in the form of a memory.
  • the memory may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • the memory has a memory space for program code for performing any of the method steps described above.
  • the storage space for the program code may include various program codes for implementing the various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units.
  • the storage unit can be similarly arranged storage segments, storage spaces, and the like.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code for performing the steps of the method according to the invention, ie code readable by, for example, a processor, which when executed, causes the head mounted device to perform the method described above The various steps.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

一种触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备,该触摸屏工作模式切换实现方法包括:触摸屏驱动接收触摸屏工作模式选择指令(S101);触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动(S102);触摸屏驱动上报当前使用的输入设备驱动对应的输入设备名称,以使得输入处理服务选择所述输入设备名称对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与当前使用的输入设备驱动相匹配的触摸屏工作模式(S103)。该方法能够实现触摸屏工作模式的自由切换,满足了用户在不同应用场景下的使用需求,提升了用户体验。

Description

触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备
优先权声明
本申请要求于2016年11月10日提交的,专利名称为“触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备”的第201610989825.X号中国专利申请的优先权,其全部公开通过引用并入本申请。
技术领域
本发明涉及触摸屏技术领域,具体涉及一种触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备。
背景技术
目前,带触摸屏的设备越来越普及,大大方便了人们的生活。以智能手机为例,通过智能手机上的触摸屏,用户可以输入操作指令,实现对终端设备的各种操作。现有技术中每个智能手机,通常只使用固定的一种工作模式,例如,触屏模式(或称,传统的触屏模式),在触屏模式下,用户可以通过点击智能手机的触摸屏的相应位置,实现选中并打开一个应用(例如,通讯录)的功能。
但是,在近两年大量出现的带触摸屏的头戴式虚拟现实设备中,对触摸屏的使用需求既又类似鼠标的操作(即,希望触摸屏工作在模拟鼠标模式),又有传统触屏的操作方式(即,希望触摸屏工作在触屏模式)。模拟鼠标模式下,系统控制在触摸屏上显示一个鼠标指针,当用户在触摸屏上滑动时,鼠标指针会跟踪用户的滑动轨迹,从而能更准确、快速的完成相关操作。而在一些虚拟现实游戏中,用户则希望触摸屏工作在如前所述的传统的触屏模式。
由此可见,现有技术的触摸屏工作在单一固定工作模式已经不能满足用户在某些场景下的使用需求,导致用户体验较差。
发明内容
本发明提供了一种触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备,以解 决现有触摸屏装置的用户体验较差的问题。
根据本发明的一个方面,提供了一种触摸屏工作模式切换实现方法,该方法包括:
触摸屏驱动接收触摸屏工作模式选择指令;
触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动;
触摸屏驱动上报当前使用的输入设备驱动对应的输入设备名称,以使得输入处理服务选择所述输入设备名称对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与当前使用的输入设备驱动相匹配的触摸屏工作模式。
根据本发明的另一个方面,提供了一种触摸屏装置,该触摸屏装置包括:触摸屏,触摸屏驱动模块以及输入处理模块;
所述触摸屏驱动模块,用于接收触摸屏工作模式选择指令,并根据所述触摸屏工作模式选择指令,选择对应的输入设备驱动,并将选中的输入设备驱动对应的输入设备名称上报给所述输入处理模块;
所述输入处理模块,用于接收所述触摸驱动模块上报的输入设备名称,根据所述输入设备名称查找对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与选中的输入设备驱动相匹配的触摸屏工作模式。
根据本发明的再一个方面,提供了一种触摸屏装置,包括触摸屏、存储器、触摸屏驱动和输入处理服务,所述存储器存储有计算机程序,所述计算机程序被所述触摸屏驱动和所述输入处理服务执行时能够实现如下步骤:
所述触摸屏驱动接收触摸屏工作模式选择指令,根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动,并将选中的输入设备驱动对应的输入设备名称上报给所述输入处理服务;
所述输入处理服务接收所述触摸屏驱动上报的输入设备名称,根据所述输入设备名称查找对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与选中的输入设备驱动相匹配的触摸屏工作模式。
根据本发明的又一个方面,提供了一种头戴式设备,该头戴式设备包括:如本发明另一个方面的触摸屏装置或者再一个方面的触摸屏装置。
本发明的有益效果是:本发明的这种触摸屏工作模式切换实现方法通过接收触摸屏 工作模式选择指令,根据触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动,然后上报当前使用的输入设备驱动对应的输入设备名称,这样,输入处理服务能够选择对应的输入设备配置文件,并根据输入设备配置文件中配置的属性,实现与当前使用的输入设备驱动相匹配的触摸屏工作模式。如此,方便用户灵活的切换触摸屏的工作模式,不需要系统重启,也不需要添加额外的硬件,实现触屏工作模式和模拟鼠标模式的自由切换,节省了企业成本,又提高了使用的灵活度。本发明提供的触摸屏装置,由于能够实现触屏工作模式切换,所以与现有触摸屏装置相比,用户体验更好,提高了触摸屏装置的市场竞争力。本发明还提供了头戴式设备,头戴式设备中包括了本发明实施例的触摸屏装置,从而改善了头戴式设备的用户的满意度。
附图说明
图1是本发明一个实施例的一种触摸屏工作模式切换实现方法的流程图;
图2是本发明另一个实施例的一种触摸屏工作模式切换实现方法的流程示意图;
图3是本发明一个实施例的一种触摸屏装置的结构框图;
图4是本发明另一个实施例的一种触摸屏装置的功能框图;
图5是本发明一个实施例的一种头戴式设备的框图。
具体实施方式
本发明的设计构思在于,针对现有技术中带触摸屏的设备不支持触屏模式和模拟鼠标工作模式的切换导致用户体验不佳的问题,本发明实施例在不需要系统重启,也不需要添加额外的硬件的情况下,通过在同一个触摸屏驱动中创建两个输入设备,并定义两个输入设备的驱动,从而当收到触摸屏工作模式选择指令时,选择对应的输入设备,上报输入设备的设备名,以使得根据设备名选择对应的输入设备配置文件,实现选中的输入设备配置文件中的设备属性表现相应的行为,即,实现触屏工作模式和模拟鼠标模式的切换,从而改善用户体验,拓宽带触摸屏的设备的应用领域。
实施例一
图1是本发明一个实施例的一种触摸屏工作模式切换实现方法的流程图,参见图1,本实施例的这种触摸屏工作模式切换实现方法包括如下步骤:
步骤S101,触摸屏驱动接收触摸屏工作模式选择指令;这里的触摸屏工作模式包 括:触屏工作模式和模拟鼠标工作模式;
步骤S102,触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动;
步骤S103,触摸屏驱动上报当前使用的输入设备驱动对应的输入设备名称,以使得输入处理服务选择所述输入设备名称对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与当前使用的输入设备驱动相匹配的触摸屏工作模式。
由图1所示的方法可知,本实施例中,利用带触摸屏的设备的触摸屏驱动接收触摸屏工作模式选择指令,然后根据选择指令选择对应的输入设备驱动,作为当前使用的输入设备驱动,并将该输入设备驱动对应的输入设备的设备名发送给上层的输入处理服务,从而使得输入处理服务根据设备名选择对应的输入设备配置文件,根据配置的属性实现对应的触摸屏的工作模式。由此,实现了根据指令,自由切换触摸屏工作模式的有益效果,不需要增加任何硬件,节省了企业的投入成本,并且,满足了用户在多种场景下的使用需求,提高了用户体验。
需要说明的是,图1所示的方法中各个步骤可以由触摸屏装置中对应的功能模块来实现。
实施例二
本实施例中以触摸屏装置为安装Android安卓操作系统的设备进行说明。
在介绍本发明实施例对现有技术的改进之前,先对Android系统的输入系统机制进行简单说明。Android系统采用分层架构,通常从下到上包括硬件驱动层、硬件抽象层(Hardware Abstract Layer,简称HAL)、运行库和应用程序框架层。Android系统硬件的访问是通过HAL层来进行的,HAL层起到了硬件适配器的作用,简单来说,就是对Linux内核驱动程序的封装,向上提供接口,屏蔽底层的实现细节。即,把对硬件的支持分成了两层,一层放在用户空间(User Space),一层放在内核空间(Kernel Space),其中,硬件抽象层运行在用户空间,而Linux内核驱动程序运行在内核空间。对于输入设备,如键盘、触摸屏等,Android用EventHub对它们进行了封装。
Android事件的传入是从EventHub开始的,EventHub是事件的抽象结构,维护着系统设备的运行情况(设备文件放在/dev/input里),设备类型包括Keyboard、TouchScreen、TraceBall。它在系统启动的时候会通过open_device方法将系统提供的输入设备都增加 到这个抽象结构中,并维护一个所有输入设备的文件描述符,Windowmanager会创建一个线程(InputDispatcherThread),在这个线程里从事件队列中读取发生的事件(QueuedEvent ev=mQueue.getEvent()),并根据读取到事件类型的不同分成三类(KEYBOARD、TOUCHSCREEN、TRACKBALL),分别进行处理。
如果是触摸屏事件则调用dispatchPointer(ev,(MotionEvent)ev.event,0,0),这里会根据事件的种类(UP、DOWN、MOVE、OUT_SIDE等)进行判断并处理。
上层应用通过接口调用的方式访问底层的输入设备驱动程序。此外,Android系统中每个输入设备都对应有唯一的设备名,系统上层的输入管理服务(Input Manager Service)根据底层的触摸屏驱动上报的输入设备的设备名,查找对应的输入设备配置文件,并根据输入设备配置文件中的不同属性表现不同行为。
基于Android系统的上述输入处理机制,本发明实施例通过在硬件驱动层的触摸屏驱动中实现可以切换上报触屏事件输入设备节点的驱动程序;并在系统框架层设置两个输入设备配置文件idc(input device configuration),一个用于实现触屏功能,一个用于实现模拟鼠标功能;这样,应用层就可以根据不同的使用需求切换对应的触摸屏工作模式。
本发明实施例中在触摸屏驱动接收触摸屏工作模式选择指令的步骤之前,该方法还包括:在触摸屏驱动中设置与触屏工作模式相匹配的第一输入设备驱动以及与模拟鼠标工作模式相匹配的第二输入设备驱动。
触摸屏驱动根据接收到的触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动的步骤包括:根据接收到的触摸屏工作模式选择指令,选择对应的第一输入设备驱动或第二输入设备驱动作为当前使用的输入设备驱动。
具体的,在一个触摸屏驱动中实现两个input设备,一个用于实现触屏功能(例如,设备名为A),一个用于实现模拟鼠标功能(例如,设备名为B),实现时,设备A和设备B的大部分功能可以复用,不同的是两个输入设备的设备名以及设备名对应的上报函数。
在触摸屏驱动接收触摸屏工作模式选择指令的步骤之前,该方法还包括:添加与第一输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=touchScreen;添加与第二输入设备对应的输入设备配置文件,并在该 输入设备配置文件中设置属性touch.deviceType=pointer。
具体的,在系统对应的目录中添加用于实现触屏功能的idc文件(例如A.idc),并在A.idc中设置属性:touch.deviceType=touchScreen;添加用于实现模拟鼠标功能的idc文件(例如B.idc),并在B.idc中设置属性:touch.deviceType=pointer。
Android系统中会根据输入设备驱动上报的设备名选择不同的idc文件,所以,当设备A上报坐标点时使用设备A对应的A.idc,当设备B上报坐标点时使用设备B对应的B.idc,然后系统会根据不同的属性表现不同行为,切换触摸屏处于的工作模式,从而实现触屏模式和模拟鼠标模式的自由切换。
图2是本发明一个实施例的一种触摸屏工作模式切换实现方法的流程示意图,参见图2,本发明实施例的这种触摸屏工作模式切换实现方法包括如下步骤:
(1)应用层,接收用户输入的切换触屏和模拟鼠标工作模式的选择指令;
在android系统中应用层是提供直接与用户交互的应用程序的上层。本实施例中,应用层接收用户输入的切换触屏和模拟鼠标工作模式的选择指令,根据该选择指令,访问硬件驱动层的设备节点文件,修改设备节点文件中指示当前使用的输入设备的变量的值,举例而言,在设备节点文件中定义有切换工作模式的全局变量,该变量的取值有两种情况0和1,0表示当前使用的输入设备为第一输入设备,1表示当前使用的输入设备为第二输入设备。此时,上层应用收到用户的触摸屏工作模式的切换指令后,(如,将触屏工作模式切换为模拟鼠标工作模式),则将全局变量的值修改为1。
需要强调的是,对于底层的触摸屏驱动而言,其是被动的接收触摸屏工作模式选择指令,在实际应用过程中,触摸屏驱动接收触摸屏工作模式选择指令有两种方式,一种是直接通过触摸屏接收,另一种是通过应用的接口调用的方式接收。
直接通过触摸屏接收是指在触摸屏上显示可供用户选择的两种触摸屏工作模式,即,触屏工作模式和模拟鼠标工作模式,然后,触摸屏接收用户对触屏工作模式或模拟鼠标工作模式的点击选择操作,根据点击操作坐标点确定用户当前选中的是触屏工作模式还是模拟鼠标工作模式,确定用户的操作之后,应用层的应用判断是否需要改变当前触摸屏使用的工作模式(例如,用户选中的触摸屏工作模式和当前触摸屏使用的工作模式一致,这种情况下无需切换),如果需要触摸屏使用的工作模式,则上层的应用访问底层的设备节点文件,并修改设备节点文件中相应变量的值。
通过应用的接口调用的方式接收是指,不直接通过触摸屏,例如可以通过终端中的语音应用接收用户的语音指令,将该语音指令发送给能够修改底层设备节点文件中变量的值的相关应用,由该相关应用通过接口调用的方式来访问底层的设备节点文件,并修改设备节点文件中相应变量的值。
本领域技术人员了解,Android基于Linux内核,Android与Linux一样使用设备驱动来访问硬件设备,设备节点文件是设备驱动的逻辑文件,应用程序可以通过设备节点来访问设备驱动,很多设备信息都可存储在设备节点中。应用层中,一般都能够读取设备节点。对于写节点这个操作,则需要更高的root权限。
(2)硬件驱动层,触摸屏驱动根据设备节点文件中变量的值,选择对应的设备,上报设备名(例如,设备B)、坐标点和/或输入设备配置文件存储路径信息;
(3)框架层,输入管理服务接收触摸屏驱动上报的信息,并从中找到设备名信息,根据设备名信息,查找系统中保存有后缀名为idc文件的目录中找到对应的设备名的idc文件,然后读取该idc文件中的属性,例如,touch.deviceType=pointer。则根据该属性实现对应的模拟鼠标行为。举例而言,在触摸屏上显示一个鼠标指针,当用户滑动触屏时,根据用户滑动轨迹,控制鼠标指针相应移动等等。
由上可知,本发明实施例的这种触摸屏工作模式切换实现方法通过在一个触摸屏驱动中设置两个分别用于实现触屏工作模式和模拟鼠标工作模式的输入设备驱动,并在系统对应目录中对应设置输入设备的输入设备配置文件,如此,当触摸屏驱动收到触摸屏工作模式切换指令时,能够将对应的输入设备的设备名上报给系统框架层的输入处理服务,这样,该输入处理服务根据触摸屏驱动上报的设备名、坐标点以及输入设备配置文件存储路径查找对应的输入设备配置文件,并根据输入设备配置文件中定义的属性,表现相应的行为,实现触屏工作模式和模拟鼠标工作模式的切换,满足了用户在不同应用场景下的需求,大大增强了用户体验。
实施例三
图3是本发明一个实施例的一种触摸屏装置的结构框图,参见图3,该触摸屏装置300中设置有:触摸屏301,触摸屏驱动模块302以及输入处理模块303;
触摸屏驱动模块302,被配置为接收触摸屏工作模式选择指令,并根据触摸屏工作模式选择指令,选择对应的输入设备驱动,并将选中的输入设备驱动对应的输入设备名 称上报给所述输入处理模块;
输入处理模块302,被配置为接收触摸屏驱动模块302上报的输入设备名称,根据输入设备名称查找对应的输入设备配置文件,并根据输入设备配置文件中配置的属性,实现与选中的输入设备驱动相匹配的触摸屏工作模式。
在本发明的一个实施例中,触摸屏工作模式包括:触屏工作模式和模拟鼠标工作模式,
该触摸屏装置300还包括:输入设备驱动设置模块,被配置为在所述触摸屏驱动中设置与所述触屏工作模式相匹配的第一输入设备驱动以及与所述模拟鼠标工作模式相匹配的第二输入设备驱动。
在本发明的一个实施例中,触摸屏驱动模块302,包括:
接口子模块,被配置为接收触摸屏工作模式选择指令;
选择子模块,被配置为根据接收到的所述触摸屏工作模式选择指令,在第一输入设备驱动和第二输入设备驱动中选择,将与所述触摸屏工作模式选择指令对应的输入设备驱动作为当前使用的输入设备驱动;
上报子模块,被配置为将当前使用的输入设备驱动对应的输入设备名称上报给所述输入处理模块。
在本发明的一个实施例中,该触摸屏装置还包括:输入设备配置文件添加模块,被配置为添加与第一输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=touchScreen;以及,添加与第二输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=pointer。
在本发明的一个实施例中,接口子模块,具体被配置为接收指定应用发送的触摸屏工作模式选择指令;或者,通过触摸屏接收所述触摸屏工作模式选择指令。
实施例四
图4是本发明另一个实施例的一种触摸屏装置的功能框图,参见图4,该触摸屏装置400包括触摸屏401、存储器402、触摸屏驱动403和输入处理服务404,存储器402存储有计算机程序4020,触摸屏401、存储器402、触摸屏驱动403和输入处理服务404彼此之间通过内部总线405通讯连接,触摸屏驱动403和输入处理服务404执行该计算机程序4020时实现如下步骤:
触摸屏驱动403接收触摸屏工作模式选择指令,根据接收到的触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动,并将选中的输入设备驱动对应的输入设备名称上报给输入处理服务404;
输入处理服务404接收触摸屏驱动403上报的输入设备名称,根据输入设备名称查找对应的输入设备配置文件,并根据输入设备配置文件中配置的属性,实现与选中的输入设备驱动相匹配的触摸屏工作模式。
在本发明的一个实施例中,触摸屏工作模式包括:触屏工作模式和模拟鼠标工作模式,该计算机程序4020被触摸屏驱动403执行时还能够实现如下步骤:
在触摸屏驱动403接收触摸屏工作模式选择指令之前,在触摸屏驱动403中设置与触屏工作模式相匹配的第一输入设备驱动以及与模拟鼠标工作模式相匹配的第二输入设备驱动。
触摸屏驱动403根据接收到的触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动的步骤包括:
触摸屏驱动403根据接收到的触摸屏工作模式选择指令,选择对应的第一输入设备驱动或第二输入设备驱动作为当前使用的输入设备驱动。
在本发明的一个实施例中,触摸屏驱动403执行该计算机程序4020时还能够实现如下步骤:
添加与第一输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=touchScreen;以及,添加与第二输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=pointer。
在本发明的一个实施例中,触摸屏驱动403接收触摸屏工作模式选择指令的步骤包括:触摸屏驱动403接收指定应用发送的触摸屏工作模式选择指令;或者,触摸屏驱动403通过触摸屏接收所述触摸屏工作模式选择指令。
实施例五
图5是本发明一个实施例的头戴式设备的框图,参见图5,该头戴式设备500包括实施例三中所述的触摸屏装置300或者实施例四中所述的触摸屏装置400。
本实施例的头戴式设备可以是头戴式虚拟现实设备或者头戴式增强现实设备。
综上所述,本发明实施例的这种触摸屏工作模式切换实现方法,能够实现触屏工作 模式和模拟鼠标工作模式的自由切换,极大的满足了用户的使用需求。并且不需要增加额外的硬件,节省了企业的成本,方案实现简单,方便大规模推广。本发明实施例的触摸屏装置和头戴式设备由于能够实现触摸屏工作模式的自由切换,因而与现有的产品相比,用户体验更佳,提高了产品的市场竞争力。
需要说明的是:
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
本发明的头戴式设备传统上包括处理器和以存储器形式的计算机程序产品或者计算机可读介质。存储器可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器具有用于执行上述方法中的任何方法步骤的程序代码的存储空间。例如,用于程序代码的存储空间可以包括分别用于实现上面的方法中的各种步骤的各个程序代码。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为便携式或者固定存储单元。该存储单元可以类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码,即可以由例如处理器读取的代码,这些代码被运行时,导致该头戴式设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。单词“包括”不排除存在未列在权利要求中的元件或步骤。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。
以上所述,仅为本发明的具体实施方式,在本发明的上述教导下,本领域技术人员可以在上述实施例的基础上进行其他的改进或变形。本领域技术人员应该明白,上述的具体描述只是更好的解释本发明的目的,本发明的保护范围以权利要求的保护范围为准。

Claims (14)

  1. 一种触摸屏工作模式切换实现方法,所述方法包括:
    触摸屏驱动接收触摸屏工作模式选择指令;
    触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动;
    触摸屏驱动上报当前使用的输入设备驱动对应的输入设备名称,以使得输入处理服务选择所述输入设备名称对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与当前使用的输入设备驱动相匹配的触摸屏工作模式。
  2. 根据权利要求1所述的方法,其中,所述触摸屏工作模式包括:触屏工作模式和模拟鼠标工作模式,
    在触摸屏驱动接收触摸屏工作模式选择指令的步骤之前,该方法还包括:在所述触摸屏驱动中设置与所述触屏工作模式相匹配的第一输入设备驱动以及与所述模拟鼠标工作模式相匹配的第二输入设备驱动;
    所述触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动的步骤包括:
    根据接收到的所述触摸屏工作模式选择指令,选择对应的第一输入设备驱动或第二输入设备驱动作为当前使用的输入设备驱动。
  3. 根据权利要求2所述的方法,其中,在触摸屏驱动接收触摸屏工作模式选择指令的步骤之前,该方法还包括:
    添加与第一输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=touchScreen;
    添加与第二输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=pointer。
  4. 根据权利要求1所述的方法,其中,所述触摸屏驱动接收触摸屏工作模式选择指令的步骤包括:
    所述触摸屏驱动接收指定应用发送的触摸屏工作模式选择指令;
    或者,所述触摸屏驱动通过触摸屏接收所述触摸屏工作模式选择指令。
  5. 一种触摸屏装置,所述触摸屏装置包括:触摸屏,触摸屏驱动模块和输入处理 模块;
    所述触摸屏驱动模块,被配置为接收触摸屏工作模式选择指令,并根据所述触摸屏工作模式选择指令,选择对应的输入设备驱动,并将选中的输入设备驱动对应的输入设备名称上报给所述输入处理模块;
    所述输入处理模块,被配置为接收所述触摸屏驱动模块上报的输入设备名称,根据所述输入设备名称查找对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与选中的输入设备驱动相匹配的触摸屏工作模式。
  6. 根据权利要求5所述的触摸屏装置,其中,所述触摸屏工作模式包括:触屏工作模式和模拟鼠标工作模式,
    该触摸屏装置还包括:输入设备驱动设置模块,被配置为在触摸屏驱动接收触摸屏工作模式选择指令之前,在所述触摸屏驱动中设置与所述触屏工作模式相匹配的第一输入设备驱动以及与所述模拟鼠标工作模式相匹配的第二输入设备驱动。
  7. 根据权利要求6所述的触摸屏装置,其中,所述触摸屏驱动模块,包括:
    接口子模块,被配置为接收触摸屏工作模式选择指令;
    选择子模块,被配置为根据接收到的所述触摸屏工作模式选择指令,在第一输入设备驱动和第二输入设备驱动中选择,将与所述触摸屏工作模式选择指令对应的输入设备驱动作为当前使用的输入设备驱动;
    上报子模块,被配置为将当前使用的输入设备驱动对应的输入设备名称上报给所述输入处理模块。
  8. 根据权利要求6所述的触摸屏装置,其中,该触摸屏装置还包括:输入设备配置文件添加模块,被配置为添加与第一输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=touchScreen;以及,添加与第二输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=pointer。
  9. 根据权利要求7所述的触摸屏装置,其中,所述接口子模块,具体被配置为接收指定应用发送的触摸屏工作模式选择指令;或者,通过触摸屏接收所述触摸屏工作模式选择指令。
  10. 一种触摸屏装置,所述触摸屏装置包括触摸屏、存储器、触摸屏驱动和输入处 理服务,所述存储器存储有计算机程序,所述触摸屏驱动和所述输入处理服务执行所述计算机程序时实现如下步骤:
    所述触摸屏驱动接收触摸屏工作模式选择指令,根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动,并将选中的输入设备驱动对应的输入设备名称上报给所述输入处理服务;
    所述输入处理服务接收所述触摸屏驱动上报的输入设备名称,根据所述输入设备名称查找对应的输入设备配置文件,并根据所述输入设备配置文件中配置的属性,实现与选中的输入设备驱动相匹配的触摸屏工作模式。
  11. 根据权利要求10所述的触摸屏装置,其中,所述触摸屏工作模式包括:触屏工作模式和模拟鼠标工作模式,所述计算机程序被所述触摸屏驱动执行时还能够实现如下步骤:
    在所述触摸屏驱动接收触摸屏工作模式选择指令之前,在所述触摸屏驱动中设置与所述触屏工作模式相匹配的第一输入设备驱动以及与所述模拟鼠标工作模式相匹配的第二输入设备驱动;
    所述触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的输入设备驱动作为当前使用的输入设备驱动的步骤包括:
    所述触摸屏驱动根据接收到的所述触摸屏工作模式选择指令,选择对应的第一输入设备驱动或第二输入设备驱动作为当前使用的输入设备驱动。
  12. 根据权利要求11所述的触摸屏装置,其中,所述触摸屏驱动执行所述计算机程序时还实现如下步骤:
    添加与第一输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=touchScreen;以及,添加与第二输入设备对应的输入设备配置文件,并在该输入设备配置文件中设置属性touch.deviceType=pointer。
  13. 根据权利要求10所述的触摸屏装置,其中,所述触摸屏驱动接收触摸屏工作模式选择指令的步骤包括:所述触摸屏驱动接收指定应用发送的触摸屏工作模式选择指令;或者,所述触摸屏驱动通过触摸屏接收所述触摸屏工作模式选择指令。
  14. 一种头戴式设备,该头戴式设备包括:如权利要求5-9中任一项所述的触摸屏装置或者权利要求10至13任一项所述的触摸屏装置。
PCT/CN2017/109127 2016-11-10 2017-11-02 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备 WO2018086479A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610989825.XA CN106569829B (zh) 2016-11-10 2016-11-10 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备
CN201610989825.X 2016-11-10

Publications (1)

Publication Number Publication Date
WO2018086479A1 true WO2018086479A1 (zh) 2018-05-17

Family

ID=58541013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109127 WO2018086479A1 (zh) 2016-11-10 2017-11-02 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备

Country Status (2)

Country Link
CN (1) CN106569829B (zh)
WO (1) WO2018086479A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569829B (zh) * 2016-11-10 2020-11-20 北京小鸟看看科技有限公司 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备
CN108008992B (zh) * 2017-11-24 2020-08-18 南昌黑鲨科技有限公司 一种输入操作处理方法、处理装置及计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236500A (zh) * 2010-04-20 2011-11-09 周毅 利用多点触摸屏幕模拟鼠标输入
CN103957441A (zh) * 2014-04-23 2014-07-30 深圳创维-Rgb电子有限公司 移动终端控制显示终端的方法及移动终端
CN104049856A (zh) * 2013-03-13 2014-09-17 上海斐讯数据通信技术有限公司 手持终端的输入模式的设置系统及设置方法
CN104423562A (zh) * 2013-09-09 2015-03-18 联想(北京)有限公司 终端设备以及输入模式控制方法
CN105630393A (zh) * 2015-12-31 2016-06-01 歌尔科技有限公司 一种触摸屏工作模式的控制方法和控制装置
CN106569829A (zh) * 2016-11-10 2017-04-19 北京小鸟看看科技有限公司 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176649A (zh) * 2012-12-27 2013-06-26 深圳市凯健奥达科技有限公司 一种触摸控制方法及相应的电子装置
CN105224347B (zh) * 2014-05-30 2018-10-16 展讯通信(深圳)有限公司 数据配置方法及装置
CN104166517A (zh) * 2014-07-31 2014-11-26 中兴通讯股份有限公司 触摸屏设备的操作方法及装置
US9696861B2 (en) * 2015-03-09 2017-07-04 Stmicroelectronics Asia Pacific Pte Ltd Touch rejection for communication between a touch screen device and an active stylus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236500A (zh) * 2010-04-20 2011-11-09 周毅 利用多点触摸屏幕模拟鼠标输入
CN104049856A (zh) * 2013-03-13 2014-09-17 上海斐讯数据通信技术有限公司 手持终端的输入模式的设置系统及设置方法
CN104423562A (zh) * 2013-09-09 2015-03-18 联想(北京)有限公司 终端设备以及输入模式控制方法
CN103957441A (zh) * 2014-04-23 2014-07-30 深圳创维-Rgb电子有限公司 移动终端控制显示终端的方法及移动终端
CN105630393A (zh) * 2015-12-31 2016-06-01 歌尔科技有限公司 一种触摸屏工作模式的控制方法和控制装置
CN106569829A (zh) * 2016-11-10 2017-04-19 北京小鸟看看科技有限公司 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备

Also Published As

Publication number Publication date
CN106569829B (zh) 2020-11-20
CN106569829A (zh) 2017-04-19

Similar Documents

Publication Publication Date Title
JP6195182B2 (ja) アプリケーションシナリオの識別方法、電力消費の管理方法、装置、および端末デバイス
US10922102B2 (en) Method of controlling applications in a terminal and terminal
US8452057B2 (en) Projector and projection control method
EP2788864B1 (en) Techniques to prelink software to improve memory de-duplication in a virtual system
US10067777B2 (en) Supporting multiple operating system environments in computing device without contents conversion
US8966236B2 (en) Dynamically redirecting boot to another operating system
US20110271268A1 (en) System and method for updating unified extensible firmware interface setting information
US10416864B2 (en) Method and apparatus for optimizing operating environment of a user terminal through multiple user interfaces
US20150339005A1 (en) Methods for handling applications running in the extend mode and tablet computers using the same
CN108549568B (zh) 应用入口处理方法、装置、存储介质及电子设备
JP2011118901A (ja) 外来情報を区分けすることにより仮想マシン・コードをメモリ最適化する方法、コンピュータ・プログラム、およびシステム
AU2014216029A1 (en) Electronic device and method for providing content according to field attribute
US20140059491A1 (en) Electronic apparatus to execute application, method thereof, and computer readable recording medium
WO2018045934A1 (zh) 应用进程的管理方法和终端设备
US20130179814A1 (en) Enabling a user to invoke a function via a shortcut key in a multi-window computing environment
US10712910B2 (en) Electronics apparatus, method for executing application, and computer-readable recording medium
TW200921509A (en) Techniques for switching threads within routines
KR20190032861A (ko) 전자 장치 및 그의 제어 방법
WO2018086479A1 (zh) 触摸屏工作模式切换实现方法、触摸屏装置和头戴式设备
CN104793836A (zh) 一种基于用户操作的信息处理方法、装置及终端
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
TWI517020B (zh) 判斷控制項狀態的方法
CN113826072A (zh) 系统管理模式中的代码更新
CN108958873B (zh) 状态栏沉浸式效果的配置方法、装置、介质和计算机设备
US10289219B2 (en) Communicating with an unsupported input device

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

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

Country of ref document: EP

Kind code of ref document: A1