WO2022111732A1 - Application control method for terminal device, and related device thereof - Google Patents

Application control method for terminal device, and related device thereof Download PDF

Info

Publication number
WO2022111732A1
WO2022111732A1 PCT/CN2021/134494 CN2021134494W WO2022111732A1 WO 2022111732 A1 WO2022111732 A1 WO 2022111732A1 CN 2021134494 W CN2021134494 W CN 2021134494W WO 2022111732 A1 WO2022111732 A1 WO 2022111732A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
input device
input
output
terminal device
Prior art date
Application number
PCT/CN2021/134494
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 WO2022111732A1 publication Critical patent/WO2022111732A1/en

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/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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/445Program loading or initiating
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an application control method for a terminal device and related devices.
  • the terminal device itself usually has a set of input devices (for example, a built-in keyboard and mouse, etc.) and output devices (for example, a display, etc.), through which the user can operate various components on the terminal device. application.
  • input devices for example, a built-in keyboard and mouse, etc.
  • output devices for example, a display, etc.
  • the set of input device and output device can be connected to the terminal device.
  • the user needs to perform a series of operations on the operating system of the terminal device, so as to connect the terminal device to the set of input devices and output devices, and then the input device can be used to control the terminal device, and the terminal device outputs to the output device, such as display Output signals such as image and/or sound.
  • the terminal device is bound to the external input device and output device, and all applications on the terminal device must use the set of input devices and output devices, resulting in poor user experience.
  • Embodiments of the present application provide an application control method for a terminal device and related devices, which can effectively utilize device resources and improve device utilization.
  • a first aspect of the embodiments of the present application provides an application control method for a terminal device, and the method includes:
  • the terminal device On the operating system of the terminal device, multiple applications, such as game software, office software, and the like, may run. Further, the terminal device is connected with multiple input devices and multiple output devices. For example, the terminal device is connected with multiple input devices such as a mouse, a keyboard, and a camera, and the terminal device is also connected with multiple output devices such as a monitor and a TV. The operating system of the terminal device can centrally manage multiple input devices and multiple output devices to allocate these devices to different applications.
  • the operating system of the terminal device may first provide a user interaction interface, where the user interaction interface is used to respectively provide options of multiple input devices and multiple output devices for at least two applications, and receive user settings for the first application based on the options.
  • the first selection includes a first input device and a first output device.
  • the operating system of the terminal device determines the first input device and the first output device of the first application according to the first selection, and runs the first application according to the instruction obtained from the first input device, The display screen data generated by running the first application is sent to the first output device for display.
  • a smartphone has its own keyboard and display and is connected to additional devices such as gamepads and TVs.
  • the operating system of a smartphone can provide the user with a visual interface that includes options such as the phone's keyboard, display, gamepad, and TV for the user to choose from.
  • the user can set the gamepad and the TV set to a certain game software on the visual interface, so that the gamepad and the TV set exclusively serve the game software.
  • the user can input operation instructions through the gamepad, and the operating system can run the game software based on the operation instructions from the gamepad, and send display screen data generated by running the game software to the TV for display.
  • the display screen of the smart phone will not display the display screen data generated by running the game software, that is, the keyboard of the smart phone and the display screen of the smart phone can serve other applications.
  • the operating system of the terminal device can provide a user interaction interface, and the user interaction interface is used to provide options of multiple input devices and multiple output devices respectively for at least two applications, so the user can A first selection is input on the interactive interface, and the operating system binds the first input device and the first output device to the first application based on the first selection, so that the first input device and the first output device serve the first application.
  • the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display.
  • the user only needs to input the first selection on the user interaction interface provided by the operating system, and the first input device and the first output device can be bound to the first application, that is, the process only requires the user to perform a simple The operation does not need to perform multiple complex operations, which can improve the user experience.
  • the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
  • the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the option, where the second selection includes a second input device and a second output device, and the method further Including: when the second application is started, determining the second input device and the second output device of the second application according to the second selection, running the second application according to the instruction obtained from the second input device, and running the second application
  • the generated display screen is sent to the second input device for display.
  • the user can set the keyboard of the smartphone and the display of the smartphone to a certain office software on the visual interface provided by the operating system, so that the keyboard of the smartphone and the display of the smartphone are specially designed for the office. software service.
  • the user can input operating instructions through the keyboard of the smart phone, and the operating system can run the office software based on the operating instructions from the keyboard of the smart phone, and send the display screen data generated by running the office software to the display screen of the smart phone for display.
  • the user may also input a second selection on the user interaction interface, and the operating system binds the second input device and the second output device to the second application based on the second selection, so that the second input device and the first The second output device serves the second application.
  • the operating system can run the second application according to the operation instruction from the second input device, and send display screen data generated by running the second application to the second output device for display.
  • the user can make the first input device and the first output device serve the first application, and make the second input device and the second output device serve the second application, thereby effectively utilizing each input device and each output of the terminal device. equipment to improve the utilization of equipment.
  • the first application and the second application run simultaneously in the terminal device.
  • the operating system of the terminal device can run the first application and the second application at the same time, that is, while a user can operate the first application through the first input device and the first output device, another user can also operate the first application through the first input device and the first output device.
  • the second input device and the second output device operate the second application, so the operation requirements of different users on different applications on the same terminal device can be met.
  • the operating system receives an operation instruction from the gamepad, it sends the operation instruction to the game software for processing, and sends the display screen data fed back by the game software to the TV, so as to display the game screen on the TV.
  • the operating system also receives an operation instruction from the keyboard of the mobile phone, the operation instruction is sent to the office software for processing, and the display screen data fed back by the office software is sent to the display screen of the mobile phone, so that the display screen of the mobile phone can be displayed on the mobile phone.
  • the office screen is displayed on the display.
  • the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the option, where the third selection includes a third input device and a third output device, and the method further Including: when the first application is started, determining the third input device and the third output device of the first application according to the third selection, running the first application according to the instruction obtained from the third input device, and running the first application The generated display screen is sent to the third input device for display.
  • the user may also input a third selection on the user interaction interface, and the operating system binds the third input device and the third output device to the first application based on the third selection, so that the third input device and the third The three output devices serve the first application, thereby replacing the first input device and the first output device already bound to the first application.
  • the operating system can run the first application according to the operation instruction from the third input device, and send the display screen data generated by running the first application to the third output device for display. Therefore, the user can modify the input and output devices bound to the first application according to actual needs, thereby improving the comprehensiveness of the solution.
  • the first input device is one of a local input device of the terminal device and an external input device of the terminal device;
  • the second input device is a local input device of the terminal device and an external input device of the terminal device
  • the other of the first output device is one of the local output device of the terminal device and the external output device of the terminal device;
  • the second output device is the other of the local output device of the terminal device and the external output device of the terminal device.
  • the first input device includes a first keyboard device and a first mouse device
  • the second input device includes a second keyboard device and a second mouse device.
  • the local output device is an output device provided by the terminal device
  • the external output device is an output device connected to the terminal device.
  • a second aspect of the embodiments of the present application provides an application control device for a terminal device, the device includes: an interaction module configured to provide a user interaction interface, where the user interaction interface is configured to provide multiple an option of an input device and a plurality of output devices, and receive a first selection set by the user for the first application of the terminal device based on the option, where the first selection includes the first input device and the first output device; the operation module is used for the first selection in the first application.
  • an application determine the first input device and the first output device of the first application according to the first selection, run the first application according to the instruction obtained from the first input device, and execute the display generated by the first application
  • the screen data is sent to the first output device for display.
  • the operating system of the terminal device can provide a user interaction interface, and the user interaction interface is used to respectively provide multiple input devices and multiple output devices for at least two applications, so the user can use the user interaction interface
  • the operating system binds the first input device and the first output device to the first application based on the first selection, so that the first input device and the first output device serve the first application.
  • the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. Then, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
  • the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the option, the second selection includes a second input device and a second output device, and the running module further When the second application is started, determine the second input device and the second output device of the second application according to the second selection, run the second application according to the instruction obtained from the second input device, and will run the second application The generated display screen is sent to the second input device for display.
  • the first application and the second application run simultaneously in the terminal device.
  • the first input device is one of a local input device of the terminal device and an external input device of the terminal device;
  • the second input device is a local input device of the terminal device and an external input device of the terminal device
  • the other of the first output device is one of the local output device of the terminal device and the external output device of the terminal device;
  • the second output device is the other of the local output device of the terminal device and the external output device of the terminal device.
  • the first input device includes a first keyboard device and a first mouse device
  • the second input device includes a second keyboard device and a second mouse device.
  • the local output device is an output device provided by the terminal device
  • the external output device is an output device connected to the terminal device.
  • the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the option, the third selection includes a third input device and a third output device, and the running module further When the first application is started, determine the third input device and the third output device of the first application according to the third selection, run the first application according to the instruction obtained from the third input device, and run the first application The generated display screen is sent to the third input device for display.
  • a third aspect of the embodiments of the present application provides a terminal device, the terminal device includes: a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing the computer-executed instructions stored in the memory, so that the communication apparatus realizes the following: The method described in the first aspect or any possible implementation manner of the first aspect.
  • a fourth aspect of the embodiments of the present application provides a computer storage medium, which is characterized in that it includes computer-readable instructions, and when the computer-readable instructions are executed, the first aspect or any one of the possibilities of the first aspect is implemented. implement the method described.
  • a fifth aspect of the embodiments of the present application provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect .
  • the operating system of the terminal device may provide a user interaction interface, and the user interaction interface is used to respectively provide multiple input devices and multiple output devices for at least two applications, so the user can use the user interaction interface on the user interaction interface.
  • the first selection is input, and the operating system binds the first input device and the first output device to the first application based on the first selection, so that the first input device and the first output device serve the first application.
  • the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. Then, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
  • FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an application control method for a terminal device provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a user interaction interface provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an application control apparatus of a terminal device provided by an embodiment of the present application.
  • FIG. 5 is another schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • Embodiments of the present application provide an application control method for a terminal device and related devices, which can effectively utilize device resources and improve device utilization.
  • the embodiments of the present application may be implemented by a terminal device, and the terminal device may be a personal computer (personal computer, PC), a smart phone, a tablet computer (portable android device, PAD) and other devices.
  • Such terminal devices are usually shipped with local input devices and local output devices connected.
  • the terminal device can also be connected to an external input device. and external output devices.
  • the local input device is usually an input device provided by the terminal device.
  • the terminal device when the terminal device is a PC, the local input device of the PC may include a wired mouse, a wired keyboard, and the like provided by the PC.
  • the terminal device when the terminal device is a smart phone, the local input device of the smart phone may include a keyboard (physical keypad or virtual numeric keypad, etc.), a camera, a microphone, and the like provided in the smart phone.
  • the local output device is usually an output device provided by the terminal device.
  • the local output device of the PC may include a monitor, a speaker, and the like provided by the PC.
  • the local output device of the smart phone may include a display screen, a speaker, and the like built in the smart phone.
  • the external input device is usually an input device additionally added (or additionally connected) to the terminal device, for example, a wired mouse, wired keyboard, wireless mouse, wireless keyboard, touch screen, camera, memory, etc. added to the terminal device.
  • the external output device is usually an additional output device added to the terminal device, for example, a TV set, a projector, a printer, a speaker, etc., added to the terminal device.
  • a terminal device can be connected with multiple input devices and multiple output devices.
  • the terminal device can realize centralized management of multiple input devices and multiple output devices through the operating system.
  • the terminal device For the convenience of description and understanding, the following description will be given by taking the terminal device as a smart phone. It is assumed that the smart phone is connected with a local input device, an external input device, a local output device and an external output device, which are the keyboard of the mobile phone, the Bluetooth keyboard and mouse, the display screen of the mobile phone and the TV.
  • the operating system can make the display screen and the The TV can synchronously display the display screen data generated by the application based on the operation instructions, so the user can enjoy better visual effects on the TV.
  • the operating system usually runs multiple applications, but the operating system generally focuses on the most front-end applications. Therefore, the operating instructions input by the user through the keyboard of the mobile phone and the Bluetooth keyboard and mouse will be sent to the application for processing by the operating system.
  • the display screen data fed back by the application is sent to the display screen of the mobile phone and the TV for display. That is, the operating system will make all input and output devices serve the application.
  • the devices that are effectively used are the Bluetooth keyboard, mouse and TV. At this time, if other users need to use the keyboard of the mobile phone and the display screen of the mobile phone to operate another application, the operating system cannot meet this requirement, resulting in a certain waste of equipment resources and a low utilization rate of the equipment.
  • FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • an operating system of the terminal device includes three modules, namely a binding module, an input adapter, and an output adapter, and the operating system is loaded with Drivers for local input devices, drivers for external input devices, and display drivers.
  • a plurality of applications also run on the operating system, and the terminal is connected with a local input device, an external input device, a local output device, and an external output device.
  • applications also referred to as application programs
  • the terminal is connected with a local input device, an external input device, a local output device, and an external output device.
  • An application can be a piece of software or a cloud instance.
  • the application may be game software, office software, desktop cloud client, and so on.
  • the application may be a virtual machine (virtual machine, VM), a bare metal server (bare metal server, BMS), an application container engine (docker), and the like.
  • the driver of the local input device is deployed in the operating system, and the driver of the local input device can be used to support the input function of the local input device, that is, the command input by the local input device can be sent to the driver of the local input device, and the driver of the local input device
  • the instruction is sent to the operating system, and the operating system can process the instruction by itself or send the instruction to the application for processing, which will not be expanded here.
  • the driver of the external input device is also deployed in the operating system, and the driver of the external input device can be used to support the input function of the external input device.
  • the display driver is deployed in the operating system, and the display driver is used to support the output function of the local output device.
  • the operating system can send the display screen data fed back by the application to the display driver, and the display driver will then send the display screen data to the graphics card, and then the graphics card can complete graphics rendering based on the display screen data, and render the rendered image data.
  • Graphics are output to a local output device (eg, a display) for display.
  • the terminal device is a smart phone
  • the operating system can send the display screen data fed back by the application to the display driver. Since the local output device of the mobile phone (for example, the display screen of the mobile phone) has a high degree of integration, the display driver can directly send the data to the display driver.
  • the display screen data is sent to the local output device for display.
  • FIG. 1 takes the terminal device as a PC as an example for schematic illustration, and does not limit the type of the terminal device in this application.
  • the process of the driver forwarding the instruction is omitted below.
  • the local input device sends the instruction to the driver of the local input device, and the driver sends the instruction to the operating system
  • the operating system receives the instruction from the local input device. Instructions” and so on, which will not be repeated in the following.
  • the binding module of the operating system can be used as a configuration entry for the correspondence between the application and the input and output devices (including the local input device, the external input device, the local output device and the external output device) during the application startup process.
  • the binding module may provide the user with a user-interactive interface (eg, a visual interface) to receive selections entered by the user in the interface and send the selections to the input and output adapters, Therefore, the input adapter builds the corresponding relationship between the application and the input device based on the selection, and the output adapter builds the corresponding relationship between the application and the output device based on the selection.
  • the binding module may receive the selection from the application, and send the selection to the input adapter and the output adapter, so that the input adapter builds the corresponding relationship between the application and the input device based on the selection,
  • the output adapter builds the correspondence between the application and the output device based on the selection, and so on.
  • the binding module can also be used as an entry for modifying the corresponding relationship between the application and the input and output devices. For example, after receiving the user-input selection for modifying the corresponding relationship, the binding module may send the selection to the input adapter and the output adapter, so that the input adapter can determine the corresponding relationship between the application and the input device based on the selection. Modification is performed, and the output adapter modifies the correspondence between the application and the output device based on the selection.
  • the input adapter of the operating system can establish the corresponding relationship between the application and the input device, and based on the corresponding relationship between the application and the input device, the operation instructions from the input device (for example, the keyboard event of the operation application, the mouse event of the operation application etc.) are sent to the corresponding application for processing.
  • an application can correspond to at least one input device (either a local input device or an external input device).
  • a certain game software on the mobile phone can correspond to an additional gamepad, so after the input adapter receives the operation command input by the gamepad, the input adapter can send the operation command to the game software for processing.
  • a certain office software of the PC can bind a wired mouse that comes with the PC and an additional wireless keyboard, etc., so when the input adapter receives the operation command input by the wired mouse and wireless keyboard, the input adapter can The operation instruction is sent to the office software for processing.
  • the output adapter of the operating system can establish the corresponding relationship applied to the output devices, and based on the corresponding relationship applied to the output devices, the display screen data from the application (for example, the data obtained after the application processes keyboard events or mouse events) etc.) to the corresponding output device for display.
  • an application can correspond to at least one output device (either a local output device or an external output device).
  • a certain game software on the mobile phone can correspond to an additional TV, so after the input adapter receives the display screen data from the game software, the input adapter can send the display screen data to the TV for display.
  • a certain office software of a mobile phone can be bound to a display screen of a mobile phone, etc. Therefore, after the input adapter receives the display screen data from the office software, the input adapter can send the display screen data to the display screen of the mobile phone for processing. show.
  • the display screen data can be transmitted wirelessly between the output adapter and the external output device, so the operating system does not need to load the driver of the external output device.
  • the output adapter can send the display screen data from the application to an external output device for display based on the network video streaming technology or the image transmission technology.
  • the network video streaming transmission technology may be a digital living network alliance (DLNA) technology, Miracast technology or other custom video transmission protocols, etc.
  • the image transmission technology may be a desktop image transmission technology and so on.
  • FIG. 2 is a schematic flowchart of an application control method for a terminal device provided by an embodiment of the present application.
  • the two applications are used as examples for introduction below. Specifically, the two applications may be referred to as a first application and a second application, respectively.
  • the input device and the output device bound to the first application are called the first input device and the first output device
  • the input device and the output device bound to the second application are called the first input device and the first output device.
  • the input device and output device of the application are called the second input device and the second output device, wherein the first input device can be either a local input device or an external input device, and the first output device can be either a local output device or a second output device. It is an external output device, the second input device can be either a local input device or an external input device, and the second output device can be either a local output device or an external output device.
  • the method includes:
  • a user interaction interface is provided, and a first selection input by the user is received through the user interaction interface, where the first selection is used to indicate the first input device and the first output set by the user for the first application equipment.
  • the first application on the terminal device may be activated.
  • the binding module of the operating system of the terminal device detects that the first application starts to be started, it can provide a user interaction interface to the user during the process of starting the first application, and the user interaction interface is used to respectively provide multiple inputs for at least two applications device and multiple output devices.
  • the binding module can send the user interaction interface to at least one unbound output device for display, and the user interaction interface can be presented as a visual interface that displays at least one unbound input device and at least one unbound input device. Options for unbound output devices for the user to choose from.
  • unbound input devices and output devices refer to input devices and output devices that are not bound to an application, and correspondingly, input devices and output devices that have been bound to an application. Devices are bound input and output devices.
  • the binding module After the binding module provides the user interaction interface, the user can select a certain (or some) output devices and A certain (or some) input device is bound to the first application, that is, the first input device and the first output device are set for the first application. Specifically, the user can input the first selection to the user interaction interface through any unbound input device, and the first selection is used to indicate the first input device and the first output device (ie, the first selection) set by the user for the first application. including a first input device and a first output device). After receiving the first selection input by the user through the user interaction interface, the binding module forwards the first selection to the input adapter and the output adapter.
  • FIG. 3 is a schematic diagram of a user interaction interface provided by an embodiment of the present application.
  • the binding module can provide a visualization during the start-up process of the game software.
  • interface that displays a Bluetooth keyboard, a universal serial bus (USB) keyboard, a Bluetooth mouse, a USB mouse, a TV (which can also be displayed as a network video stream), and a monitor (which can also be displayed as a network card) and other options. Therefore, the user can select the input device and the output device bound to the game software in the interface.
  • the user sets the Bluetooth keyboard, Bluetooth mouse and TV as devices bound to the game software in the interface, it is equivalent to inputting a selection into the interface, and the selection can be sent to the binding module through the interface.
  • the first selection construct a correspondence between the first application and the first input device and a correspondence between the first application and the first output device.
  • the binding module After receiving the first selection, the binding module sends the first selection to the input adapter and the output adapter.
  • the input adapter can determine that the first input device needs to be bound to the first application, so the input adapter builds a correspondence between the first application and the first input device, and stores the correspondence, which is is equivalent to successfully binding the first input device to the first application.
  • the output adapter may determine that the first output device needs to be bound to the first application, so the output adapter builds a correspondence between the first application and the first output device, and stores the correspondence The relationship, at this time, is equivalent to successfully binding the first output device to the first application.
  • the input adapter can determine that the Bluetooth keyboard and the Bluetooth mouse need to be bound to the game software, and then build a correspondence between the Bluetooth keyboard and the game software. relationship, and the corresponding relationship between the Bluetooth mouse and the game software.
  • the output adapter can determine that the TV needs to be bound to the game software, and then establish a corresponding relationship between the TV and the game software. In this way, the bluetooth keyboard, bluetooth mouse and TV are successfully bound to the game software.
  • the user can operate the first application through the first input device and the first output device.
  • the user may first send a first operation instruction to the input adapter through the first input device.
  • the input adapter After receiving the first operation instruction from the first input device, the input adapter sends the first operation instruction to the first application based on the correspondence between the first input device and the first application, so that the first application can The operation command is processed.
  • the first application completes the processing of the first operation instruction, it can generate corresponding display screen data, and send the display screen data to the output adapter.
  • the output adapter sends the display screen data to the first output device for display based on the corresponding relationship between the first output device and the first application.
  • the remaining input devices and output devices of the terminal device are in an idle state, that is, the remaining input devices and output devices of the terminal device can serve other applications. , which can effectively utilize the input and output device resources of the terminal device.
  • the input adapter can receive input from the game software.
  • the operation instructions of the Bluetooth keyboard and mouse are sent to the game software based on the corresponding relationship between the Bluetooth keyboard and mouse and the game software.
  • the game software processes the operation instructions, it can generate corresponding display screen data and send the display screen data to the output adapter.
  • the output adapter sends the display screen data to the TV for display, thereby displaying the game screen on the TV.
  • the PC's USB keyboard, USB keyboard and monitor are unbound devices, so the PC's monitor will not display the game screen.
  • the smartphone has its own keyboard and display screen, and is connected with additional devices such as a Bluetooth keyboard and mouse and a TV
  • the Bluetooth keyboard, mouse and TV are bound to the desktop cloud client running on the smartphone.
  • the user can send the operation command through the Bluetooth keyboard and mouse, and the input adapter can receive the operation command from the Bluetooth keyboard and mouse, and send the operation command based on the corresponding relationship between the Bluetooth keyboard and mouse and the game software.
  • the desktop cloud client sends the operation instruction to the remote desktop cloud server (located outside the terminal device), and the desktop cloud server can return the display screen data to the desktop cloud client after processing the operation instruction.
  • the desktop cloud client sends the display data to the output adapter.
  • the output adapter sends the display screen data to the TV for display, thereby displaying the screen of the desktop cloud client on the TV.
  • the user can operate the desktop cloud client through a Bluetooth keyboard, mouse and TV, making the use of the desktop cloud very simple and convenient.
  • the keyboard and display screen of the smartphone are unbound devices, that is, the smartphone can be used normally, and the display screen of the smartphone will not display the screen of the desktop cloud client.
  • step 203 and step 206 may be repeatedly performed, so step 203 and step 206 may be performed simultaneously, that is, the operating system of the terminal device may run the first application and the second application at the same time.
  • the operating system can meet the operation needs of different users for different applications at the same time.
  • the binding module can provide a visual interface, which displays the USB keyboard, Options such as USB mouse and monitor (since the Bluetooth keyboard, Bluetooth mouse and monitor are all bound devices, these devices are no longer displayed in the visual interface). Therefore, the user can select the input device and the output device bound to the office software in the interface.
  • the user sets the USB keyboard, USB mouse and monitor as devices bound to the office software in this interface, it is equivalent to inputting a selection into this interface, and the selection can be sent to the binding module through this interface.
  • the input adapter can determine that the USB keyboard and USB mouse need to be bound to the office software, and then builds the corresponding relationship between the USB keyboard and the office software, and the USB mouse Correspondence with the office software.
  • the output adapter can determine that the monitor needs to be bound to the office software, and then establish a corresponding relationship between the monitor and the office software. In this way, the USB keyboard, USB mouse and monitor are successfully bound to the office software.
  • USB keyboard and mouse After successfully binding the USB keyboard, USB mouse and monitor to the office software, if another user starts to send operation commands through the USB keyboard and USB mouse (hereinafter collectively referred to as USB keyboard and mouse), the input adapter can receive the data from the USB keyboard and mouse. operation instructions, and based on the corresponding relationship between the USB keyboard and mouse and the office software, the operation instructions are sent to the office software. After the office software processes the operation instructions, it can generate corresponding display screen data and send the display screen data to the output adapter. Finally, based on the correspondence between the display and the office software, the output adapter sends the display image data to the display for display, thereby displaying the office image on the display.
  • the same terminal device can realize the game operation of one user and the office operation of another user at the same time.
  • the first input device and the first output device are bound to the first application. If the user needs to modify the input/output device bound to the first application, a trigger instruction may be sent to the binding module through the first input device. After receiving the trigger instruction, the binding module can provide the user interaction interface again, that is, the binding module sends the user interaction interface to the first output device for display. At this point, the user interaction interface may display options such as remaining unbound input devices and remaining unbound output devices for the user to select.
  • the binding module After the binding module provides the user interaction interface, the user can select a certain (or some) output device and a certain (or some) input device to bind to the first application in the options displayed on the user interaction interface, that is, The first application sets the third input device and the third output device, thereby replacing the first input device and the first output device that were originally bound to the first application.
  • the user may input a third selection to the user interaction interface through the first input device, and the third selection is used to indicate the third input device and the third output device set by the user for the first application.
  • the binding module After receiving the third selection input by the user through the user interaction interface, the binding module forwards the third selection to the input adapter and the output adapter.
  • the third selection modify the correspondence between the first application and the first input device to the correspondence between the first application and the third input device, and change the correspondence between the first application and the first output device.
  • the corresponding relationship is modified to the corresponding relationship between the first application and the third output device.
  • the input adapter can determine that the third input device needs to be bound to the first application, and then modify the corresponding relationship between the first application and the first input device to the relationship between the first application and the third input device. Correspondence between.
  • the output adapter receives the third selection, it can determine that the third output device needs to be bound to the first application, and then modify the correspondence between the first application and the first output device to the first application and the third output device. Correspondence between output devices. At this time, it is equivalent to successfully binding the third output device and the third input device to the first application.
  • the user needs to operate the first application through the third input device and the third output device.
  • the relevant description part of operating the first application through the first input device and the first output device in step 203 which will not be repeated here.
  • the operating system of the terminal device may provide a user interaction interface, and the user interaction interface is used to respectively provide multiple input devices and multiple output devices for at least two applications.
  • the first input device and the first output device are bound to the first application, so that the first input device and the first output device serve the first application.
  • the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. Then, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
  • FIG. 4 is a schematic structural diagram of an application control apparatus of a terminal device provided by an embodiment of the present application. Please refer to FIG. 4 .
  • the apparatus includes:
  • the interaction module 401 is configured to provide a user interaction interface, where the user interaction interface is used to respectively provide options of multiple input devices and multiple output devices for at least two applications of the terminal device, and receive a user's first selection of the terminal device based on the options. a first selection of application settings, where the first selection includes a first input device and a first output device;
  • the running module 402 is configured to, when the first application starts, determine the first input device and the first output device of the first application according to the first selection, run the first application according to the instruction obtained from the first input device, and The display screen data generated by running the first application is sent to the first output device for display.
  • the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the option, where the second selection includes a second input device and a second output device, and the operation module 402 It is also used to determine the second input device and the second output device of the second application according to the second selection when the second application is started, run the second application according to the instruction obtained from the second input device, and run the second application.
  • the display screen generated by the application is sent to the second input device for display.
  • the first application and the second application run simultaneously in the terminal device.
  • the first input device is one of a local input device of the terminal device and an external input device of the terminal device;
  • the second input device is a local input device of the terminal device and an external input device of the terminal device
  • the other of the first output device is one of the local output device of the terminal device and the external output device of the terminal device;
  • the second output device is the other of the local output device of the terminal device and the external output device of the terminal device.
  • the first input device includes a first keyboard device and a first mouse device
  • the second input device includes a second keyboard device and a second mouse device.
  • the local output device is an output device provided by the terminal device
  • the external output device is an output device connected to the terminal device.
  • the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the option.
  • the third selection includes a third input device and a third output device, and the module 402 is executed. It is also used to determine the third input device and the third output device of the first application according to the third selection when the first application is started, run the first application according to the instruction obtained from the third input device, and run the first application.
  • the display screen generated by the application is sent to the third input device for display.
  • FIG. 5 is another schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the offload card in this embodiment of the present application may include one or more central processing units 501 , a memory 502 , an input/output interface 503 , a wired or wireless network interface 504 , and a power supply 505 .
  • the memory 502 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 501 may be configured to communicate with the memory 502 to execute a series of instruction operations in the memory 502 on the offload card.
  • the central processing unit 501 may perform the operations performed by the operating system of the terminal device in the foregoing embodiment shown in FIG. 2 , and details are not repeated here.
  • the division of specific functional modules in the central processing unit 501 may be similar to the division of modules such as binding modules, input adapters, and output adapters described in FIG. 2 , which will not be repeated here.
  • the division of specific functional modules in the central processing unit 501 may also be similar to the division of modules such as the interaction module and the operation module described in FIG. 4 , which is not repeated here.
  • Embodiments of the present application also relate to a computer storage medium, including computer-readable instructions, when the computer-readable instructions are executed, the method described in FIG. 2 is implemented.
  • Embodiments of the present application also relate to a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method described in FIG. 2 .
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

The present application discloses an application control method for a terminal device, and a related device thereof, which can effectively utilize device resources and improve the utilization rate of a device. The method of the present application comprises: providing a user interaction interface, the user interaction interface being configured to provide, for at least two applications of a terminal device, options of a plurality of input devices and a plurality of output devices, respectively, and receive a first selection set by a user for a first application of the terminal device on the basis of the option, the first selection comprising a first input device and a first output device; in cases where the first application is enabled, determining a first input device and a first output device of the first application according to the first selection, running the first application according to the instruction acquired from the first input device, and sending, to the first output device, display screen data generated by running the first application, and displaying same.

Description

一种终端设备的应用控制方法及其相关设备Application control method for terminal equipment and related equipment 技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种终端设备的应用控制方法及其相关设备。The present application relates to the field of computer technologies, and in particular, to an application control method for a terminal device and related devices.
背景技术Background technique
目前,终端设备自身通常具有一套输入设备(例如,自带的键盘和鼠标等等)和输出设备(例如,显示器等等),用户可通过该套输入设备和输出设备操作终端设备上的各个应用。At present, the terminal device itself usually has a set of input devices (for example, a built-in keyboard and mouse, etc.) and output devices (for example, a display, etc.), through which the user can operate various components on the terminal device. application.
然而,若用户想使用外接的输入设备和外接输出设备来操作终端设备的应用,则可将该套输入设备和输出设备连接至终端设备。此时,用户需要对终端设备的操作系统进行一系列操作,从而将终端设备连接至该套输入设备和输出设备上,后续才可使用该输入设备控制终端设备,终端设备向输出设备输出例如显示图像和/或声音等输出信号。However, if the user wants to use the external input device and the external output device to operate the application of the terminal device, the set of input device and output device can be connected to the terminal device. At this time, the user needs to perform a series of operations on the operating system of the terminal device, so as to connect the terminal device to the set of input devices and output devices, and then the input device can be used to control the terminal device, and the terminal device outputs to the output device, such as display Output signals such as image and/or sound.
在上述过程中,终端设备和外接的输入设备和输出设备绑定,终端设备上的所有应用都必须使用该套输入设备和输出设备,导致用户体验较差。In the above process, the terminal device is bound to the external input device and output device, and all applications on the terminal device must use the set of input devices and output devices, resulting in poor user experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种终端设备的应用控制方法及其相关设备,能够有效利用设备资源,提高设备的利用率。Embodiments of the present application provide an application control method for a terminal device and related devices, which can effectively utilize device resources and improve device utilization.
本申请实施例的第一方面提供了一种终端设备的应用控制方法,该方法包括:A first aspect of the embodiments of the present application provides an application control method for a terminal device, and the method includes:
在终端设备的操作系统上,可运行有多个应用,例如,游戏软件、办公软件等等。进一步地,终端设备连接有多个输入设备和多个输出设备,例如,终端设备连接有鼠标、键盘、摄像头等多个输入设备,且终端设备还连接有显示器、电视机等多个输出设备。终端设备的操作系统可对多个输入设备和多个输出设备进行集中管理,以将这部分设备分配至不同的应用。On the operating system of the terminal device, multiple applications, such as game software, office software, and the like, may run. Further, the terminal device is connected with multiple input devices and multiple output devices. For example, the terminal device is connected with multiple input devices such as a mouse, a keyboard, and a camera, and the terminal device is also connected with multiple output devices such as a monitor and a TV. The operating system of the terminal device can centrally manage multiple input devices and multiple output devices to allocate these devices to different applications.
具体地,终端设备的操作系统可先提供用户交互接口,用户交互接口用于针对至少两个应用分别提供多个输入设备和多个输出设备的选项,并接收用户基于该选项为第一应用设置的第一选择,第一选择包括第一输入设备和第一输出设备。然后,在第一应用启动的情况下,终端设备的操作系统根据第一选择确定第一应用的第一输入设备和第一输出设备,并根据从第一输入设备获取的指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。Specifically, the operating system of the terminal device may first provide a user interaction interface, where the user interaction interface is used to respectively provide options of multiple input devices and multiple output devices for at least two applications, and receive user settings for the first application based on the options. The first selection includes a first input device and a first output device. Then, when the first application is started, the operating system of the terminal device determines the first input device and the first output device of the first application according to the first selection, and runs the first application according to the instruction obtained from the first input device, The display screen data generated by running the first application is sent to the first output device for display.
例如,设智能手机自带有键盘和显示屏,且连接有游戏手柄和电视机等额外增设的设备。智能手机的操作系统可为用户提供一个可视化界面,该可视化界面包含手机的键盘、显示屏、游戏手柄和电视机等选项,以供用户进行选择。用户可在该可视化界面上将游戏 手柄和电视机设置给某个游戏软件,使得游戏手柄和电视机专门为该游戏软件服务。如此一来,用户可通过游戏手柄输入操作指令,操作系统可基于来自游戏手柄的操作指令运行该游戏软件,将运行该游戏软件产生的显示画面数据发送至电视机显示。此时,智能手机的显示屏则不会显示运行该游戏软件产生的显示画面数据,即智能手机的键盘和智能手机的显示屏可为其他应用服务。For example, let’s say a smartphone has its own keyboard and display and is connected to additional devices such as gamepads and TVs. The operating system of a smartphone can provide the user with a visual interface that includes options such as the phone's keyboard, display, gamepad, and TV for the user to choose from. The user can set the gamepad and the TV set to a certain game software on the visual interface, so that the gamepad and the TV set exclusively serve the game software. In this way, the user can input operation instructions through the gamepad, and the operating system can run the game software based on the operation instructions from the gamepad, and send display screen data generated by running the game software to the TV for display. At this time, the display screen of the smart phone will not display the display screen data generated by running the game software, that is, the keyboard of the smart phone and the display screen of the smart phone can serve other applications.
从上述方法可以看出:终端设备的操作系统可提供一个用户交互接口,该用户交互接口用于针对至少两个应用分别提供多个输入设备和多个输出设备的选项,故用户可在该用户交互接口上输入第一选择,操作系统基于第一选择将第一输入设备和第一输出设备绑定给第一应用,以使得第一输入设备和第一输出设备为第一应用服务。在第一应用已启动的情况下,操作系统可根据来自第一输入设备的操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。在前述过程中,用户仅需在操作系统提供的用户交互接口上输入第一选择,即可将第一输入设备与第一输出设备绑定至第一应用,即该过程仅需用户进行简单的操作,不需要进行多次复杂的操作,能够提升用户体验。It can be seen from the above method that the operating system of the terminal device can provide a user interaction interface, and the user interaction interface is used to provide options of multiple input devices and multiple output devices respectively for at least two applications, so the user can A first selection is input on the interactive interface, and the operating system binds the first input device and the first output device to the first application based on the first selection, so that the first input device and the first output device serve the first application. When the first application has been started, the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. In the foregoing process, the user only needs to input the first selection on the user interaction interface provided by the operating system, and the first input device and the first output device can be bound to the first application, that is, the process only requires the user to perform a simple The operation does not need to perform multiple complex operations, which can improve the user experience.
更进一步地,除了第一输入设备之外的其余输入设备,以及除了第一输出设备之外的其余输出设备,则可以为其它应用服务,从而有效利用设备资源,提高设备的利用率。Further, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
在一种可能的实现方式中,用户交互接口还用于接收用户基于该选项为终端设备的第二应用设置的第二选择,第二选择包括第二输入设备和第二输出设备,该方法还包括:在第二应用启动的情况下,根据第二选择确定第二应用的第二输入设备和第二输出设备,根据从第二输入设备获取的指令运行第二应用,并将运行第二应用产生的显示画面发送至第二输入设备显示。依旧如上述例子,用户可在操作系统系统提供的可视化界面上,将智能手机的键盘和智能手机的显示屏设置给某个办公软件,使得智能手机的键盘和智能手机的显示屏专门为该办公软件服务。如此一来,用户可通过智能手机的键盘输入操作指令,操作系统可基于来自智能手机的键盘的操作指令运行该办公软件,将运行该办公软件产生的显示画面数据发送至智能手机的显示屏显示。前述实现方式中,用户还可在该用户交互接口上输入第二选择,操作系统基于第二选择将第二输入设备和第二输出设备绑定给第二应用,以使得第二输入设备和第二输出设备为第二应用服务。在第二应用已启动的情况下,操作系统可根据来自第二输入设备的操作指令运行第二应用,并将运行第二应用产生的显示画面数据发送至第二输出设备显示。如此一来,用户可令第一输入设备和第一输出设备为第一应用服务,令第二输入设备和第二输出设备为第二应用服务,从而有效利用终端设备的各个输入设备和各个输出设备,提高设备的利用率。In a possible implementation manner, the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the option, where the second selection includes a second input device and a second output device, and the method further Including: when the second application is started, determining the second input device and the second output device of the second application according to the second selection, running the second application according to the instruction obtained from the second input device, and running the second application The generated display screen is sent to the second input device for display. As in the above example, the user can set the keyboard of the smartphone and the display of the smartphone to a certain office software on the visual interface provided by the operating system, so that the keyboard of the smartphone and the display of the smartphone are specially designed for the office. software service. In this way, the user can input operating instructions through the keyboard of the smart phone, and the operating system can run the office software based on the operating instructions from the keyboard of the smart phone, and send the display screen data generated by running the office software to the display screen of the smart phone for display. . In the foregoing implementation manner, the user may also input a second selection on the user interaction interface, and the operating system binds the second input device and the second output device to the second application based on the second selection, so that the second input device and the first The second output device serves the second application. When the second application has been started, the operating system can run the second application according to the operation instruction from the second input device, and send display screen data generated by running the second application to the second output device for display. In this way, the user can make the first input device and the first output device serve the first application, and make the second input device and the second output device serve the second application, thereby effectively utilizing each input device and each output of the terminal device. equipment to improve the utilization of equipment.
在一种可能的实现方式中,第一应用和第二应用在终端设备中同时运行。前述实现方式中,终端设备的操作系统可同时运行第一应用和第二应用,即在某个用户可通过第一输入设备和第一输出设备操作第一应用的同时,另一用户还可通过第二输入设备和第二输出设备操作第二应用,故可满足不同用户在同一终端设备上对不同应用的操作需求。依旧如上述例子,当操作系统接收到来自游戏手柄的操作指令,则将该操作指令发送至游戏软件进行处理,并将游戏软件反馈的显示画面数据发送至电视机,从而在电视机上显示游戏画面。与此同时,若操作系统还接收到来自手机的键盘的操作指令,则将该操作指令发送至办公软件进行处理,并将办公软件反馈的显示画面数据发送至手机的显示屏,从而在手机 的显示屏上显示办公画面。如此一来,一个终端设备上的操作系统可同时满足不同用户对不同软件的操作需求,即同时实现某一用户的游戏操作和另一用户的办公操作。In a possible implementation manner, the first application and the second application run simultaneously in the terminal device. In the foregoing implementation manner, the operating system of the terminal device can run the first application and the second application at the same time, that is, while a user can operate the first application through the first input device and the first output device, another user can also operate the first application through the first input device and the first output device. The second input device and the second output device operate the second application, so the operation requirements of different users on different applications on the same terminal device can be met. Still as in the above example, when the operating system receives an operation instruction from the gamepad, it sends the operation instruction to the game software for processing, and sends the display screen data fed back by the game software to the TV, so as to display the game screen on the TV. . At the same time, if the operating system also receives an operation instruction from the keyboard of the mobile phone, the operation instruction is sent to the office software for processing, and the display screen data fed back by the office software is sent to the display screen of the mobile phone, so that the display screen of the mobile phone can be displayed on the mobile phone. The office screen is displayed on the display. In this way, the operating system on one terminal device can simultaneously satisfy the operation requirements of different users for different software, that is, simultaneously realize the game operation of one user and the office operation of another user.
在一种可能的实现方式中,用户交互接口还用于接收用户基于该选项为终端设备的第一应用设置的第三选择,第三选择包括第三输入设备和第三输出设备,该方法还包括:在第一应用启动的情况下,根据第三选择确定第一应用的第三输入设备和第三输出设备,根据从第三输入设备获取的指令运行第一应用,并将运行第一应用产生的显示画面发送至第三输入设备显示。前述实现方式中,用户还可在该用户交互接口上输入第三选择,操作系统基于第三选择将第三输入设备和第三输出设备绑定给第一应用,以使得第三输入设备和第三输出设备为第一应用服务,从而替换已绑定至第一应用的第一输入设备和第一输出设备。那么,在第一应用已启动的情况下,操作系统可根据来自第三输入设备的操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第三输出设备显示。因此,用户可根据实际需求,自行修改绑定至第一应用的输入输出设备,从而提高方案的全面性。In a possible implementation manner, the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the option, where the third selection includes a third input device and a third output device, and the method further Including: when the first application is started, determining the third input device and the third output device of the first application according to the third selection, running the first application according to the instruction obtained from the third input device, and running the first application The generated display screen is sent to the third input device for display. In the foregoing implementation manner, the user may also input a third selection on the user interaction interface, and the operating system binds the third input device and the third output device to the first application based on the third selection, so that the third input device and the third The three output devices serve the first application, thereby replacing the first input device and the first output device already bound to the first application. Then, when the first application has been started, the operating system can run the first application according to the operation instruction from the third input device, and send the display screen data generated by running the first application to the third output device for display. Therefore, the user can modify the input and output devices bound to the first application according to actual needs, thereby improving the comprehensiveness of the solution.
在一种可能的实现方式中,第一输入设备为终端设备的本地输入设备以及终端设备的外接输入设备中的一者;第二输入设备为终端设备的本地输入设备以及终端设备的外接输入设备中的另一者;第一输出设备为终端设备的本地输出设备以及终端设备的外接输出设备中的一者;第二输出设备为终端设备的本地输出设备以及终端设备的外接输出设备中的另一者。In a possible implementation manner, the first input device is one of a local input device of the terminal device and an external input device of the terminal device; the second input device is a local input device of the terminal device and an external input device of the terminal device The other of the first output device is one of the local output device of the terminal device and the external output device of the terminal device; the second output device is the other of the local output device of the terminal device and the external output device of the terminal device. one.
在一种可能的实现方式中,第一输入设备包括第一键盘设备和第一鼠标设备;第二输入设备包括第二键盘设备和第二鼠标设备。In a possible implementation manner, the first input device includes a first keyboard device and a first mouse device; the second input device includes a second keyboard device and a second mouse device.
在一种可能的实现方式中,本地输出设备为终端设备自带的输出设备,外接输出设备为终端设备连接的输出设备。In a possible implementation manner, the local output device is an output device provided by the terminal device, and the external output device is an output device connected to the terminal device.
本申请实施例的第二方面提供了一种终端设备的应用控制装置,该装置包括:交互模块,用于提供用户交互接口,用户交互接口用于针对终端设备的至少两个应用分别提供多个输入设备和多个输出设备的选项,并接收用户基于该选项为终端设备的第一应用设置的第一选择,第一选择包括第一输入设备和第一输出设备;运行模块,用于在第一应用启动的情况下,根据第一选择确定第一应用的第一输入设备和第一输出设备,并根据从第一输入设备获取的指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。A second aspect of the embodiments of the present application provides an application control device for a terminal device, the device includes: an interaction module configured to provide a user interaction interface, where the user interaction interface is configured to provide multiple an option of an input device and a plurality of output devices, and receive a first selection set by the user for the first application of the terminal device based on the option, where the first selection includes the first input device and the first output device; the operation module is used for the first selection in the first application. When an application is started, determine the first input device and the first output device of the first application according to the first selection, run the first application according to the instruction obtained from the first input device, and execute the display generated by the first application The screen data is sent to the first output device for display.
从上述装置可以看出:终端设备的操作系统可提供一个用户交互接口,该用户交互接口用于针对至少两个应用分别提供多个输入设备和多个输出设备,故用户可在该用户交互接口上输入第一选择,操作系统基于第一选择将第一输入设备和第一输出设备绑定给第一应用,以使得第一输入设备和第一输出设备为第一应用服务。在第一应用已启动的情况下,操作系统可根据来自第一输入设备的操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。那么,除了第一输入设备之外的其余输入设备,以及除了第一输出设备之外的其余输出设备,则可以为其它应用服务,从而有效利用设备资源,提高设备的利用率。It can be seen from the above device that the operating system of the terminal device can provide a user interaction interface, and the user interaction interface is used to respectively provide multiple input devices and multiple output devices for at least two applications, so the user can use the user interaction interface On inputting the first selection, the operating system binds the first input device and the first output device to the first application based on the first selection, so that the first input device and the first output device serve the first application. When the first application has been started, the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. Then, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
在一种可能的实现方式中,用户交互接口还用于接收用户基于该选项为终端设备的第二应用设置的第二选择,第二选择包括第二输入设备和第二输出设备,运行模块还用于在 第二应用启动的情况下,根据第二选择确定第二应用的第二输入设备和第二输出设备,根据从第二输入设备获取的指令运行第二应用,并将运行第二应用产生的显示画面发送至第二输入设备显示。In a possible implementation manner, the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the option, the second selection includes a second input device and a second output device, and the running module further When the second application is started, determine the second input device and the second output device of the second application according to the second selection, run the second application according to the instruction obtained from the second input device, and will run the second application The generated display screen is sent to the second input device for display.
在一种可能的实现方式中,第一应用和第二应用在终端设备中同时运行。In a possible implementation manner, the first application and the second application run simultaneously in the terminal device.
在一种可能的实现方式中,第一输入设备为终端设备的本地输入设备以及终端设备的外接输入设备中的一者;第二输入设备为终端设备的本地输入设备以及终端设备的外接输入设备中的另一者;第一输出设备为终端设备的本地输出设备以及终端设备的外接输出设备中的一者;第二输出设备为终端设备的本地输出设备以及终端设备的外接输出设备中的另一者。In a possible implementation manner, the first input device is one of a local input device of the terminal device and an external input device of the terminal device; the second input device is a local input device of the terminal device and an external input device of the terminal device The other of the first output device is one of the local output device of the terminal device and the external output device of the terminal device; the second output device is the other of the local output device of the terminal device and the external output device of the terminal device. one.
在一种可能的实现方式中,第一输入设备包括第一键盘设备和第一鼠标设备;第二输入设备包括第二键盘设备和第二鼠标设备。In a possible implementation manner, the first input device includes a first keyboard device and a first mouse device; the second input device includes a second keyboard device and a second mouse device.
在一种可能的实现方式中,本地输出设备为终端设备自带的输出设备,外接输出设备为终端设备连接的输出设备。In a possible implementation manner, the local output device is an output device provided by the terminal device, and the external output device is an output device connected to the terminal device.
在一种可能的实现方式中,用户交互接口还用于接收用户基于该选项为终端设备的第一应用设置的第三选择,第三选择包括第三输入设备和第三输出设备,运行模块还用于在第一应用启动的情况下,根据第三选择确定第一应用的第三输入设备和第三输出设备,根据从第三输入设备获取的指令运行第一应用,并将运行第一应用产生的显示画面发送至第三输入设备显示。In a possible implementation manner, the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the option, the third selection includes a third input device and a third output device, and the running module further When the first application is started, determine the third input device and the third output device of the first application according to the third selection, run the first application according to the instruction obtained from the third input device, and run the first application The generated display screen is sent to the third input device for display.
本申请实施例的第三方面提供了一种终端设备,终端设备包括:处理器和存储器;存储器用于存储计算机执行指令;处理器用于执行存储器所存储的计算机执行指令,以使通信装置实现如第一方面或第一方面的任意一种可能的实现方式所述的方法。A third aspect of the embodiments of the present application provides a terminal device, the terminal device includes: a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing the computer-executed instructions stored in the memory, so that the communication apparatus realizes the following: The method described in the first aspect or any possible implementation manner of the first aspect.
本申请实施例的第四方面提供了一种计算机存储介质,其特征在于,包括计算机可读指令,当计算机可读指令被执行时,实现如第一方面或第一方面的任意一种可能的实现方式所述的方法。A fourth aspect of the embodiments of the present application provides a computer storage medium, which is characterized in that it includes computer-readable instructions, and when the computer-readable instructions are executed, the first aspect or any one of the possibilities of the first aspect is implemented. implement the method described.
本申请实施例的第五方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面或第一方面的任意一种可能的实现方式所述的方法。A fifth aspect of the embodiments of the present application provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect .
本申请实施例中,终端设备的操作系统可提供一个用户交互接口,该用户交互接口用于针对至少两个应用分别提供多个输入设备和多个输出设备,故用户可在该用户交互接口上输入第一选择,操作系统基于第一选择将第一输入设备和第一输出设备绑定给第一应用,以使得第一输入设备和第一输出设备为第一应用服务。在第一应用已启动的情况下,操作系统可根据来自第一输入设备的操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。那么,除了第一输入设备之外的其余输入设备,以及除了第一输出设备之外的其余输出设备,则可以为其它应用服务,从而有效利用设备资源,提高设备的利用率。In this embodiment of the present application, the operating system of the terminal device may provide a user interaction interface, and the user interaction interface is used to respectively provide multiple input devices and multiple output devices for at least two applications, so the user can use the user interaction interface on the user interaction interface. The first selection is input, and the operating system binds the first input device and the first output device to the first application based on the first selection, so that the first input device and the first output device serve the first application. When the first application has been started, the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. Then, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
附图说明Description of drawings
图1为本申请实施例提供的终端设备的一个结构示意图;FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图2为本申请实施例提供的终端设备的应用控制方法的一个流程示意图;2 is a schematic flowchart of an application control method for a terminal device provided by an embodiment of the present application;
图3为本申请实施例提供的用户交互接口的一个示意图;3 is a schematic diagram of a user interaction interface provided by an embodiment of the present application;
图4为本申请实施例提供的终端设备的应用控制装置的一个结构示意图;FIG. 4 is a schematic structural diagram of an application control apparatus of a terminal device provided by an embodiment of the present application;
图5为本申请实施例提供的终端设备的另一结构示意图。FIG. 5 is another schematic structural diagram of a terminal device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种终端设备的应用控制方法及其相关设备,能够有效利用设备资源,提高设备的利用率。Embodiments of the present application provide an application control method for a terminal device and related devices, which can effectively utilize device resources and improve device utilization.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”并他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, and this is only a distinguishing manner adopted when describing objects with the same attributes in the embodiments of the present application. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, product or device comprising a series of elements is not necessarily limited to those elements, but may include no explicit or other units inherent to these processes, methods, products, or devices.
本申请实施例可通过终端设备实现,终端设备可以是个人计算机(personal computer,PC)、智能手机、平板电脑(portable android device,PAD)等设备。此类终端设备在出厂时,通常已连接有本地输入设备和本地输出设备。为了满足某些特殊场景的需求,例如,当用户需在远处控制终端设备时,终端设备自身已具备的本地输入设备和本地输出设备往往无法满足需求,故终端设备还可连接有外接输入设备和外接输出设备。The embodiments of the present application may be implemented by a terminal device, and the terminal device may be a personal computer (personal computer, PC), a smart phone, a tablet computer (portable android device, PAD) and other devices. Such terminal devices are usually shipped with local input devices and local output devices connected. In order to meet the needs of some special scenarios, for example, when the user needs to control the terminal device from a distance, the local input devices and local output devices already provided by the terminal device are often unable to meet the needs, so the terminal device can also be connected to an external input device. and external output devices.
具体地,本地输入设备通常是终端设备出厂自带的输入设备,例如,当终端设备为PC时,PC的本地输入设备可以包括PC自带的有线鼠标、有线键盘等等。又如,当终端设备为智能手机时,智能手机的本地输入设备可以包括智能手机自带的键盘(物理键区或虚拟数字键区等)、摄像头、麦克风等等。同理,本地输出设备通常是终端设备自带的输出设备,例如,当终端设备为PC时,PC的本地输出设备可以包括PC自带的显示器、扬声器等等。又如,当终端设备为智能手机时,智能手机的本地输出设备可以包括智能手机自带的显示屏、扬声器等等。此外,外接输入设备通常是为终端设备额外增设(或额外连接)的输入设备,例如,为终端设备增设的有线鼠标、有线键盘、无线鼠标、无线键盘、触摸屏、摄像头、存储器等等。外接输出设备通常是为终端设备额外增设的输出设备,例如,为终端设备增设的电视机、投影仪、打印机、扬声器等等。Specifically, the local input device is usually an input device provided by the terminal device. For example, when the terminal device is a PC, the local input device of the PC may include a wired mouse, a wired keyboard, and the like provided by the PC. For another example, when the terminal device is a smart phone, the local input device of the smart phone may include a keyboard (physical keypad or virtual numeric keypad, etc.), a camera, a microphone, and the like provided in the smart phone. Similarly, the local output device is usually an output device provided by the terminal device. For example, when the terminal device is a PC, the local output device of the PC may include a monitor, a speaker, and the like provided by the PC. For another example, when the terminal device is a smart phone, the local output device of the smart phone may include a display screen, a speaker, and the like built in the smart phone. In addition, the external input device is usually an input device additionally added (or additionally connected) to the terminal device, for example, a wired mouse, wired keyboard, wireless mouse, wireless keyboard, touch screen, camera, memory, etc. added to the terminal device. The external output device is usually an additional output device added to the terminal device, for example, a TV set, a projector, a printer, a speaker, etc., added to the terminal device.
因此,终端设备可连接有多个输入设备和多个输出设备。终端设备可通过操作系统,实现而对多个输入设备和多个输出设备的集中管理。为了便于说明和理解,下文以终端设备为智能手机进行介绍。设智能手机连接有本地输入设备、外接输入设备、本地输出设备和外接输出设备,分别为手机的键盘、蓝牙键鼠、手机的显示屏和电视机。当用户通过蓝牙键鼠(也可以是手机的键盘,此处仅以蓝牙键鼠为例进行示意性说明)向操作系统运行的某个应用输入一定的操作指令时,操作系统可令显示屏和电视机可同步显示该应用基于操作指令所生成的显示画面数据,故用户可在电视机上享用较优的视觉效果。Therefore, a terminal device can be connected with multiple input devices and multiple output devices. The terminal device can realize centralized management of multiple input devices and multiple output devices through the operating system. For the convenience of description and understanding, the following description will be given by taking the terminal device as a smart phone. It is assumed that the smart phone is connected with a local input device, an external input device, a local output device and an external output device, which are the keyboard of the mobile phone, the Bluetooth keyboard and mouse, the display screen of the mobile phone and the TV. When a user inputs a certain operation command to an application running by the operating system through a Bluetooth keyboard and mouse (it can also be the keyboard of a mobile phone, here only the Bluetooth keyboard and mouse are used as an example for schematic illustration), the operating system can make the display screen and the The TV can synchronously display the display screen data generated by the application based on the operation instructions, so the user can enjoy better visual effects on the TV.
具体地,操作系统通常运行有多个应用,但操作系统一般聚焦在最前端的应用上,故用户通过手机的键盘和蓝牙键鼠输入的操作指令,操作系统均会发送至该应用进行处理,并将该应用反馈的显示画面数据发送至手机的显示屏和电视机进行显示。也就是说,操作 系统会令所有的输入设备和输出设备为该应用服务。然而,用户实际上操作该应用时,有效使用的设备为蓝牙键鼠和电视机。此时,若其它用户需要使用手机的键盘和手机的显示屏操作另一个应用时,操作系统则无法实现该需求,造成了一定的设备资源浪费,导致设备的利用率较低。Specifically, the operating system usually runs multiple applications, but the operating system generally focuses on the most front-end applications. Therefore, the operating instructions input by the user through the keyboard of the mobile phone and the Bluetooth keyboard and mouse will be sent to the application for processing by the operating system. The display screen data fed back by the application is sent to the display screen of the mobile phone and the TV for display. That is, the operating system will make all input and output devices serve the application. However, when the user actually operates the application, the devices that are effectively used are the Bluetooth keyboard, mouse and TV. At this time, if other users need to use the keyboard of the mobile phone and the display screen of the mobile phone to operate another application, the operating system cannot meet this requirement, resulting in a certain waste of equipment resources and a low utilization rate of the equipment.
为了解决上述问题,本申请实施例提供了一种新的操作系统实现,以有效利用终端设备的设备资源。为了便于理解,下文结合图1对本申请实施例提供的操作系统作进一步的介绍。图1为本申请实施例提供的终端设备的一个结构示意图,如图1所示,该终端设备的操作系统包括三个模块,分别为绑定模块、输入适配器以及输出适配器,且操作系统加载有本地输入设备的驱动、外接输入设备的驱动以及显示驱动。此外,操作系统上还运行有多个应用(也可称为应用程序),且终端连接有本地输入设备、外接输入设备、本地输出设备以及外接输出设备。下文将对前述涉及的各个模块分别进行介绍:In order to solve the above problem, the embodiments of the present application provide a new operating system implementation, so as to effectively utilize the device resources of the terminal device. For ease of understanding, the operating system provided by the embodiment of the present application is further introduced below with reference to FIG. 1 . FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 1 , an operating system of the terminal device includes three modules, namely a binding module, an input adapter, and an output adapter, and the operating system is loaded with Drivers for local input devices, drivers for external input devices, and display drivers. In addition, a plurality of applications (also referred to as application programs) also run on the operating system, and the terminal is connected with a local input device, an external input device, a local output device, and an external output device. Each of the aforementioned modules will be introduced separately below:
应用可以为某款软件或某个云实例。例如,应用可以为游戏软件、办公软件、桌面云客户端等等。又如,应用可以为虚拟机(virtual machine,VM)、裸金属服务器(bare metal server,BMS)、应用容器引擎(docker)等等。An application can be a piece of software or a cloud instance. For example, the application may be game software, office software, desktop cloud client, and so on. For another example, the application may be a virtual machine (virtual machine, VM), a bare metal server (bare metal server, BMS), an application container engine (docker), and the like.
本地输入设备的驱动部署于操作系统中,本地输入设备的驱动可用于支持本地输入设备的输入功能,即本地输入设备输入的指令可发送至本地输入设备的驱动,进而本地输入设备的驱动将该指令发送至操作系统,操作系统可自行对该指令进行处理或将该指令发送至应用进行处理,此处先不做展开。同理,外接输入设备的驱动也部署于操作系统中,外接输入设备的驱动可用于支持外接输入设备的输入功能,具体可参考前述本地输入设备的驱动的相关说明,此处不再赘述。The driver of the local input device is deployed in the operating system, and the driver of the local input device can be used to support the input function of the local input device, that is, the command input by the local input device can be sent to the driver of the local input device, and the driver of the local input device The instruction is sent to the operating system, and the operating system can process the instruction by itself or send the instruction to the application for processing, which will not be expanded here. Similarly, the driver of the external input device is also deployed in the operating system, and the driver of the external input device can be used to support the input function of the external input device.
显示驱动部署于操作系统中,显示驱动用于支持本地输出设备的输出功能。当终端设备为PC时,操作系统可将应用反馈的显示画面数据发送至显示驱动,显示驱动再将显示画面数据发送至显卡,进而显卡可基于该显示画面数据完成图形渲染,并将渲染得到的图形输出到本地输出设备上(例如,显示器)进行显示。当终端设备为智能手机时,操作系统可将应用反馈的显示画面数据发送至显示驱动,由于手机的本地输出设备(例如,手机的显示屏)的集成度较高,故显示驱动可直接将该显示画面数据发送至本地输出设备进行显示。为了方便作图,图1以终端设备为PC作为例子进行示意性说明,并不对本申请中终端设备的类型构成限制。The display driver is deployed in the operating system, and the display driver is used to support the output function of the local output device. When the terminal device is a PC, the operating system can send the display screen data fed back by the application to the display driver, and the display driver will then send the display screen data to the graphics card, and then the graphics card can complete graphics rendering based on the display screen data, and render the rendered image data. Graphics are output to a local output device (eg, a display) for display. When the terminal device is a smart phone, the operating system can send the display screen data fed back by the application to the display driver. Since the local output device of the mobile phone (for example, the display screen of the mobile phone) has a high degree of integration, the display driver can directly send the data to the display driver. The display screen data is sent to the local output device for display. For the convenience of drawing, FIG. 1 takes the terminal device as a PC as an example for schematic illustration, and does not limit the type of the terminal device in this application.
为了便于说明,下文均省略驱动转发指令的过程,例如,“本地输入设备将指令发送至本地输入设备的驱动,该驱动再将指令发送至操作系统”等同于“操作系统接收来自本地输入设备的指令”等等,后续不在赘述。For the convenience of description, the process of the driver forwarding the instruction is omitted below. For example, "the local input device sends the instruction to the driver of the local input device, and the driver sends the instruction to the operating system" is equivalent to "the operating system receives the instruction from the local input device." Instructions” and so on, which will not be repeated in the following.
操作系统的绑定模块在应用启动的过程中,可作为应用与输入输出设备(包括本地输入设备、外接输入设备、本地输出设备以及外接输出设备)之间的对应关系的配置入口。例如,在应用启动的过程中,绑定模块可向用户提供用户交互接口(例如,一个可视化界面),以接收用户在该接口中输入的选择,并将该选择发送至输入适配器和输出适配器,从而使得输入适配器基于该选择构建应用与输入设备之间的对应关系,输出适配器基于该选择构建应用与输出设备之间的对应关系。又如,在应用启动的过程中,绑定模块可接收来自应用的选择,并将该选择发送至输入适配器和输出适配器,从而使得输入适配器基于该 选择构建应用与输入设备之间的对应关系,输出适配器基于该选择构建应用与输出设备之间的对应关系等等。此外,绑定模块还可作为应用与输入输出设备之间的对应关系的修改入口。例如,绑定模块在接收到用户输入的用于修改对应关系的选择后,可将该选择发送至输入适配器和输出适配器,从而使得输入适配器基于该该选择对应用与输入设备之间的对应关系进行修改,输出适配器基于该选择对应用与输出设备之间的对应关系进行修改。The binding module of the operating system can be used as a configuration entry for the correspondence between the application and the input and output devices (including the local input device, the external input device, the local output device and the external output device) during the application startup process. For example, during application startup, the binding module may provide the user with a user-interactive interface (eg, a visual interface) to receive selections entered by the user in the interface and send the selections to the input and output adapters, Therefore, the input adapter builds the corresponding relationship between the application and the input device based on the selection, and the output adapter builds the corresponding relationship between the application and the output device based on the selection. For another example, in the process of application startup, the binding module may receive the selection from the application, and send the selection to the input adapter and the output adapter, so that the input adapter builds the corresponding relationship between the application and the input device based on the selection, The output adapter builds the correspondence between the application and the output device based on the selection, and so on. In addition, the binding module can also be used as an entry for modifying the corresponding relationship between the application and the input and output devices. For example, after receiving the user-input selection for modifying the corresponding relationship, the binding module may send the selection to the input adapter and the output adapter, so that the input adapter can determine the corresponding relationship between the application and the input device based on the selection. Modification is performed, and the output adapter modifies the correspondence between the application and the output device based on the selection.
操作系统的输入适配器可建立应用与输入设备之间的对应关系,并基于应用与输入设备之间的对应关系,将来自输入设备的操作指令(例如,操作应用的键盘事件、操作应用的鼠标事件等等)发送至相应的应用进行处理。一般地,在输入适配器中,一个应用可以对应至少一个输入设备(既可以是本地输入设备,也可以是外接输入设备)。例如,手机上的某个游戏软件可以对应一个额外增设的游戏手柄,故当输入适配器接收到游戏手柄输入的操作指令后,输入适配器可将该操作指令发送至游戏软件进行处理。又如,PC的某个办公软件可以绑定一个PC自带的有线鼠标和一个额外增设的无线键盘等等,故当输入适配器接收到有线鼠标和无线键盘输入的操作指令后,输入适配器可将该操作指令发送至办公软件进行处理。The input adapter of the operating system can establish the corresponding relationship between the application and the input device, and based on the corresponding relationship between the application and the input device, the operation instructions from the input device (for example, the keyboard event of the operation application, the mouse event of the operation application etc.) are sent to the corresponding application for processing. Generally, in an input adapter, an application can correspond to at least one input device (either a local input device or an external input device). For example, a certain game software on the mobile phone can correspond to an additional gamepad, so after the input adapter receives the operation command input by the gamepad, the input adapter can send the operation command to the game software for processing. Another example is that a certain office software of the PC can bind a wired mouse that comes with the PC and an additional wireless keyboard, etc., so when the input adapter receives the operation command input by the wired mouse and wireless keyboard, the input adapter can The operation instruction is sent to the office software for processing.
操作系统的输出适配器可建立应用于输出设备之间的对应关系,并基于应用于输出设备之间的对应关系,将来自应用的显示画面数据(例如,应用处理键盘事件或鼠标事件后得到的数据等等)发送至相应的输出设备进行显示。一般地,在输出适配器中,一个应用可以对应至少一个输出设备(既可以是本地输出设备,也可以是外接输出设备)。例如,手机上的某个游戏软件可以对应一个额外增设的电视机,故当输入适配器接收到来自游戏软件的显示画面数据后,输入适配器可将该显示画面数据发送至电视机进行显示。又如,手机的某个办公软件可以绑定一个手机的显示屏等等,故当输入适配器接收到来自办公软件的显示画面数据后,输入适配器可将该显示画面数据发送至手机的显示屏进行显示。The output adapter of the operating system can establish the corresponding relationship applied to the output devices, and based on the corresponding relationship applied to the output devices, the display screen data from the application (for example, the data obtained after the application processes keyboard events or mouse events) etc.) to the corresponding output device for display. Generally, in an output adapter, an application can correspond to at least one output device (either a local output device or an external output device). For example, a certain game software on the mobile phone can correspond to an additional TV, so after the input adapter receives the display screen data from the game software, the input adapter can send the display screen data to the TV for display. Another example is that a certain office software of a mobile phone can be bound to a display screen of a mobile phone, etc. Therefore, after the input adapter receives the display screen data from the office software, the input adapter can send the display screen data to the display screen of the mobile phone for processing. show.
值得注意的是,输出适配器与外接输出设备之间可以无线传输的方式实现显示画面数据的传输,故操作系统不需加载外接输出设备的驱动。具体地,输出适配器可基于网络视频流传输技术或图像传输技术,将来自应用的显示画面数据发送至外接输出设备进行显示。其中,网络视频流传输技术可以为数字生活网络联盟(digital living network alliance,DLNA)技术、Miracast技术或其他自定义的视频传输协议等等,图像传输技术可以是桌面图像传输技术等等。It is worth noting that the display screen data can be transmitted wirelessly between the output adapter and the external output device, so the operating system does not need to load the driver of the external output device. Specifically, the output adapter can send the display screen data from the application to an external output device for display based on the network video streaming technology or the image transmission technology. Among them, the network video streaming transmission technology may be a digital living network alliance (DLNA) technology, Miracast technology or other custom video transmission protocols, etc., and the image transmission technology may be a desktop image transmission technology and so on.
基于上述简单的介绍可知,本申请实施例提供的操作系统可令不同的输入输出设备为不同的应用服务,故不同用户可同时在某一终端设备的不同输入输出设备上,对不同应用进行操作,从而提高设备的利用率。为了进一步理解本申请提供的方案,下文将结合图2(图2为本申请实施例提供的终端设备的应用控制方法的一个流程示意图)作进一步的介绍。在本申请中,终端设备的操作系统上运行的多个应用中,下文以其中两个应用为例进行介绍。具体地,可将这两个应用分别称为第一应用和第二应用。进一步地,在终端设备连接的多个输入设备和多个输出设备中,将绑定至第一应用的输入设备和输出设备称为第一输入设备和第一输出设备,将绑定至第二应用的输入设备和输出设备称为第二输入设备和第二输出设备,其中,第一输入设备既可以是本地输入设备也可以是外接输入设备,第一输出设备既可以是本地输出设备也可以是外接输出设备,第二输入设备既可以是本地输 入设备也可以是外接输入设备,第二输出设备既可以是本地输出设备也可以是外接输出设备。如图2所示,该方法包括:Based on the above brief introduction, it can be seen that the operating system provided by the embodiments of the present application can make different input and output devices serve different applications, so different users can operate different applications on different input and output devices of a terminal device at the same time , thereby improving the utilization rate of the equipment. In order to further understand the solution provided by the present application, further introduction will be made below with reference to FIG. 2 ( FIG. 2 is a schematic flowchart of an application control method for a terminal device provided by an embodiment of the present application). In this application, among the multiple applications running on the operating system of the terminal device, two of the applications are used as examples for introduction below. Specifically, the two applications may be referred to as a first application and a second application, respectively. Further, among the multiple input devices and multiple output devices connected to the terminal device, the input device and the output device bound to the first application are called the first input device and the first output device, and the input device and the output device bound to the second application are called the first input device and the first output device. The input device and output device of the application are called the second input device and the second output device, wherein the first input device can be either a local input device or an external input device, and the first output device can be either a local output device or a second output device. It is an external output device, the second input device can be either a local input device or an external input device, and the second output device can be either a local output device or an external output device. As shown in Figure 2, the method includes:
201、在第一应用启动的过程中,提供用户交互接口,并通过用户交互接口接收用户输入的第一选择,第一选择用于指示用户为第一应用设置的第一输入设备和第一输出设备。201. In the process of starting the first application, a user interaction interface is provided, and a first selection input by the user is received through the user interaction interface, where the first selection is used to indicate the first input device and the first output set by the user for the first application equipment.
当用户需要使用终端设备上的第一应用时,可启动终端设备上的第一应用。终端设备的操作系统的绑定模块检测到第一应用开始启动后,可在第一应用启动的过程中,向用户提供用户交互接口,用户交互接口用于为至少两个应用分别提供多个输入设备和多个输出设备。具体地,绑定模块可将用户交互接口发送到至少一个未绑定的输出设备进行显示,用户交互接口可呈现为一个可视化界面,该可视化界面显示有至少一个未绑定的输入设备和至少一个未绑定的输出设备的选项,以供用户进行选择。可以理解的是,在终端设备中,未绑定的输入设备和输出设备指未被绑定至某一个应用的输入设备和输出设备,相应地,已绑定至某一个应用的输入设备和输出设备则为已绑定的输入设备和输出设备。When the user needs to use the first application on the terminal device, the first application on the terminal device may be activated. After the binding module of the operating system of the terminal device detects that the first application starts to be started, it can provide a user interaction interface to the user during the process of starting the first application, and the user interaction interface is used to respectively provide multiple inputs for at least two applications device and multiple output devices. Specifically, the binding module can send the user interaction interface to at least one unbound output device for display, and the user interaction interface can be presented as a visual interface that displays at least one unbound input device and at least one unbound input device. Options for unbound output devices for the user to choose from. It can be understood that, in a terminal device, unbound input devices and output devices refer to input devices and output devices that are not bound to an application, and correspondingly, input devices and output devices that have been bound to an application. Devices are bound input and output devices.
在绑定模块提供用户交互接口后,用户可在用户交互接口提供的所有选项中(即在用户交互接口显示的所有输出设备和所有输入设备中),选择某个(或某些)输出设备和某个(或某些)输入设备绑定至第一应用,即为第一应用设置第一输入设备和第一输出设备。具体地,用户可通过任意一个未绑定的输入设备向用户交互接口输入第一选择,第一选择用于指示用户为第一应用设置的第一输入设备和第一输出设备(即第一选择包含第一输入设备和第一输出设备)。绑定模块通过用户交互接口接收用户输入的第一选择后,则将第一选择转发至输入适配器和输出适配器。After the binding module provides the user interaction interface, the user can select a certain (or some) output devices and A certain (or some) input device is bound to the first application, that is, the first input device and the first output device are set for the first application. Specifically, the user can input the first selection to the user interaction interface through any unbound input device, and the first selection is used to indicate the first input device and the first output device (ie, the first selection) set by the user for the first application. including a first input device and a first output device). After receiving the first selection input by the user through the user interaction interface, the binding module forwards the first selection to the input adapter and the output adapter.
下文将结合图3对上述过程作进一步的介绍。图3为本申请实施例提供的用户交互接口的一个示意图,如图3所示,若用户启动了PC上的某一游戏软件,在该游戏软件启动的过程中,绑定模块可提供一个可视化界面,该可视化界面中显示了蓝牙键盘、通用串行总线(universal serial bus,USB)键盘、蓝牙鼠标、USB鼠标、电视机(也可以显示为网络视频流)和显示器(也可以显示为网卡)等选项。因此,用户可在该界面中,选择绑定至该游戏软件的输入设备和输出设备。当用户在该界面中,将蓝牙键盘、蓝牙鼠标和电视机设置为绑定至该游戏软件的设备时,则相当于向该界面输入一个选择,该选择可通过该界面发送至绑定模块。The above process will be further described below with reference to FIG. 3 . FIG. 3 is a schematic diagram of a user interaction interface provided by an embodiment of the present application. As shown in FIG. 3 , if a user starts a certain game software on a PC, the binding module can provide a visualization during the start-up process of the game software. interface that displays a Bluetooth keyboard, a universal serial bus (USB) keyboard, a Bluetooth mouse, a USB mouse, a TV (which can also be displayed as a network video stream), and a monitor (which can also be displayed as a network card) and other options. Therefore, the user can select the input device and the output device bound to the game software in the interface. When the user sets the Bluetooth keyboard, Bluetooth mouse and TV as devices bound to the game software in the interface, it is equivalent to inputting a selection into the interface, and the selection can be sent to the binding module through the interface.
202、根据第一选择,构建第一应用与第一输入设备之间的对应关系以及第一应用与第一输出设备之间的对应关系。202. According to the first selection, construct a correspondence between the first application and the first input device and a correspondence between the first application and the first output device.
绑定模块接收到第一选择后,则将第一选择发送至输入适配器和输出适配器。输入适配器在接收到第一选择后,可确定需要将第一输入设备绑定至第一应用,故输入适配器构建第一应用于第一输入设备之间的对应关系,并存储该对应关系,此时,相当于成功将第一输入设备绑定至第一应用。同样的,输出适配器在接收到第一选择后,可确定需要将第一输出设备绑定至第一应用,故输出适配器构建第一应用于第一输出设备之间的对应关系,并存储该对应关系,此时,相当于成功将第一输出设备绑定至第一应用。After receiving the first selection, the binding module sends the first selection to the input adapter and the output adapter. After receiving the first selection, the input adapter can determine that the first input device needs to be bound to the first application, so the input adapter builds a correspondence between the first application and the first input device, and stores the correspondence, which is is equivalent to successfully binding the first input device to the first application. Similarly, after receiving the first selection, the output adapter may determine that the first output device needs to be bound to the first application, so the output adapter builds a correspondence between the first application and the first output device, and stores the correspondence The relationship, at this time, is equivalent to successfully binding the first output device to the first application.
依旧如上述例子,绑定模块将该选择转发至输入适配器和输出适配器后,输入适配器可确定需要将蓝牙键盘和蓝牙鼠标绑定至该游戏软件,则构建蓝牙键盘与该游戏软件之间的对应关系,以及蓝牙鼠标与该游戏软件之间的对应关系。同样的,输出适配器可确定需 要将电视机绑定至该游戏软件,则构建电视机与该游戏软件之间的对应关系。如此一来,则成功将蓝牙键盘、蓝牙鼠标和电视机绑定至该游戏软件。Still as in the above example, after the binding module forwards the selection to the input adapter and the output adapter, the input adapter can determine that the Bluetooth keyboard and the Bluetooth mouse need to be bound to the game software, and then build a correspondence between the Bluetooth keyboard and the game software. relationship, and the corresponding relationship between the Bluetooth mouse and the game software. Similarly, the output adapter can determine that the TV needs to be bound to the game software, and then establish a corresponding relationship between the TV and the game software. In this way, the bluetooth keyboard, bluetooth mouse and TV are successfully bound to the game software.
值得注意的是,本实施例中的对应关系可以多种数据结构的形式呈现,例如Map数据结构等等,此处不做具体限定。It should be noted that the corresponding relationship in this embodiment may be presented in the form of various data structures, such as a Map data structure, etc., which is not specifically limited here.
203、在第一应用已启动的情况下,根据从第一输入设备获取的第一操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。203. When the first application has been started, run the first application according to the first operation instruction obtained from the first input device, and send display screen data generated by running the first application to the first output device for display.
在第一应用已启动的情况下(即第一应用已完成启动),用户可通过第一输入设备和第一输出设备操作第一应用。具体地,在第一应用已启动的情况下,若用户需要操作第一应用,用户可先通过第一输入设备向输入适配器发送第一操作指令。输入适配器接收到来自第一输入设备的第一操作指令后,则基于第一输入设备与第一应用之间的对应关系,将第一操作指令发送至第一应用,使得第一应用对第一操作指令进行处理。第一应用完成第一操作指令的处理后,可产生相应的显示画面数据,并将显示画面数据发送至输出适配器。最后,输出适配器基于第一输出设备与第一应用之间的对应关系,将显示画面数据发送至第一输出设备进行显示。如此一来,当用户通过第一输入设备和第一输出设备操作第一应用时,终端设备的其余输入设备和输出设备处于空闲状态,即终端设备的其余输入设备和输出设备可为其它应用服务,可有效利用终端设备的输入输出设备资源。In the case that the first application has been started (that is, the first application has been started), the user can operate the first application through the first input device and the first output device. Specifically, when the first application has been started, if the user needs to operate the first application, the user may first send a first operation instruction to the input adapter through the first input device. After receiving the first operation instruction from the first input device, the input adapter sends the first operation instruction to the first application based on the correspondence between the first input device and the first application, so that the first application can The operation command is processed. After the first application completes the processing of the first operation instruction, it can generate corresponding display screen data, and send the display screen data to the output adapter. Finally, the output adapter sends the display screen data to the first output device for display based on the corresponding relationship between the first output device and the first application. In this way, when the user operates the first application through the first input device and the first output device, the remaining input devices and output devices of the terminal device are in an idle state, that is, the remaining input devices and output devices of the terminal device can serve other applications. , which can effectively utilize the input and output device resources of the terminal device.
依旧如上述例子,在成功将蓝牙键盘、蓝牙鼠标和电视机绑定至该游戏软件后,若用户开始通过蓝牙键盘和蓝牙鼠标(以下统称为蓝牙键鼠)发送操作指令,输入适配器可接收来自蓝牙键鼠的操作指令,并基于蓝牙键鼠与该游戏软件之间的对应关系,将操作指令发送至该游戏软件。该游戏软件对操作指令进行处理后,可产生相应的显示画面数据,并将显示画面数据发送至输出适配器。最后,输出适配器基于电视机与该游戏软件之间的对应关系,将显示画面数据发送至电视机进行显示,从而在电视机上显示游戏画面。此时,PC的USB键盘、USB键盘和显示器为未绑定的设备,那么PC的显示器不会显示游戏画面。Still like the above example, after successfully binding the Bluetooth keyboard, Bluetooth mouse and TV to the game software, if the user starts to send operation commands through the Bluetooth keyboard and Bluetooth mouse (hereinafter collectively referred to as the Bluetooth keyboard and mouse), the input adapter can receive input from the game software. The operation instructions of the Bluetooth keyboard and mouse are sent to the game software based on the corresponding relationship between the Bluetooth keyboard and mouse and the game software. After the game software processes the operation instructions, it can generate corresponding display screen data and send the display screen data to the output adapter. Finally, based on the corresponding relationship between the TV and the game software, the output adapter sends the display screen data to the TV for display, thereby displaying the game screen on the TV. At this point, the PC's USB keyboard, USB keyboard and monitor are unbound devices, so the PC's monitor will not display the game screen.
再如,设智能手机自带有键盘和显示屏,且连接有蓝牙键鼠和电视机等额外增设的设备,且蓝牙键鼠和电视机绑定至智能手机上运行的桌面云客户端。当用户需要操作桌面云客户端时,可通过蓝牙键鼠发送操作指令,输入适配器可接收来自蓝牙键鼠的操作指令,并基于蓝牙键鼠与该游戏软件之间的对应关系,将操作指令发送至桌面云客户端。桌面云客户端将操作指令发送至远端的桌面云服务器(设于终端设备之外),桌面云服务器对操作指令处理后,可返回显示画面数据至桌面云客户端。桌面云客户端将显示画面数据发送至输出适配器。最后,输出适配器基于电视机与该游戏软件之间的对应关系,将显示画面数据发送至电视机进行显示,从而在电视机上显示桌面云客户端的画面。如此一来,用户可通过蓝牙键鼠和电视机对桌面云客户端进行操作,使得桌面云的使用非常简单方便。此时,智能手机的键盘和显示屏为未绑定的设备,即智能手机可以正常使用,智能手机的显示屏不会显示桌面云客户端的画面。For another example, suppose the smartphone has its own keyboard and display screen, and is connected with additional devices such as a Bluetooth keyboard and mouse and a TV, and the Bluetooth keyboard, mouse and TV are bound to the desktop cloud client running on the smartphone. When the user needs to operate the desktop cloud client, they can send the operation command through the Bluetooth keyboard and mouse, and the input adapter can receive the operation command from the Bluetooth keyboard and mouse, and send the operation command based on the corresponding relationship between the Bluetooth keyboard and mouse and the game software. to the desktop cloud client. The desktop cloud client sends the operation instruction to the remote desktop cloud server (located outside the terminal device), and the desktop cloud server can return the display screen data to the desktop cloud client after processing the operation instruction. The desktop cloud client sends the display data to the output adapter. Finally, based on the corresponding relationship between the TV and the game software, the output adapter sends the display screen data to the TV for display, thereby displaying the screen of the desktop cloud client on the TV. In this way, the user can operate the desktop cloud client through a Bluetooth keyboard, mouse and TV, making the use of the desktop cloud very simple and convenient. At this time, the keyboard and display screen of the smartphone are unbound devices, that is, the smartphone can be used normally, and the display screen of the smartphone will not display the screen of the desktop cloud client.
204、在第二应用启动的过程中,提供用户交互接口,并通过用户交互接口接收用户输入的第二选择,第二选择用于指示用户为第二应用设置的第二输入设备和第二输出设备。204. In the process of starting the second application, provide a user interaction interface, and receive a second selection input by the user through the user interaction interface, where the second selection is used to indicate the second input device and the second output set by the user for the second application equipment.
205、根据第二选择,构建第二应用与第二输入设备之间的对应关系以及第二应用与第 二输出设备之间的对应关系。205. According to the second selection, construct the correspondence between the second application and the second input device and the correspondence between the second application and the second output device.
206、在第二应用已启动的情况下,根据从第二输入设备获取的第二操作指令运行第二应用,并将运行第二应用产生的显示画面数据发送至第二输出设备显示。206. In the case that the second application has been started, run the second application according to the second operation instruction obtained from the second input device, and send display screen data generated by running the second application to the second output device for display.
在已经运行第一应用的基础上,若用户还需使用第二应用,可启动终端设备上的第二应用。具体地,关于步骤204至步骤206的说明可参考前述对步骤201至步骤203的相关说明部分,此处不再赘述。需要说明的是,步骤203和步骤206可反复执行,故步骤203和步骤206可能同时执行,即终端设备的操作系统可同时运行第一应用和第二应用。如此一来,在某一用户通过第一输入设备和第一输出设备操作第一应用的同时,另一用户可通过第二输入设备和第二输出设备操作第二应用,即同一个终端设备上的操作系统可同时满足不同用户对不同应用的操作需求。On the basis that the first application is already running, if the user still needs to use the second application, the second application on the terminal device may be started. Specifically, for the description of steps 204 to 206, reference may be made to the above-mentioned relevant descriptions of steps 201 to 203, which will not be repeated here. It should be noted that, step 203 and step 206 may be repeatedly performed, so step 203 and step 206 may be performed simultaneously, that is, the operating system of the terminal device may run the first application and the second application at the same time. In this way, while a user operates the first application through the first input device and the first output device, another user can operate the second application through the second input device and the second output device, that is, on the same terminal device. The operating system can meet the operation needs of different users for different applications at the same time.
依旧如图3所示的例子,若另一用户启动了PC上的某一办公软件,在该办公软件启动的过程中,绑定模块可提供一个可视化界面,该可视化界面中显示了USB键盘、USB鼠标以及显示器等选项(由于蓝牙键盘、蓝牙鼠标和显示器均为已绑定的设备,故可视化界面不再显示这部分设备)。因此,用户可在该界面中,选择绑定至该办公软件的输入设备和输出设备。当用户在该界面中,将USB键盘、USB鼠标和显示器设置为绑定至该办公软件的设备时,则相当于向该界面输入一个选择,该选择可通过该界面发送至绑定模块。Still in the example shown in Figure 3, if another user starts a certain office software on the PC, in the process of starting the office software, the binding module can provide a visual interface, which displays the USB keyboard, Options such as USB mouse and monitor (since the Bluetooth keyboard, Bluetooth mouse and monitor are all bound devices, these devices are no longer displayed in the visual interface). Therefore, the user can select the input device and the output device bound to the office software in the interface. When the user sets the USB keyboard, USB mouse and monitor as devices bound to the office software in this interface, it is equivalent to inputting a selection into this interface, and the selection can be sent to the binding module through this interface.
绑定模块将该选择转发至输入适配器和输出适配器后,输入适配器可确定需要将USB键盘和USB鼠标绑定至该办公软件,则构建USB键盘与该办公软件之间的对应关系,以及USB鼠标与该办公软件之间的对应关系。同样的,输出适配器可确定需要将显示器绑定至该办公软件,则构建显示器与该办公软件之间的对应关系。如此一来,则成功将USB键盘、USB鼠标和显示器绑定至该办公软件。After the binding module forwards the selection to the input adapter and the output adapter, the input adapter can determine that the USB keyboard and USB mouse need to be bound to the office software, and then builds the corresponding relationship between the USB keyboard and the office software, and the USB mouse Correspondence with the office software. Likewise, the output adapter can determine that the monitor needs to be bound to the office software, and then establish a corresponding relationship between the monitor and the office software. In this way, the USB keyboard, USB mouse and monitor are successfully bound to the office software.
在成功将USB键盘、USB鼠标和显示器绑定至该办公软件后,若另一用户开始通过USB键盘和USB鼠标(以下统称为USB键鼠)发送操作指令,输入适配器可接收来自USB键鼠的操作指令,并基于USB键鼠与该办公软件之间的对应关系,将操作指令发送至该办公软件。该办公软件对操作指令进行处理后,可产生相应的显示画面数据,并将显示画面数据发送至输出适配器。最后,输出适配器基于显示器与该办公软件之间的对应关系,将显示画面数据发送至显示器进行显示,从而在显示器上显示办公画面。After successfully binding the USB keyboard, USB mouse and monitor to the office software, if another user starts to send operation commands through the USB keyboard and USB mouse (hereinafter collectively referred to as USB keyboard and mouse), the input adapter can receive the data from the USB keyboard and mouse. operation instructions, and based on the corresponding relationship between the USB keyboard and mouse and the office software, the operation instructions are sent to the office software. After the office software processes the operation instructions, it can generate corresponding display screen data and send the display screen data to the output adapter. Finally, based on the correspondence between the display and the office software, the output adapter sends the display image data to the display for display, thereby displaying the office image on the display.
因此,在同一终端设备上,某一用户可通过蓝牙键鼠和电视机操作游戏软件,且与此同时,另一用户可通过USB键鼠和显示器操作办公软件,二者互不干扰。如此一来,同一终端设备可同时实现某一用户的游戏操作和另一用户的办公操作。Therefore, on the same terminal device, one user can operate the game software through the Bluetooth keyboard and mouse and the TV, and at the same time, another user can operate the office software through the USB keyboard and mouse and the monitor, and the two do not interfere with each other. In this way, the same terminal device can realize the game operation of one user and the office operation of another user at the same time.
207、在第一应用已启动的情况下,再次提供用户交互接口,并通过用户交互接口接收用户输入的第三选择,第三选择用于指示用户为第一应用设置的第三输入设备和第三输出设备。207. Provide the user interaction interface again when the first application has been started, and receive a third selection input by the user through the user interaction interface, where the third selection is used to indicate the third input device and the third input device set by the user for the first application. Three output devices.
经过步骤201至步骤203后,已有第一输入设备和第一输出设备绑定至第一应用。若用户需要修改第一应用所绑定的输入输出设备,可通过第一输入设备向绑定模块发送一个触发指令。绑定模块接收到触发指令后,可再次提供用户交互接口,即绑定模块将用户交互接口发送至第一输出设备上显示。此时,用户交互接口可显示其余未绑定的输入设备和其余未绑定的输出设备等选项,以供用户进行选择。After steps 201 to 203, the first input device and the first output device are bound to the first application. If the user needs to modify the input/output device bound to the first application, a trigger instruction may be sent to the binding module through the first input device. After receiving the trigger instruction, the binding module can provide the user interaction interface again, that is, the binding module sends the user interaction interface to the first output device for display. At this point, the user interaction interface may display options such as remaining unbound input devices and remaining unbound output devices for the user to select.
在绑定模块提供用户交互接口后,用户可在用户交互接口显示的选项中,选择某个(或某些)输出设备和某个(或某些)输入设备绑定至第一应用,即为第一应用设置第三输入设备和第三输出设备,从而替换原先已绑定至第一应用的第一输入设备和第一输出设备。具体地,用户可通过第一输入设备向用户交互接口输入第三选择,第三选择用于指示用户为第一应用设置的第三输入设备和第三输出设备。绑定模块通过用户交互接口接收用户输入的第三选择后,则将第三选择转发至输入适配器和输出适配器。After the binding module provides the user interaction interface, the user can select a certain (or some) output device and a certain (or some) input device to bind to the first application in the options displayed on the user interaction interface, that is, The first application sets the third input device and the third output device, thereby replacing the first input device and the first output device that were originally bound to the first application. Specifically, the user may input a third selection to the user interaction interface through the first input device, and the third selection is used to indicate the third input device and the third output device set by the user for the first application. After receiving the third selection input by the user through the user interaction interface, the binding module forwards the third selection to the input adapter and the output adapter.
208、根据第三选择,将第一应用与第一输入设备之间的对应关系修改为第一应用与第三输入设备之间的对应关系,并将第一应用与第一输出设备之间的对应关系修改为第一应用与第三输出设备之间的对应关系。208. According to the third selection, modify the correspondence between the first application and the first input device to the correspondence between the first application and the third input device, and change the correspondence between the first application and the first output device. The corresponding relationship is modified to the corresponding relationship between the first application and the third output device.
输入适配器接收到第三选择后,可确定需要将第三输入设备绑定至第一应用,则将第一应用与第一输入设备之间的对应关系修改为第一应用与第三输入设备之间的对应关系。同样的,输出适配器接收到第三选择后,可确定需要将第三输出设备绑定至第一应用,则将第一应用与第一输出设备之间的对应关系修改为第一应用与第三输出设备之间的对应关系。此时,相当于成功将第三输出设备和第三输入设备绑定至第一应用。After receiving the third selection, the input adapter can determine that the third input device needs to be bound to the first application, and then modify the corresponding relationship between the first application and the first input device to the relationship between the first application and the third input device. Correspondence between. Similarly, after the output adapter receives the third selection, it can determine that the third output device needs to be bound to the first application, and then modify the correspondence between the first application and the first output device to the first application and the third output device. Correspondence between output devices. At this time, it is equivalent to successfully binding the third output device and the third input device to the first application.
209、根据从第三输入设备获取的第三操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第三输出设备显示。209. Run the first application according to the third operation instruction obtained from the third input device, and send display screen data generated by running the first application to the third output device for display.
若用户需要继续操作第一应用,则需要通过第三输入设备和第三输出设备操作第一应用。关于通过第三输入设备和第三输出设备操作第一应用的过程,可参考步骤203中,通过第一输入设备和第一输出设备操作第一应用的相关说明部分,此处不再赘述。If the user needs to continue to operate the first application, the user needs to operate the first application through the third input device and the third output device. For the process of operating the first application through the third input device and the third output device, reference may be made to the relevant description part of operating the first application through the first input device and the first output device in step 203, which will not be repeated here.
本实施例中,终端设备的操作系统可提供一个用户交互接口,该用户交互接口用于针对至少两个应用分别提供多个输入设备和多个输出设备,故用户可在该用户交互接口上,将第一输入设备和第一输出设备绑定给第一应用,以使得第一输入设备和第一输出设备为第一应用服务。在第一应用已启动的情况下,操作系统可根据来自第一输入设备的操作指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。那么,除了第一输入设备之外的其余输入设备,以及除了第一输出设备之外的其余输出设备,则可以为其它应用服务,从而有效利用设备资源,提高设备的利用率。In this embodiment, the operating system of the terminal device may provide a user interaction interface, and the user interaction interface is used to respectively provide multiple input devices and multiple output devices for at least two applications. The first input device and the first output device are bound to the first application, so that the first input device and the first output device serve the first application. When the first application has been started, the operating system can run the first application according to the operation instruction from the first input device, and send display screen data generated by running the first application to the first output device for display. Then, the remaining input devices except the first input device and the remaining output devices except the first output device can serve other applications, thereby effectively utilizing device resources and improving device utilization.
以上是对本申请实施例提供的终端设备的应用控制方法所进行的详细说明,以下将对本申请实施例提供的终端设备的应用控制装置进行介绍。图4为本申请实施例提供的终端设备的应用控制装置的一个结构示意图,请参阅图4,该装置包括:The above is a detailed description of the application control method of the terminal device provided by the embodiment of the present application, and the application control apparatus of the terminal device provided by the embodiment of the present application will be introduced below. FIG. 4 is a schematic structural diagram of an application control apparatus of a terminal device provided by an embodiment of the present application. Please refer to FIG. 4 . The apparatus includes:
交互模块401,用于提供用户交互接口,用户交互接口用于针对终端设备的至少两个应用分别提供多个输入设备和多个输出设备的选项,并接收用户基于该选项为终端设备的第一应用设置的第一选择,第一选择包括第一输入设备和第一输出设备;The interaction module 401 is configured to provide a user interaction interface, where the user interaction interface is used to respectively provide options of multiple input devices and multiple output devices for at least two applications of the terminal device, and receive a user's first selection of the terminal device based on the options. a first selection of application settings, where the first selection includes a first input device and a first output device;
运行模块402,用于在第一应用启动的情况下,根据第一选择确定第一应用的第一输入设备和第一输出设备,根据从第一输入设备获取的指令运行第一应用,并将运行第一应用产生的显示画面数据发送至第一输出设备显示。The running module 402 is configured to, when the first application starts, determine the first input device and the first output device of the first application according to the first selection, run the first application according to the instruction obtained from the first input device, and The display screen data generated by running the first application is sent to the first output device for display.
在一种可能的实现方式中,用户交互接口还用于接收用户基于该选项为终端设备的第二应用设置的第二选择,第二选择包括第二输入设备和第二输出设备,运行模块402还用于在第二应用启动的情况下,根据第二选择确定第二应用的第二输入设备和第二输出设备, 根据从第二输入设备获取的指令运行第二应用,并将运行第二应用产生的显示画面发送至第二输入设备显示。In a possible implementation manner, the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the option, where the second selection includes a second input device and a second output device, and the operation module 402 It is also used to determine the second input device and the second output device of the second application according to the second selection when the second application is started, run the second application according to the instruction obtained from the second input device, and run the second application. The display screen generated by the application is sent to the second input device for display.
在一种可能的实现方式中,第一应用和第二应用在终端设备中同时运行。In a possible implementation manner, the first application and the second application run simultaneously in the terminal device.
在一种可能的实现方式中,第一输入设备为终端设备的本地输入设备以及终端设备的外接输入设备中的一者;第二输入设备为终端设备的本地输入设备以及终端设备的外接输入设备中的另一者;第一输出设备为终端设备的本地输出设备以及终端设备的外接输出设备中的一者;第二输出设备为终端设备的本地输出设备以及终端设备的外接输出设备中的另一者。In a possible implementation manner, the first input device is one of a local input device of the terminal device and an external input device of the terminal device; the second input device is a local input device of the terminal device and an external input device of the terminal device The other of the first output device is one of the local output device of the terminal device and the external output device of the terminal device; the second output device is the other of the local output device of the terminal device and the external output device of the terminal device. one.
在一种可能的实现方式中,第一输入设备包括第一键盘设备和第一鼠标设备;第二输入设备包括第二键盘设备和第二鼠标设备。In a possible implementation manner, the first input device includes a first keyboard device and a first mouse device; the second input device includes a second keyboard device and a second mouse device.
在一种可能的实现方式中,本地输出设备为终端设备自带的输出设备,外接输出设备为终端设备连接的输出设备。In a possible implementation manner, the local output device is an output device provided by the terminal device, and the external output device is an output device connected to the terminal device.
在一种可能的实现方式中,用户交互接口还用于接收用户基于该选项为终端设备的第一应用设置的第三选择,第三选择包括第三输入设备和第三输出设备,运行模块402还用于在第一应用启动的情况下,根据第三选择确定第一应用的第三输入设备和第三输出设备,根据从第三输入设备获取的指令运行第一应用,并将运行第一应用产生的显示画面发送至第三输入设备显示。In a possible implementation manner, the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the option. The third selection includes a third input device and a third output device, and the module 402 is executed. It is also used to determine the third input device and the third output device of the first application according to the third selection when the first application is started, run the first application according to the instruction obtained from the third input device, and run the first application. The display screen generated by the application is sent to the third input device for display.
需要说明的是,上述装置各模块/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其带来的技术效果与本申请方法实施例相同,具体内容可参考本申请实施例前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information exchange, execution process and other contents among the modules/units of the above-mentioned apparatus are based on the same concept as the method embodiments of the present application, and the technical effects brought by them are the same as those of the method embodiments of the present application, and the specific contents can be Reference is made to the descriptions in the method embodiments shown in the foregoing embodiments of the present application, which will not be repeated here.
图5为本申请实施例提供的终端设备的另一结构示意图。如图5所示,本申请实施例中卸载卡一个实施例可以包括一个或一个以上中央处理器501,存储器502,输入输出接口503,有线或无线网络接口504,电源505。FIG. 5 is another schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 5 , one embodiment of the offload card in this embodiment of the present application may include one or more central processing units 501 , a memory 502 , an input/output interface 503 , a wired or wireless network interface 504 , and a power supply 505 .
存储器502可以是短暂存储或持久存储。更进一步地,中央处理器501可以配置为与存储器502通信,在卸载卡上执行存储器502中的一系列指令操作。The memory 502 may be ephemeral storage or persistent storage. Furthermore, the central processing unit 501 may be configured to communicate with the memory 502 to execute a series of instruction operations in the memory 502 on the offload card.
本实施例中,中央处理器501可以执行前述图2所示实施例中终端设备的操作系统所执行的操作,具体此处不再赘述。In this embodiment, the central processing unit 501 may perform the operations performed by the operating system of the terminal device in the foregoing embodiment shown in FIG. 2 , and details are not repeated here.
本实施例中,中央处理器501中的具体功能模块划分可以与前述图2中所描述的绑定模块、输入适配器合输出适配器等模块的划分方式类似,此处不再赘述。In this embodiment, the division of specific functional modules in the central processing unit 501 may be similar to the division of modules such as binding modules, input adapters, and output adapters described in FIG. 2 , which will not be repeated here.
本实施例中,中央处理器501中的具体功能模块划分也可以与前述图4中所描述的交互模块和运行模块等模块的划分方式类似,此处不再赘述。In this embodiment, the division of specific functional modules in the central processing unit 501 may also be similar to the division of modules such as the interaction module and the operation module described in FIG. 4 , which is not repeated here.
本申请实施例还涉及一种计算机存储介质,包括计算机可读指令,当所述计算机可读指令被执行时,实现如图2所述的方法。Embodiments of the present application also relate to a computer storage medium, including computer-readable instructions, when the computer-readable instructions are executed, the method described in FIG. 2 is implemented.
本申请实施例还涉及一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如图2所述的方法。Embodiments of the present application also relate to a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method described in FIG. 2 .
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通 过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Claims (17)

  1. 一种终端设备的应用控制方法,其特征在于,所述方法包括:An application control method for a terminal device, characterized in that the method includes:
    提供用户交互接口,所述用户交互接口用于针对终端设备的至少两个应用分别提供多个输入设备和多个输出设备的选项,并接收用户基于所述选项为所述终端设备的第一应用设置的第一选择,所述第一选择包括第一输入设备和第一输出设备;Provide a user interaction interface, the user interaction interface is used to respectively provide options of multiple input devices and multiple output devices for at least two applications of the terminal device, and receive the user as the first application of the terminal device based on the options a first selection of settings, the first selection including a first input device and a first output device;
    在所述第一应用启动的情况下,根据所述第一选择确定所述第一应用的所述第一输入设备和所述第一输出设备,根据从所述第一输入设备获取的指令运行所述第一应用,并将运行所述第一应用产生的显示画面数据发送至所述第一输出设备显示。When the first application is started, the first input device and the first output device of the first application are determined according to the first selection, and run according to an instruction acquired from the first input device the first application, and send display screen data generated by running the first application to the first output device for display.
  2. 根据权利要求1所述的方法,其特征在于,所述用户交互接口还用于接收所述用户基于所述选项为所述终端设备的第二应用设置的第二选择,所述第二选择包括第二输入设备和第二输出设备,所述方法还包括:The method according to claim 1, wherein the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the options, the second selection comprising: a second input device and a second output device, the method further comprising:
    在所述第二应用启动的情况下,根据所述第二选择确定所述第二应用的所述第二输入设备和所述第二输出设备,根据从所述第二输入设备获取的指令运行所述第二应用,并将运行所述第二应用产生的显示画面发送至所述第二输入设备显示。When the second application is started, the second input device and the second output device of the second application are determined according to the second selection, and run according to an instruction obtained from the second input device the second application, and send the display screen generated by running the second application to the second input device for display.
  3. 根据权利要求2所述的方法,其特征在于,所述第一应用和所述第二应用在所述终端设备中同时运行。The method according to claim 2, wherein the first application and the second application run simultaneously in the terminal device.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一输入设备为所述终端设备的本地输入设备以及所述终端设备的外接输入设备中的一者;The method according to claim 2 or 3, wherein the first input device is one of a local input device of the terminal device and an external input device of the terminal device;
    所述第二输入设备为所述终端设备的本地输入设备以及所述终端设备的外接输入设备中的另一者;The second input device is the other of a local input device of the terminal device and an external input device of the terminal device;
    所述第一输出设备为所述终端设备的本地输出设备以及所述终端设备的外接输出设备中的一者;The first output device is one of a local output device of the terminal device and an external output device of the terminal device;
    所述第二输出设备为所述终端设备的本地输出设备以及所述终端设备的外接输出设备中的另一者。The second output device is the other of a local output device of the terminal device and an external output device of the terminal device.
  5. 根据权利要求4所述的方法,其特征在于,所述第一输入设备包括第一键盘设备和第一鼠标设备;The method according to claim 4, wherein the first input device comprises a first keyboard device and a first mouse device;
    所述第二输入设备包括第二键盘设备和第二鼠标设备。The second input device includes a second keyboard device and a second mouse device.
  6. 根据权利要求4所述的方法,其特征在于,所述本地输出设备为所述终端设备自带的输出设备,所述外接输出设备为所述终端设备连接的输出设备。The method according to claim 4, wherein the local output device is an output device provided by the terminal device, and the external output device is an output device connected to the terminal device.
  7. 根据权利要求1至6任意一项所述的方法,其特征在于,所述用户交互接口还用于接收所述用户基于所述选项为所述终端设备的第一应用设置的第三选择,所述第三选择包括第三输入设备和第三输出设备,所述方法还包括:The method according to any one of claims 1 to 6, wherein the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the options, the The third selection includes a third input device and a third output device, and the method further includes:
    在所述第一应用启动的情况下,根据所述第三选择确定所述第一应用的所述第三输入设备和所述第三输出设备,根据从所述第三输入设备获取的指令运行所述第一应用,并将运行所述第一应用产生的显示画面发送至所述第三输入设备显示。When the first application is started, the third input device and the third output device of the first application are determined according to the third selection, and run according to an instruction obtained from the third input device the first application, and send the display screen generated by running the first application to the third input device for display.
  8. 一种终端设备的应用控制装置,其特征在于,所述装置包括:An application control device for terminal equipment, characterized in that the device includes:
    交互模块,用于提供用户交互接口,所述用户交互接口用于针对终端设备的至少两个 应用分别提供多个输入设备和多个输出设备的选择,并接收用户基于所述选项为所述终端设备的第一应用设置的第一选择,所述第一选择包括第一输入设备和第一输出设备;An interaction module, configured to provide a user interaction interface, the user interaction interface is used to respectively provide a selection of multiple input devices and multiple output devices for at least two applications of the terminal device, and receive the user for the terminal based on the options. a first selection of a first application setting of a device, the first selection including a first input device and a first output device;
    运行模块,用于在所述第一应用启动的情况下,根据所述第一选择确定所述第一应用的所述第一输入设备和所述第一输出设备,根据从所述第一输入设备获取的指令运行所述第一应用,并将运行所述第一应用产生的显示画面数据发送至所述第一输出设备显示。an operation module, configured to determine the first input device and the first output device of the first application according to the first selection when the first application is started, and determine the first input device and the first output device of the first application according to the first selection. The instruction obtained by the device runs the first application, and sends display screen data generated by running the first application to the first output device for display.
  9. 根据权利要求8所述的装置,其特征在于,所述用户交互接口还用于接收所述用户基于所述选项为所述终端设备的第二应用设置的第二选择,所述第二选择包括第二输入设备和第二输出设备,所述运行模块还用于在所述第二应用启动的情况下,根据所述第二选择确定所述第二应用的所述第二输入设备和所述第二输出设备,根据从所述第二输入设备获取的指令运行所述第二应用,并将运行所述第二应用产生的显示画面发送至所述第二输入设备显示。The apparatus according to claim 8, wherein the user interaction interface is further configured to receive a second selection set by the user for the second application of the terminal device based on the selection, the second selection comprising: a second input device and a second output device, and the running module is further configured to determine the second input device and the second input device of the second application according to the second selection when the second application is started The second output device runs the second application according to the instruction obtained from the second input device, and sends a display screen generated by running the second application to the second input device for display.
  10. 根据权利要求9所述的装置,其特征在于,所述第一应用和所述第二应用在所述终端设备中同时运行。The apparatus according to claim 9, wherein the first application and the second application run simultaneously in the terminal device.
  11. 根据权利要求9或10所述的装置,其特征在于,所述第一输入设备为所述终端设备的本地输入设备以及所述终端设备的外接输入设备中的一者;The apparatus according to claim 9 or 10, wherein the first input device is one of a local input device of the terminal device and an external input device of the terminal device;
    所述第二输入设备为所述终端设备的本地输入设备以及所述终端设备的外接输入设备中的另一者;The second input device is the other of a local input device of the terminal device and an external input device of the terminal device;
    所述第一输出设备为所述终端设备的本地输出设备以及所述终端设备的外接输出设备中的一者;The first output device is one of a local output device of the terminal device and an external output device of the terminal device;
    所述第二输出设备为所述终端设备的本地输出设备以及所述终端设备的外接输出设备中的另一者。The second output device is the other of a local output device of the terminal device and an external output device of the terminal device.
  12. 根据权利要求11所述的装置,其特征在于,所述第一输入设备包括第一键盘设备和第一鼠标设备;The apparatus according to claim 11, wherein the first input device comprises a first keyboard device and a first mouse device;
    所述第二输入设备包括第二键盘设备和第二鼠标设备。The second input device includes a second keyboard device and a second mouse device.
  13. 根据权利要求11所述的装置,其特征在于,所述本地输出设备为所述终端设备自带的输出设备,所述外接输出设备为所述终端设备连接的输出设备。The apparatus according to claim 11, wherein the local output device is an output device provided by the terminal device, and the external output device is an output device connected to the terminal device.
  14. 根据权利要求8至13任意一项所述的装置,其特征在于,所述用户交互接口还用于接收所述用户基于所述选项为所述终端设备的第一应用设置的第三选择,所述第三选择包括第三输入设备和第三输出设备,所述运行模块还用于在所述第一应用启动的情况下,根据所述第三选择确定所述第一应用的所述第三输入设备和所述第三输出设备,根据从所述第三输入设备获取的指令运行所述第一应用,并将运行所述第一应用产生的显示画面发送至所述第三输入设备显示。The apparatus according to any one of claims 8 to 13, wherein the user interaction interface is further configured to receive a third selection set by the user for the first application of the terminal device based on the options, the The third selection includes a third input device and a third output device, and the running module is further configured to determine the third selection of the first application according to the third selection when the first application is started The input device and the third output device run the first application according to the instruction obtained from the third input device, and send a display screen generated by running the first application to the third input device for display.
  15. 一种终端设备,其特征在于,所述终端设备包括:处理器和存储器;A terminal device, characterized in that the terminal device comprises: a processor and a memory;
    所述存储器用于存储计算机执行指令;the memory is used to store computer-executable instructions;
    所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置实现如所述权利要求1至7任一项所述的方法。The processor is configured to execute computer-implemented instructions stored in the memory to cause the communication device to implement the method of any one of claims 1 to 7.
  16. 一种计算机存储介质,其特征在于,包括计算机可读指令,当所述计算机可读指令被执行时,实现如权利要求1至7任一项所述的方法。A computer storage medium, characterized by comprising computer-readable instructions, which, when executed, implement the method according to any one of claims 1 to 7.
  17. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1至7任一项所述的方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 7.
PCT/CN2021/134494 2020-11-30 2021-11-30 Application control method for terminal device, and related device thereof WO2022111732A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011376395.7 2020-11-30
CN202011376395.7A CN114595013A (en) 2020-11-30 2020-11-30 Application control method of terminal equipment and related equipment thereof

Publications (1)

Publication Number Publication Date
WO2022111732A1 true WO2022111732A1 (en) 2022-06-02

Family

ID=81754036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134494 WO2022111732A1 (en) 2020-11-30 2021-11-30 Application control method for terminal device, and related device thereof

Country Status (2)

Country Link
CN (1) CN114595013A (en)
WO (1) WO2022111732A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001097022A2 (en) * 2000-06-13 2001-12-20 Checkout Holdings Limited Multi-user computer
CN102073616A (en) * 2009-11-23 2011-05-25 仁宝电脑工业股份有限公司 Personal computer system and operation method thereof for multiple outputs
US20110246690A1 (en) * 2010-03-31 2011-10-06 Thomas Lang Computing arrangement
CN108632448A (en) * 2017-03-17 2018-10-09 三星电子株式会社 Electronic equipment for controlling audio output and its operating method
CN109308175A (en) * 2018-11-02 2019-02-05 盛子望 The electronic device and method of Display on the same screen are carried out using mobile device and display equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001097022A2 (en) * 2000-06-13 2001-12-20 Checkout Holdings Limited Multi-user computer
CN102073616A (en) * 2009-11-23 2011-05-25 仁宝电脑工业股份有限公司 Personal computer system and operation method thereof for multiple outputs
US20110246690A1 (en) * 2010-03-31 2011-10-06 Thomas Lang Computing arrangement
CN108632448A (en) * 2017-03-17 2018-10-09 三星电子株式会社 Electronic equipment for controlling audio output and its operating method
CN109308175A (en) * 2018-11-02 2019-02-05 盛子望 The electronic device and method of Display on the same screen are carried out using mobile device and display equipment

Also Published As

Publication number Publication date
CN114595013A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
US20230289131A1 (en) Method and system for dynamically generating different user environments with secondary devices with displays of various form factors
WO2020221056A1 (en) Image drawing method, apparatus, electronic device and computer storage medium
JP3172006U (en) Screen transfer control device for smartphone display
US20110066971A1 (en) Method and apparatus for providing application interface portions on peripheral computing devices
EP3188006B1 (en) Composite graphical interface with shareable data-objects
US9864644B2 (en) System and method for transport layer agnostic programming interface for use with smartphones
CN112316417B (en) Control equipment connection method, device, equipment and computer readable storage medium
CN114281288A (en) Screen projection processing method and device and electronic equipment
CN107870754A (en) A kind of method and device of the content shown on control device
WO2022135156A1 (en) Distributed cross-device collaboration method, and electronic device and communication system
JP7018110B1 (en) Mobile device dock
JP2023547821A (en) Control method and device, and electronic device
EP3704861B1 (en) Networked user interface back channel discovery via wired video connection
CN111143017B (en) Cloud operation system interaction processing method, client and cloud operation system
WO2022111732A1 (en) Application control method for terminal device, and related device thereof
CN112274910A (en) Virtual key configuration method, virtual key method and related device
CN115421846A (en) Cross-device control method, control device, electronic device and readable storage medium
CN112272223B (en) Application running method and device, server and computer readable storage medium
WO2022160612A1 (en) Interaction method with vehicle-mounted system of vehicle, storage medium, and mobile terminal
KR102626168B1 (en) Display apparatus and the control method thereof
CN116347148A (en) Screen projection method and display device
JPWO2016080428A1 (en) Information processing system, information processing method, information processing apparatus, control method thereof, and control program
US11544083B2 (en) Display apparatus and control method thereof
US20240004600A1 (en) Display apparatus and operating method of the display apparatus
JP2022015836A (en) Program and device for screen sharing

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

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

Country of ref document: EP

Kind code of ref document: A1