In the current era, there numerous interfaces that enable intuitive and natural ways of human-computer communication. With the increase in computational developments and technical knowledge, the number and types of devices used to provide input to a computer has increased and will continue to do so as new concepts of interaction are developed. In the past, to support a new type of device, significant portions of the operating system (OS) had to be rewritten, sometimes taking several years of development time. However, the rate at which new types of input devices are being developed is increasing, thereby making the long OS development time less feasible.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Embodiments described herein are directed to an extensible input stack for processing input device data received from a plurality of different input devices attached to a computing device. The extensible input stack comprises a plurality of stack layers. Each layer of the stack performs a particular set of processing with respect to the input device data, among other operations. Each stack layer comprises an interface, which is used to provide and/or or receive data from the input device and/or other stack layers. Each stack layer is extensible to include additional functionality to support new input devices. By separating out the functionality performed by the input stack into separate stack layers, and having each layer accessible via an interface, the functionality of the input stack may be extended to support any type of input device (whether a past, present or future input device).
Further features and advantages of the embodiments disclosed herein, as well as the structure and operation of various embodiments, are described in detail below with reference to the accompanying drawings. It is noted that the subject matter described is not limited to the specific embodiments described herein. Such embodiments are presented herein for illustrative purposes only. Additional embodiments will be apparent to persons skilled in the relevant art(s) based on the teachings contained herein.
The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments of the present application and, together with the description, further serve to explain the principles of the embodiments and to enable a person skilled in the pertinent art to make and use the embodiments.
The features and advantages of the present subject matter will become more apparent from the detailed description set forth below when taken in conjunction with the drawings, in which like reference characters identify corresponding elements throughout. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the corresponding reference number.
The present specification and accompanying drawings disclose one or more embodiments that incorporate the features of the present subject matter. The scope of the present subject matter is not limited to the disclosed embodiments. The disclosed embodiments merely exemplify the present subject matter, and modified versions of the disclosed embodiments are also encompassed by the present subject matter. Embodiments of the present subject matter are defined by the claims appended hereto.
References in the specification to “one embodiment,” “an embodiment,” “an example embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
Numerous exemplary embodiments are described as follows. It is noted that any section/subsection headings provided herein are not intended to be limiting. Embodiments are described throughout this document, and any type of embodiment may be included under any section/subsection. Furthermore, embodiments disclosed in any section/subsection may be combined with any other embodiments described in the same section/subsection and/or a different section/subsection in any manner.
The number and types of input devices to provide input to a computing device continues to increase as new concepts of interaction are developed. Prototyping and productizing new input devices can be a laborious process. To support a new type of input device, significant portions of the operating system (OS) often have to be rewritten. In some cases, a parallel input stack has to be built, or the new input device has to be built into an existing input stack through close cooperating between the input device developers and the OS team. Augmenting, modifying, or creating a new input type in an existing OS can lead to a new OS version. Writing kernel mode drivers and debugging crash dumps can consume much of the developer's time. In other cases, a third-party developer of a new input device has to develop and distribute a component to handle input from the new input device at the application level, requiring application developers to package the component as part of their applications.
Embodiments described herein are directed to an extensible input stack for processing input device data received from a plurality of different input devices attached to a computing device. The extensible input stack comprises a plurality of stack layers. Each of the stack layers performs a particular set of processing with respect to the input device data, among other operations. Each of the stack layers comprises an interface, which is used to provide and/or or receive data from the input device and/or other stack layers. Each of the stack layers is extensible to include additional functionality to support new input devices. By separating out the functionality performed by the input stack into separate stack layers, and having each layer accessible via an interface, the functionality of the input stack may be easily extended to support any type of input device (whether it be a past, present or future input device).
Each stack layer may be individually customized to support new functionality (e.g., functionality to process input data from a newly-developed input device not previously supported by the OS). Functionality for a particular stack layer may be extended by installing and dynamically loading a software component, such as an “add-on,” “extension,” or “plug-in” that incorporates the new functionality and interfaces with programming interface(s) of the particular stack layer.
A. Extensible Input Stack
Embodiments for extensible input stacks may be configured in various ways, in embodiments. For instance,
Computing device 102 may comprise any of a wide variety of computing devices mentioned herein or otherwise known, including but not limited to a desktop computer, a tablet computer, a laptop computer, a smart phone, etc. However, these examples are not intended to be limiting and computing device 102 may include other types of devices other than those listed herein.
Input device(s) 104 comprise one or more devices that operate to generate input device data in response to a user's manipulation or control thereof. Such user input device data is passed via one or more device drivers 114 to computing device 102 for processing thereof. Depending upon the implementation, input device(s) 104 may include a touch screen (e.g., a touch screen integrated with output device(s) 106), a keyboard, a keypad, a mouse, a touch pad, a trackball, a joystick, a pointing stick, a wired glove, a motion tracking sensor, an eye-tracking device, a microphone, a game controller or gamepad, or a video capture device such as a camera. However, these examples are not intended to be limiting and input device(s) 104 may include other types of devices other than those listed herein, including yet-to-be-developed input device types. Depending upon the implementation, input device(s) 104 may be integrated within the same physical structure or housing of computing device 102 (such as an integrated touch screen, touch pad, or keyboard on a computing device) or physically separate from a physical structure or housing of computing device 102 and connected thereto via a suitable wired and/or wireless connection.
Output device(s) 106 comprise one or more devices to which content, such as text, video, and images, can be rendered so that it will be visible to a user of computing device 102. Depending upon the implementation of computing device 102, output device(s) 106 may comprise a device that is integrated within the same physical structure or housing of computing device 102 and/or input device(s) 104 or may be device(s) that are physically separate from a structure or housing of computing device 102 and/or input device(s) 104 and connected thereto via a suitable wired and/or wireless connection.
As further shown in
Memory 110 comprises one or more computer-readable memory devices that operate to store computer programs and data. Memory 110 may be implemented using any of a wide variety of hardware-based, volatile computer-readable memory devices including, but not limited to, random access memory (RAM) devices and/or non-volatile computer-readable memory devices, including but not limited to, read-only memory (ROM) devices, solid state drives, hard disk drives, magnetic storage media such as magnetic disks and associated drives, optical storage media such as optical disks and associated drives, and flash memory devices such as USB flash drives.
As shown further shown in
Device driver(s) 114 are software applications that are configured to interface input device(s) 104 with operating system 112. In particular, device driver(s) 114 provide data generated from corresponding input device(s) 104 (and that is in an input device-specific format used by input device(s) 104) to operating system 112. In certain implementations, device driver(s) 114 may translate the data generated by input device(s) 112 into a format that is compatible with operating system 112. Each of device driver(s) 114 may also implement one or more function(s) (also referred to as “routine(s)”) that contain code specific to corresponding input device(s) 104. Each of the function(s), when called, for example by operating system 112, cause input device(s) 104 to carry out one or more actions corresponding to the function(s). Device driver(s) 114 may be developed and supplied by the developer of input device(s) 104, or alternatively, may be developed and supplied by the developer of operating system 112.
The data provided to operating system 112 may comprise input device data generated by input device(s) 104. The input device data may be provided to input stack 116 for further processing. The input device data may indicate particular events that occur with respect to input device(s) 104, such as events that indicate that input device(s) 104 have been attached to or removed from computing device 102, events that indicate that a particular user interface element (e.g., a button, a key, touch screen, microphone, other known or yet-to-be-developed input element, etc.) of the input device(s) 104 has been interacted with, etc.
Input stack 116 processes input device data generated by input device(s) 104. Input stack 116 comprises a plurality of stack layers 122. Each layer of plurality of stack layers 122 is configured to perform a corresponding designated set of operations with respect to the input device data. For example, a first layer of plurality of stack layers 122 may be configured to convert the input device data into a format suitable for handling by other layers of plurality of stack layers 122. A second layer of plurality of stack layers 122 may determine a type of the input device data (e.g., spatial input or non-spatial input data, touch input or non-touch input data, etc.). For example, the second layer may communicate with compositor(s) 118 to determine which target component(s) 120 a user is interacting with via input device(s) 104. Examples of target component(s) 120 include, but are not limited to, a software application, a shell, or a service executing on computing device 102 and maintained by operating system 112.
Compositor(s) 118 may include processes that compose/render windows, icons, buttons, or other display objects that are associated with target component(s) 120 or operating system 112 and that are rendered on a display device (e.g., output device(s) 106) coupled to computing device 102. Compositor(s) 118 may determine the target component that a user is interacting with based on the display object being interacted by the user via input device(s) 104. Example of compositor(s) 118 include, but are not limited to the Direct Composition compositor and Desktop Windows Manager, both provided by Microsoft Corporation®.
In another example, a third layer of plurality of stack layers 122 may determine a target component (e.g., target component(s) 120) maintained by operating system 112 to which the input device data is to be provided. In still another example, a fourth layer of plurality of stack layers 122 may determine a format in which the input device data is to be provided to the determined target component and convert the input device data into the determined format. In yet a further example, a fifth layer of the plurality of stack layers 122 may provide the formatted input device data to target component(s) 120). Any number, combination, and variety of types of stack layers may be included in stack layers 122, in embodiments.
The input device data may be passed from device driver(s) 114 to input stack 116 and/or between each layer of plurality of stack layers 122 via interface(s) 124. For example, each layer of plurality of stack layers 122 may be associated with a particular interface of interface(s) 124 that is configured to receive input device data from device driver(s) 114 or receive and/or provide data (such as input device data) to and/or from another layer of plurality of layers stack 122. In accordance with an embodiment, one or more of interface(s) 124 is an application programming interface (API). In other embodiments, one or more of interface(s) 124 may be another type of programming interface.
By separating out the functionality performed by input stack 116 into separate stack layers, and having each layer accessible (e.g., invokable) via an interface (e.g., interface(s) 124), the functionality of each of plurality of stack layers 122 may be easily extended to support any type of input device (whether it be a past, present or future input device), thereby making input stack 116 extensible. Each stack layer may be individually customized to support new functionality (e.g., functionality to process input data from a newly-developed input device not previously supported by operating system 112). Functionality for a particular stack layer may be extended by installing and loading a software component, such as an “add-on,” “extension,” or “plug-in” that incorporates the new functionality and interfaces with interface(s) 124 for the particular layer. In some implementations, only a subset of stack layers may be extended with new functionality, while the remaining layers may be reused without making any modifications thereto, thereby minimizing the amount of modifications required for input stack 116 to support the particular input device.
As mentioned above, stack layers 122 may be configured in various ways. For instance,
Raw input data processing layer 202 is configured to receive input device data 201 generated by input device 204 via device driver 214, which provides input device data 201 to data interface 225. Input device data 201 may comprise a payload that indicates particular events that occur with respect to input device 204, such as events that indicate that input device 204 has been attached to or removed from a computing device in which input stack 216 is included (e.g., computing device 102, as shown in
Input processing layer 206 is configured to receive the converted input device data via second communication interface 228. Input processing layer 206 is configured to determine whether the converted input device data is at least one of spatial input data or non-spatial input data. For example, input device 204 may provide an identifier in a header of the input device data that specifies the type of data included in the payload (e.g., spatial input data or non-spatial input data). Spatial input data is data that is routed to a target component (e.g., target component(s) 220) based on a hit test, where position information (e.g., x and y coordinates) included in the payload of the input device data is used to determine which display object is being interacted with by the user via input device 204. Input devices that may be classified as spatial input devices include, but are not limited to, a mouse, a touch screen, a stylus, a touchpad and/or the like. Non-spatial input data is data that is routed to a target component that is currently in focus (e.g., an application currently being used by the user or in which its window has focus). Input devices that may be classified as non-spatial input devices include, but are not limited to, a keyboard, a gamepad and/or the like. It is noted that in particular implementations, an input device may be configured to provide both spatial input data and non-spatial input data. Second communication interface 228 provides the converted input device data and/or the identifier specifying whether input device 204 is a spatial device or a non-spatial device to third communication interface 230. For example, second communication interface 228 of input processing layer 206 may issue an API call comprising the converted input device data and/or the identifier to third communication interface 230 of input routing layer 208.
Input routing layer 208 is configured to receive the converted input device data and/or the identifier via third communication interface 230. Input routing layer 208 is configured to determine target component(s) 220 to which the converted input device data is to be provided based on whether the converted input device data is spatial input data or non-spatial input data. For example, if the converted input device data is spatial input data, input routing layer 208 may provide particular data included in the converted input device data to a compositor configured to perform a hit test (e.g., first compositor 218). Such data includes, but is not limited to, requests to perform a hit test and/or position information. First compositor 218 may use such data to perform a hit test to determine which display object is being interacted with by the user via input device 204 and determine target component(s) 220 associated with that display object. After determining target component(s) 220, first compositor 218 may provide a response to input routing layer 208 specifying target component(s) 220 to which the converted input device data is to be provided. An example of first compositor 218 includes, but is not limited to, the Direct Composition compositor by Microsoft Corporation®. If the converted input device data is non-spatial input data, input routing layer 208 may provide particular data included in the converted input device data (e.g., focus change notifications) to a compositor configured to process such notifications (e.g., second compositor 224). Second compositor 224 may process the focus change notifications to determine which target component(s) 220 are being interacted with by the user via input device 204. Second compositor 224 may provide a response to input routing layer 208 specifying target component(s) 220 to which the converted input device data is to be provided. An example of second compositor 224 includes, but is not limited to, the Desktop Windows Manager by Microsoft Corporation®. Third communication interface 230 provides the converted input device data and/or an identifier specifying target component(s) 220 to which the converted input device is to be provided to fourth communication interface 232 of contextual processing layer 212. For example, third communication interface 230 of input routing layer 208 may issue an API call comprising the converted input device data and/or the identifier to fourth communication interface 232 of contextual processing layer 212.
Contextual processing layer 212 is configured to receive the converted input device data and/or the identifier specifying target component(s) 220 via fourth communication interface 232. Contextual processing layer 212 is configured to determine a format in which the converted input device data is to be provided to determined target component(s) 220 and convert the converted input device data into that format. For example, context processing layer 212 may query determined target component(s) 220 to determine the format supported thereby. For instance, target component(s) 220 may specify that they support a format used to provide input device data from a mouse. If the converted input device data received by contextual processing layer 212 is in a format used by a different type of input device (e.g., virtual reality eyeglasses, such as the HoloLens™ provided by Microsoft Corporation® or a dial device, such as the Surface Dial™ by Microsoft Corporation®), contextual processing layer 212 converts the converted input device data into the format supported by target component(s) 220 (e.g., the input device data provided by the other type of device (e.g., a HoloLens™ or Dial™) is converted into mouse input device data, thereby enabling the converted input device data to be utilized by target component(s) 220. Fourth communication interface 232 provides the formatted input device data and/or the identifier specifying target component(s) 220 to fifth communication interface 234 of application input layer 214. For example, fourth communication interface 232 of contextual processing layer 212 may issue an API call comprising the formatted input device data and/or the identifier to fifth communication interface 234 of application input layer 212.
Application input layer 214 is configured to receive the formatted input device data and/or the identifier specifying target component(s) 220 via fifth communication interface 234 and provide the formatted input device data to target component(s) 220 specified by the identifier. For example, fifth communication interface 234 may call one or more APIs that target component(s) 220 use to receive and/or process the formatted input device data. For instance, in a scenario in which the formatted input device data is representative of a user clicking a particular button of a mouse device, the API called by fifth communication interface 234 may communicate an event to target component(s) 220 that specifies that the user has clicked the button on the mouse device.
Each of programming interfaces 227, 229, 231, 233, and 235 may be used to extend the functionality of its associated stack layer. For example, first programming interface 227 may be used to extend the functionality of raw input data processing layer 202, second programming interface 229 may be used to extend the functionality of input processing layer 206, third programming interface 231 may be used to extend the functionality of input routing layer 208, fourth programming interface 233 may be used to extend the functionality of contextual processing layer 212, fifth programming interface 235 may be used to extend the functionality of application input layer 214.
Functionality for a particular stack layer may be extended by installing and/or loading a software component, such as an “add-on,” “extension,” or “plug-in” (which may be implemented as a dynamic link library (DLL) that incorporates the new functionality and interfaces with the programming interface(s) of the particular layer.
For example, a developer may extend the functionality of raw input data processing layer 202 to support a new type of input device that generates data in accordance with a device-specific protocol previously not supported by raw input data processing layer 202. In particular, a software component may be installed and/or loaded via programming interface 227 that causes raw input data processing layer 202 to support such functionality.
In another example, a developer may extend the functionality of input processing layer 206 to support new types of data (e.g., other than spatial and/or non-spatial input data). In particular, a software component may be installed and/or loaded via programming interface 229 that causes input processing layer 206 to support such functionality.
In yet another example, a developer may extend the functionality of input routing layer 208 to support additional routing policies. For instance, one policy may specify that input device data determined to be spatial input data (or some other type of data) is to be routed to a compositor that determines a target component to which the input device is to be provided based on processing focus notifications (as opposed to performing a hit test). Another policy may specify that input device data determined to be non-spatial input data (or some other type of data) is to be routed to a compositor that determines a target component to which the input device data is to be provided based on a hit test (as opposed to processing focus notifications). In particular, a software component may be installed and/or loaded via programming interface 231 that causes input routing layer 208 to support the functionality described above.
In still another example, a developer may extend the functionality of contextual processing layer 212 to support new formats in which the input device can be formatted. In particular, a software component may be installed and/or loaded via programming interface 233 that causes contextual processing layer 212 to support such functionality.
In a further example, a developer may extend the functionality of application input layer 214 to support new and/or custom input events that are to be provided to a target component. The new and/or custom input events may be for new types of devices not previously supported by input stack 216. In particular, a software component may be installed and/or loaded via programming interface 235 that causes application input layer 214 to support such functionality.
In accordance with an embodiment, each of programming interface(s) 227, 229, 231, 233, and 235 are APIs.
By organizing input stack 216 and processing the input device data in the manner described above, new types of input devices may be supported by operating system 112 and input stack 216 without having to rewrite significant portions thereof. That is, significant portions of input stack 216 are reusable, thereby minimizing the development time to support such new devices. For example, in the example provided above, a developer may simply extend the functionality of raw input data processing layer 202 (via a software component installed and/or loaded via programming interface 227) in order to support the new type of input device data generated by such new devices. The functionality of the other layers may not need to be extended (via software components installed and/or loaded via programming interfaces 229, 231, 233, 235) due to raw input data processing layer 202 converting the new type of input device data into a known format suitable for processing by the other layers. It is noted that the foregoing is just one example for extending the functionality of input stack 216 and that in other implementations, the functionality of one or more other layers may be extended.
Accordingly, an input stack may process input device data in many ways. For example,
Flowchart 300 begins with step 302. In step 302, a data interface of a raw input data processing layer of an extensible input stack receives input device data generated by an input device and that is in accordance with a protocol specific to the an input device. The data interface is configured to interface with a device driver of the input device to receive the input device data from the input device. For example, with reference to
At step 304, the raw input data processing layer converts the input device data to a format suitable for handling by at least one further layer in the extensible input stack. For example, with reference to
At step 306, a communication interface of an input processing layer of the extensible input stack receives the converted input device data. For example, with reference to
At step 308, the input processing layer determines that the converted input device data is one of a first type or a second type for routing to a corresponding operating system (OS) target component. For example, with reference to
In accordance with one or more embodiments, the first type is spatial input data and the second type is non-spatial input data. In other embodiments, the input device data may be categorized in other ways, and/or into any number of categories/types.
Further layers may be included in stack 416 of
Flowchart 500 begins with step 502. In step 502, a communication interface of an input routing layer of the extensible input stack receives the converted input device data. For example, with reference to
In step 504, in response to the converted input device data being determined to be the first type, the input routing layer determines a first target component of the operating system to which the converted input device data is to be provided. For example, with reference to
In accordance with one or more embodiments, to determine the first target component, the input routing layer provides a hit test request included in the converted input device data to a first compositor of the OS. The input routing layer receives a first response from the first compositor that specifies the first target component. For example, with reference to
In step 506, in response to the converted input device data being determined to be the second type, the input routing layer determines a second target component of the operating system to which the converted input device data is to be provided. For example, with reference to
In accordance with one or more embodiments, to determine the second target component, the input routing layer provides at least one focus change notification included in the converted input device data to a second compositor of the OS and receives a first response from the second compositor that specifies the second target component. For example, with reference to
Flowchart 700 begins with step 702. In step 702, a communication interface of a contextual processing layer of the extensible input stack receives the converted input device data. For example, with reference to
In step 704, in response to the converted input device data being determined to be the first type, the contextual processing layer determines a first component-specific format in which the converted input device data is to be provided to the first target component. For example, with reference to
In step 706, the contextual processing layer converts the converted input device data into the first component-specific format to generate first formatted input device data. For example, with reference to
In step 708, an application input layer of the extensible input stack provides the first formatted input device data to the first target component. For example, with reference to
In step 710, in response to the converted input device data being determined to be the second type, the contextual processing layer determines a second component-specific format in which the converted input device data is to be provided to the second target component. For example, with reference to
In step 712, the contextual processing layer converts the converted input device data into the second component-specific format to generate second formatted input device data. For example, with reference to
In step 714, the application input layer provides the second formatted input device data to the second target component.
In accordance with an embodiment, at least one of the first target component or the second target component is one of an application, a shell, or a service maintained by the operating system.
B. Dynamic Loading of Software Component(s)
Computing device 902 may include a software component development system 910, which may be used by a developer to develop software components (e.g., “add-on,” “extension,” or “plug-in”) that are configured to extend the functionality of an input stack (e.g., input stack 916). For example, software component development system 910 may include a source code editor 912 and a package builder 914. Source code editor 912 and package builder 914 may be included in a same computing device, or one or more of source code editor 912 and package builder 914 may be implemented in or more computing devices separate from those of others of source code editor 912 and package builder 914.
Computing device 902 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a Microsoft® Surface® device, a personal digital assistant (PDA), a laptop computer, a notebook computer, a tablet computer such as an Apple iPad™, a netbook, etc.), a mobile phone, a wearable computing device, or other type of mobile device, or a stationary computing device such as a desktop computer or PC (personal computer), or a server.
A developer may interact with source code editor 912 to enter and modify program code when generating source code for a software component. For instance, the developer may add, modify, or delete program code text using source code editor 912 such as by typing, by voice input, by selecting suggested code blocks, etc. When complete, or at other intervals, the user may be enabled to save the program code by interacting with a “save” button or other user interface element. Source code editor 912 may be a browser based editor, a code editor integrated in a desktop or mobile application, or any other type of code editor.
A developer may also interact with source code editor 912 to enter and/or modify a manifest that describes the software component(s) and/or specifies the stack layer(s) to utilize the software component(s). The manifest may be written using a human-readable markup language, such as Extensible Markup Language (XML).
For instance, as shown in
The developer may upload package 920 to data store(s) 906 via network 908. Data store(s) 906 may comprise a repository of software application(s), operating system update(s), device driver(s), and/or software component package(s) 920 developed by one or more developers that are released and/or made available for downloading by the public (e.g., end users).
In accordance with an embodiment, software component package(s) 920 may be automatically downloaded (e.g., by computing device 102) upon an input device (e.g., input device 104) being attached to computing device 102. It is noted that certain component(s) of computing device 102 that are shown in
As described above in Subsection A, input device data generated by input device 102 may comprise an event that indicates that input device 102 has been attached to computing device 102. A raw input data processing layer (e.g., raw input data processing layer 202) of input stack 216, after converting the input device data into a format suitable for handling by other stack layer(s) of input stack 216, may determine that such an event is included in the input device data and cause operating system 112 to query data store(s) 906. For example, as shown in
Upon receiving the software component package(s), operating system 112 may extract the software component(s) (i.e., the library file(s) corresponding to the software component(s)) and manifest included therein and install each of the software component(s) for their corresponding stack layer. For example, suppose the software component packages comprise three software components A, B, and C. The manifest may specify that software component A is to be installed for input processing layer 206, software component B is to be installed for input routing layer 208, and software component C is to be installed for contextual processing layer 212. In this example, operating system 112 may install software component A via second programming interface 229, install software component B via third programming interface 231, and install software component C via fourth programming interface 233.
In accordance with an embodiment, software component(s) installed on computing device 102 may be loaded based on one or more activities being performed by the user. For example, software component(s) may be loaded based on application being used by the user, a particular feature of an application being used by the user and/or the input device being used by the user. For instance, if user loads a gaming application and a high-end gaming mouse device is attached to computing device 102 (i.e., a device that comprises an additional one or more buttons that the conventional one or two-button mouse device), operating system 112 may load software component(s) that extend the functionality of stack layer(s) of input stack 116 to support the additional button(s). When the user closes the gaming application, operating system 112 may unload such software component(s) (e.g., from memory 110). If a user loads another application or activates a feature or mode of the gaming application that requires other software component(s), operating system 112 may unload the previously-loaded software component(s) and/or load additional software components that extend the functionality of stack layer(s) of input stack 116 to support the other application or feature or mode of the gaming application.
In another example, if a user loads an application that support a three-dimensional coordinate system (e.g., a virtual reality application) and a virtual reality input device (e.g., a virtual reality headset and/or controller) that is operable to provide 3D inputs is being used by the user, operating system 112 may load software component(s) that extend the functionality of stack layer(s) of input stack 116 to support processing of the three-dimensional coordinate system. When the user closes the application, operating system 112 may unload the such software component(s). If a user loads another application or activates a feature or mode of the virtual reality application that requires other software component(s), operating system 112 may unload the previously-loaded software component(s) (e.g., from memory 110) and/or load additional software components that extend the functionality of stack layer(s) of input stack 116 to support the other application or feature or mode of the virtual reality application.
It is noted that the foregoing activities are just a few examples for dynamically loading and unloading software components that extend the functionality of input stack 116 and that software components may be dynamically loaded and/or unloaded based on other types of user activities.
By dynamically loading and unloading software component(s) based on activit(ies) being performed by the user, the amount of memory (e.g., memory 110) being utilized by computing device 102 may be reduced, thereby increasing the efficiency of computing device 102.
Accordingly, software component(s) that extend the functionality of an input stack may be loaded dynamically in many ways. For instance,
Flowchart 1000 begins with step 1002. In step 1002, an input device coupled to a computing device is determined. For example, with reference to
At step 1004, an application operable on the computing device that is interacted with via the input device is determined. For example, with reference to
At step 1006, at least one software component that extends the functionality of at least one stack layer of a plurality of stack layers of an extensible input stack to support operability of the determined input device for the application is determined. The extensible input stack is configured to processing input device data generated by the input device. For example, with reference to
At step 1008, the software component for the at least one stack layer is loaded. For example, with reference to
In accordance with one or more embodiments, a second application operable on the computing device that is interacted with via the input device is determined, at least a second software component that extends the functionality of at least one stack layer of a plurality of stack layers of the extensible input stack to support operability of the determined input device for the second application is determined, and the second software component for the at least one stack layer is loaded. For example, with reference to
In accordance with one or more embodiments, the first software component is unloaded. For example, with reference to
In accordance with one or more embodiments, the plurality of stack layers comprises a raw input data processing layer that is configured to convert input device data received from the input device into a format suitable for handling by at least one further layer of the extensible input stack.
In accordance with one or more embodiments, the plurality of stack layers further an input processing layer configured to determine that the converted input device data is one of a first type or a second type for routing to a corresponding operating system (OS) target component.
In accordance with one or more embodiments, the plurality of stack layers further comprises an input routing layer configured to determine a first target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the first type. and determine a second target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the second type.
In accordance with one or more embodiments, the plurality of stack layers further comprises a contextual processing layer configured to determine a first component-specific format in which the converted input device data is to be provided to the first target component and convert the converted input device data into the first component-specific format to generate first formatted input device data in response to the converted input device data being determined to be the first type. and determine a second component-specific format in which the converted input device data is to be provided to the second target component and convert the converted input device data into the second component-specific format to generate second formatted input device data in response to the converted input device data being determined to be the second type.
In accordance with one or more embodiments, the plurality of stack layers further comprises an application input player configured to provide the first formatted input device data to the first target component in response to the converted input device data being determined to be the first type and provide the second formatted input device data to the second target component in response to the converted input device data being determined to be the second type.
Computing device 102, input device(s) 102, output device(s) 106, processor(s) 108, memory 110, operating system 112, device driver(s) 114, input stack 116, compositor(s) 118, target component(s) 120, plurality of stack layers 124, interface(s) 124, input device 204, memory 210, device driver 214, input stack 216, raw input data processing layer 202, input processing layer 206, input routing layer 208, contextual processing layer 212, application input layer 214, data interface 225, first communication interface 226, second communication interface 228, third communication interface 230, fourth communication interface 232, fifth communication interface 234, first programming interface 227, second programming interface 229, third programming interface 231, fourth programming interface 233, fifth programming interface 235, first compositor 218, second compositor 224, target component(s) 220, input device 404, memory 410, device driver 414, input stack 416, raw input data processing layer 402, input processing layer 406, data interface 425, first communication interface 426, second communication interface 428, input routing layer 608, third communication interface 630, first compositor 618, second compositor 624, contextual processing layer 812, application input layer 814, fourth communication interface 832, fifth communication interface 834, target component 802, second target component 804, computing device 902, data store(s) 906, software component development system 910, code editor 912, package builder 914, flowchart 300, flowchart 500, flowchart 700 and/or flowchart 1000 may be implemented in hardware, or hardware with any combination of software and/or firmware, or may be implemented as hardware logic/electrical circuitry, such as being implemented together in a system-on-chip (SoC). The SoC may include an integrated circuit chip that includes one or more of a processor (e.g., a central processing unit (CPU), microcontroller, microprocessor, digital signal processor (DSP), etc.), memory, one or more communication interfaces, and/or further circuits, and may optionally execute received program code and/or include embedded firmware to perform functions. Processor(s) 108, operating system 112, device driver(s) 114, input stack 116, compositor(s) 118, target component(s) 120, plurality of stack layers 124, interface(s) 124, device driver 214, input stack 216, raw input data processing layer 202, input processing layer 206, input routing layer 208, contextual processing layer 212, application input layer 214, data interface 225, first communication interface 226, second communication interface 228, third communication interface 230, fourth communication interface 232, fifth communication interface 234, first programming interface 227, second programming interface 229, third programming interface 231, fourth programming interface 233, fifth programming interface 235, first compositor 218, second compositor 224, target component(s) 220, device driver 414, input stack 416, raw input data processing layer 402, input processing layer 406, data interface 425, first communication interface 426, second communication interface 428, input routing layer 608, third communication interface 630, first compositor 618, second compositor 624, contextual processing layer 812, application input layer 814, fourth communication interface 832, fifth communication interface 834, first target component 802, second target component 804, software component development system 910, code editor 912, package builder 914 flowchart 300, flowchart 500, flowchart 700, and/or flowchart 1000, may also be implemented as computer program code configured to be executed in one or more processors and stored in a computer readable storage medium.
The illustrated mobile device 1100 can include a controller or processor referred to as processor circuit 1110 for performing such tasks as signal coding, image processing, data processing, input/output processing, power control, and/or other functions. Processor circuit 1110 is an electrical and/or optical circuit implemented in one or more physical hardware electrical circuit device elements and/or integrated circuit devices (semiconductor material chips or dies) as a central processing unit (CPU), a microcontroller, a microprocessor, and/or other physical hardware processor circuit. Processor circuit 1110 may execute program code stored in a computer readable medium, such as program code of one or more applications 1114, operating system 1112, any program code stored in memory 1120, etc. Operating system 1112 can control the allocation and usage of the components 1102 and support for one or more application programs 1114 (a.k.a. applications, “apps”, etc.). Application programs 1114 can include common mobile computing applications (e.g., email applications, calendars, contact managers, web browsers, messaging applications) and any other computing applications (e.g., word processing applications, mapping applications, media player applications).
As illustrated, mobile device 1100 can include memory 1120. Memory 1120 can include non-removable memory 1122 and/or removable memory 1124. The non-removable memory 1122 can include RAM, ROM, flash memory, a hard disk, or other well-known memory storage technologies. The removable memory 1124 can include flash memory or a Subscriber Identity Module (SIM) card, which is well known in GSM communication systems, or other well-known memory storage technologies, such as “smart cards.” The memory 1120 can be used for storing data and/or code for running the operating system 1112 and the applications 1114. Example data can include web pages, text, images, sound files, video data, or other data sets to be sent to and/or received from one or more network servers or other devices via one or more wired or wireless networks. Memory 1120 can be used to store a subscriber identifier, such as an International Mobile Subscriber Identity (IMSI), and an equipment identifier, such as an International Mobile Equipment Identifier (IMEI). Such identifiers can be transmitted to a network server to identify users and equipment.
A number of programs may be stored in memory 1120. These programs include operating system 1112, one or more application programs 1114, and other program modules and program data. Examples of such application programs or program modules may include, for example, computer program logic (e.g., computer program code or instructions) for implementing, processor(s) 108, operating system 112, device driver(s) 114, input stack 116, compositor(s) 118, target component(s) 120, plurality of stack layers 124, interface(s) 124, device driver 214, input stack 216, raw input data processing layer 202, input processing layer 206, input routing layer 208, contextual processing layer 212, application input layer 214, data interface 225, first communication interface 226, second communication interface 228, third communication interface 230, fourth communication interface 232, fifth communication interface 234, first programming interface 227, second programming interface 229, third programming interface 231, fourth programming interface 233, fifth programming interface 235, first compositor 218, second compositor 224, target component(s) 220, device driver 414, input stack 416, raw input data processing layer 402, input processing layer 406, data interface 425, first communication interface 426, second communication interface 428, input routing layer 608, third communication interface 630, first compositor 618, second compositor 624, contextual processing layer 812, application input layer 814, fourth communication interface 832, fifth communication interface 834, first target component 802, second target component 804, software component development system 910, code editor 912, package builder 914 flowchart 300, flowchart 500, flowchart 700, and/or flowchart 1000.
Mobile device 1100 can support one or more input devices 1130, such as a touch screen 1132, microphone 1134, camera 1136, physical keyboard 1138 and/or trackball 1140 and one or more output devices 1150, such as a speaker 1152 and a display 1154.
Other possible output devices (not shown) can include piezoelectric or other haptic output devices. Some devices can serve more than one input/output function. For example, touch screen 1132 and display 1154 can be combined in a single input/output device. The input devices 1130 can include a Natural User Interface (NUI).
Wireless modem(s) 1160 can be coupled to antenna(s) (not shown) and can support two-way communications between processor circuit 1110 and external devices, as is well understood in the art. The modem(s) 1160 are shown generically and can include a cellular modem 1166 for communicating with the mobile communication network 1104 and/or other radio-based modems (e.g., Bluetooth 1164 and/or Wi-Fi 1162). Cellular modem 1166 may be configured to enable phone calls (and optionally transmit data) according to any suitable communication standard or technology, such as GSM, 3G, 4G, 5G, etc. At least one of the wireless modem(s) 1160 is typically configured for communication with one or more cellular networks, such as a GSM network for data and voice communications within a single cellular network, between cellular networks, or between the mobile device and a public switched telephone network (PSTN).
Mobile device 1100 can further include at least one input/output port 1180, a power supply 1182, a satellite navigation system receiver 1184, such as a Global Positioning System (GPS) receiver, an accelerometer 1186, and/or a physical connector 1190, which can be a USB port, IEEE 1394 (FireWire) port, and/or RS-232 port. The illustrated components 1102 are not required or all-inclusive, as any components can be not present and other components can be additionally present as would be recognized by one skilled in the art.
Furthermore,
As shown in
Computing device 1200 also has one or more of the following drives: a hard disk drive 1214 for reading from and writing to a hard disk, a magnetic disk drive 1216 for reading from or writing to a removable magnetic disk 1218, and an optical disk drive 1220 for reading from or writing to a removable optical disk 1222 such as a CD ROM, DVD ROM, or other optical media. Hard disk drive 1214, magnetic disk drive 1216, and optical disk drive 1220 are connected to bus 1206 by a hard disk drive interface 1224, a magnetic disk drive interface 1226, and an optical drive interface 1228, respectively. The drives and their associated computer-readable media provide nonvolatile storage of computer-readable instructions, data structures, program modules and other data for the computer. Although a hard disk, a removable magnetic disk and a removable optical disk are described, other types of hardware-based computer-readable storage media can be used to store data, such as flash memory cards, digital video disks, RAMs, ROMs, and other hardware storage media.
A number of program modules may be stored on the hard disk, magnetic disk, optical disk, ROM, or RAM. These programs include operating system 1230, one or more application programs 1232, other programs 1234, and program data 1236. Application programs 1232 or other programs 1234 may include, for example, computer program logic (e.g., computer program code or instructions) for implementing, processor(s) 108, operating system 112, device driver(s) 114, input stack 116, compositor(s) 118, target component(s) 120, plurality of stack layers 124, interface(s) 124, device driver 214, input stack 216, raw input data processing layer 202, input processing layer 206, input routing layer 208, contextual processing layer 212, application input layer 214, data interface 225, first communication interface 226, second communication interface 228, third communication interface 230, fourth communication interface 232, fifth communication interface 234, first programming interface 227, second programming interface 229, third programming interface 231, fourth programming interface 233, fifth programming interface 235, first compositor 218, second compositor 224, target component(s) 220, device driver 414, input stack 416, raw input data processing layer 402, input processing layer 406, data interface 425, first communication interface 426, second communication interface 428, input routing layer 608, third communication interface 630, first compositor 618, second compositor 624, contextual processing layer 812, application input layer 814, fourth communication interface 832, fifth communication interface 834, first target component 802, second target component 804, software component development system 910, code editor 912, package builder 914 flowchart 300, flowchart 500, flowchart 700, and/or flowchart 1000.
A user may enter commands and information into the computing device 1200 through input devices such as keyboard 1238 and pointing device 1240. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, a touch screen and/or touch pad, a voice recognition system to receive voice input, a gesture recognition system to receive gesture input, or the like. These and other input devices are often connected to processor circuit 1202 through a serial port interface 1242 that is coupled to bus 1206, but may be connected by other interfaces, such as a parallel port, game port, or a universal serial bus (USB).
A display screen 1244 is also connected to bus 1206 via an interface, such as a video adapter 1246. Display screen 1244 may be external to, or incorporated in computing device 1200. Display screen 1244 may display information, as well as being a user interface for receiving user commands and/or other information (e.g., by touch, finger gestures, virtual keyboard, etc.). In addition to display screen 1244, computing device 1200 may include other peripheral output devices (not shown) such as speakers and printers.
Computing device 1200 is connected to a network 1248 (e.g., the Internet) through an adaptor or network interface 1250, a modem 1252, or other means for establishing communications over the network. Modem 1252, which may be internal or external, may be connected to bus 1206 via serial port interface 1242, as shown in
As used herein, the terms “computer program medium,” “computer-readable medium,” and “computer-readable storage medium” are used to generally refer to physical hardware media such as the hard disk associated with hard disk drive 1214, removable magnetic disk 1218, removable optical disk 1222, other physical hardware media such as RAMs, ROMs, flash memory cards, digital video disks, zip disks, MEMs, nanotechnology-based storage devices, and further types of physical/tangible hardware storage media (including system memory 1204 of
As noted above, computer programs and modules (including application programs 1232 and other programs 1234) may be stored on the hard disk, magnetic disk, optical disk, ROM, RAM, or other hardware storage medium. Such computer programs may also be received via network interface 1250, serial port interface 1252, or any other interface type. Such computer programs, when executed or loaded by an application, enable computing device 1200 to implement features of embodiments discussed herein. Accordingly, such computer programs represent controllers of the computing device 1200.
Embodiments are also directed to computer program products comprising computer code or instructions stored on any computer-readable medium. Such computer program products include hard disk drives, optical disk drives, memory device packages, portable memory sticks, memory cards, and other types of physical storage hardware.
A system is described herein. The system includes: at least one processor; and at least one memory that stores program code configured to be executed by the at least one processor, the program code comprising: an extensible input stack configured to interface an operating system (OS) with input devices, the extensible input stack comprising a plurality of stack layers that include: a contextual processing layer having a communication interface configured to receive converted input device data from another stack layer in the extensible input stack, the contextual processing layer configured to: in response to the converted input device data being determined to be a first type, determine a first component-specific format in which the converted input device data is to be provided to a first target component, and convert the converted input device data into the first component-specific format to generate first formatted input device data; and in response to the converted input device data being determined to be a second type, determine a second component-specific format in which the converted input device data is to be provided to a second target component, and convert the converted input device data into the second component-specific format to generate second formatted input device data.
In one embodiment of the foregoing system, the plurality of stack layers further includes: a raw input data processing layer comprising a data interface configured to interface with a device driver of an input device to receive input device data generated by the input device and that is in accordance with a protocol specific to the input device, the raw input data processing layer configured to convert the input device data to generate the converted input device data, the converted input device data being in a format suitable for handling by at least one further layer in the extensible input stack, and an input processing layer comprising a second communication interface configured to receive the converted input device data and determine whether the converted input device data is of the first type or the second type for routing to a corresponding OS target component.
In another embodiment of the foregoing system, the first type is spatial input data and the second type is non-spatial input data.
In a further embodiment of the foregoing system, the plurality of stack layers further includes: an input routing layer having a third communication interface configured to receive the converted input device data, the input routing layer configured to: determine the first target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the first type; and determine the second target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the second type, the converted input device data being provided to the first communication interface of the contextual processing layer.
In yet another embodiment of the foregoing system, at least one of the first target component or the second target component is an application, a shell, or a service maintained by the OS.
In still another embodiment of the foregoing system, the input routing layer is configured to provide a hit test request included in the converted input device data to a first compositor of the OS and determine the first target component based on a first response specifying the first target component and received from the first compositor, and the input routing layer is configured to provide at least one focus change notification included in the converted input device data to a second compositor of the OS and determine the second target component based on a second response specifying the second target component and received from the second compositor.
In another embodiment of the foregoing system, the plurality of stack layers further includes: an application input layer having a second communication interface configured to: receive the first formatted input device data, the application input layer configured to provide the first formatted input device data to the first target component; and receive the second formatted input device data, the application input layer configured to provide the second formatted input device data to the second target component.
A method is also described. The method comprises: receiving, by a communication interface of a contextual processing layer of an extensible input stack, converted input device data; in response to the converted input device data being determined to be a first type: determining, by the contextual processing layer, a first component-specific format in which the converted input device data is to be provided to a first target component, and converting, by the contextual processing layer, the converted input device data into the first component-specific format to generate first formatted input device data; and in response to the converted input device data being determined to be a second type: determining, by the contextual processing layer, a second component-specific format in which the converted input device data is to be provided to a second target component, converting, by the contextual processing layer, the converted input device data into the second component-specific format to generate second formatted input device data.
In one embodiment of the foregoing method, the method further comprises: receiving, by a data interface of a raw input data processing layer of the extensible input stack, input device data generated by an input device and that is in accordance with a protocol specific to the input device, the data interface configured to interface with a device driver of the input device to receive the input device data from the input device; converting, by the raw input data processing layer, the input device data to generate the converted input device data, the converted input device data being in a format suitable for handling by at least one further layer in the extensible input stack; receiving, by a communication interface of an input processing layer of the extensible input stack, the converted input device data; and determining, by the input processing layer, that the converted input device data is one of the first type or the second type for routing to a corresponding OS target component.
In another embodiment of the foregoing method, the first type is spatial input data and the second type is non-spatial input data.
In yet another embodiment of the foregoing method, the method further comprises: receiving, by a communication interface of an input routing layer of the extensible input stack, the converted input device data; in response to the converted input device data being determined to be the first type: determining, by the input routing layer, the first target component of the OS to which the converted input device data is to be provided; and in response to the converted input device data being determined to be the second type: determining, by the input routing layer, the second target component of the OS to which the converted input device data is to be provided, the converted input device data being provided to the communication interface of the contextual processing layer.
In still another embodiment of the foregoing method, at least one of the first target component or the second target component is one of an application, a shell, or a service maintained by the OS.
In yet another embodiment of the foregoing method, the method further comprises: in response to the converted input device data being determined to be the first type: providing, by the input routing layer, a hit test request included in the converted input device data to a first compositor of the OS; and receiving, by the input routing layer, a first response from the first compositor that specifies the first target component; and in response to the converted input device data being determined to be the second type: providing, by the input routing layer, at least one focus change notification included in the converted input device data to a second compositor of the OS; and receiving, by the input routing layer, a second response from the second compositor of the OS that specifies the second target component and received from the second compositor.
In still another embodiment of the foregoing method, in response to the converted input device data being determined to be the first type, providing, by an application input layer of the extensible input stack, the first formatted input device data to the first target component; and in response to the converted input device data being determined to be the second type, providing, by the application input layer, the second formatted input device data to the second target component
In yet another embodiment of the foregoing method, the communication interface of the input processing layer is a first application programming interface (API), the communication interface of the input routing layer a second API, the communication interface of the contextual processing layer is a third API.
A computer-readable storage medium having program instructions recorded thereon that, when executed by at least one processing circuit, perform a method for processing input device data via an extensible input stack is further described herein. The method comprises: receiving, by a communication interface of a contextual processing layer of the extensible input stack, converted input device data; in response to the converted input device data being determined to be a first type: determining, by the contextual processing layer, a first component-specific format in which the converted input device data is to be provided to a first target component, and converting, by the contextual processing layer, the converted input device data into the first component-specific format to generate first formatted input device data; and in response to the converted input device data being determined to be a second type: determining, by the contextual processing layer, a second component-specific format in which the converted input device data is to be provided to a second target component, converting, by the contextual processing layer, the converted input device data into the second component-specific format to generate second formatted input device data.
In one embodiment of the foregoing computer-readable storage medium, the method further comprises: receiving, by a data interface of a raw input data processing layer of the extensible input stack, input device data generated by an input device and that is in accordance with a protocol specific to the input device, the data interface configured to interface with a device driver of the input device to receive the input device data from the input device; converting, by the raw input data processing layer, the input device data to generate the converted input device data, the converted input device data being in a format suitable for handling by at least one further layer in the extensible input stack; receiving, by a communication interface of an input processing layer of the extensible input stack, the converted input device data; and determining, by the input processing layer, that the converted input device data is one of the first type or the second type for routing to a corresponding OS target component.
In another embodiment of the foregoing computer-readable storage medium, the first type is spatial input data and the second type is non-spatial input data.
In yet another embodiment of the foregoing computer-readable storage medium, the method further comprises: receiving, by a communication interface of an input routing layer of the extensible input stack, the converted input device data; in response to the converted input device data being determined to be the first type: determining, by the input routing layer, the first target component of the OS to which the converted input device data is to be provided; and in response to the converted input device data being determined to be the second type: determining, by the input routing layer, the second target component of the OS to which the converted input device data is to be provided, the converted input device data being provided to the communication interface of the contextual processing layer.
In still another embodiment of the foregoing computer-readable storage medium, determining at least one of the target component comprises: at least one of the first target component or the second target component is one of an application, a shell, or a service maintained by the OS.
A system is described herein. The system includes: at least one processor; and at least one memory that stores program code configured to be executed by the at least one processor, the program code comprising: an operating system configured to: determine an input device coupled to the computing device; determine an application operable on the computing device that is interacted with via the input device; determine at least one software component that extends the functionality of at least one stack layer of a plurality of stack layers of an extensible input stack to support operability of the determined input device for the application, the extensible input stack being configured to process input device data generated by the input device; and load the software component for the at least one stack layer.
In one embodiment of the foregoing system, the operating system is further configured to: determine a second application operable on the computing device that is interacted with via the input device; determine at least a second software component that extends the functionality of at least one stack layer of a plurality of stack layers of the extensible input stack to support operability of the determined input device for the second application; and load the second software component for the at least one stack layer.
In another embodiment of the foregoing system, the operating system is further configured to: unload the first software component.
In a further embodiment of the foregoing system, the plurality of stack layers comprises: a raw input data processing layer that is configured to convert input device data received from the input device into a format suitable for handling by at least one further layer of the extensible input stack.
In yet another embodiment of the foregoing system, the plurality of stack layers further comprises: an input processing layer configured to determine that the converted input device data is one of a first type or a second type for routing to a corresponding operating system (OS) target component.
In still another embodiment of the foregoing system, the plurality of stack layers further comprises: an input routing layer configured to: determine a first target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the first type; and determine a second target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the second type.
In another embodiment of the foregoing system, the plurality of stack layers further comprises: a contextual processing layer configured to: determine a first component-specific format in which the converted input device data is to be provided to the first target component and convert the converted input device data into the first component-specific format to generate first formatted input device data in response to the converted input device data being determined to be the first type; and determine a second component-specific format in which the converted input device data is to be provided to the second target component and convert the converted input device data into the second component-specific format to generate second formatted input device data in response to the converted input device data being determined to be the second type.
In yet another embodiment of the foregoing system, the plurality of stack layers further comprises: an application input player configured to: provide the first formatted input device data to the first target component in response to the converted input device data being determined to be the first type; and provide the second formatted input device data to the second target component in response to the converted input device data being determined to be the second type.
A method in a computing device is also described. The method comprises: determining an input device coupled to the computing device; determining an application operable on the computing device that is interacted with via the input device; determining at least one software component that extends the functionality of at least one stack layer of a plurality of stack layers of an extensible input stack to support operability of the determined input device for the application, the extensible input stack being configured to process input device data generated by the input device; and loading the software component for the at least one stack layer.
In one embodiment of the foregoing method, the method further comprises determining a second application operable on the computing device that is interacted with via the input device; determining at least a second software component that extends the functionality of at least one stack layer of a plurality of stack layers of the extensible input stack to support operability of the determined input device for the second application; and loading the second software component for the at least one stack layer.
In another embodiment of the foregoing method, the method further comprises: unloading the first software component.
In yet another embodiment of the foregoing method, the plurality of stack layers comprises: a raw input data processing layer that is configured to convert input device data received from the input device into a format suitable for handling by at least one further layer of the extensible input stack.
In still another embodiment of the foregoing method, the plurality of stack layers further comprises: an input processing layer configured to determine that the converted input device data is one of a first type or a second type for routing to a corresponding operating system (OS) target component.
In yet another embodiment of the foregoing method, the plurality of stack layers further comprises: an input routing layer configured to: determine a first target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the first type; and determine a second target component of the OS to which the converted input device data is to be provided in response to the converted input device data being determined to be the second type.
In still another embodiment of the foregoing method, the plurality of stack layers further comprises: a contextual processing layer configured to: determine a first component-specific format in which the converted input device data is to be provided to the first target component and convert the converted input device data into the first component-specific format to generate first formatted input device data in response to the converted input device data being determined to be the first type; and determine a second component-specific format in which the converted input device data is to be provided to the second target component and convert the converted input device data into the second component-specific format to generate second formatted input device data in response to the converted input device data being determined to be the second type.
In yet another embodiment of the foregoing method, the plurality of stack layers further comprises: an application input player configured to: provide the first formatted input device data to the first target component in response to the converted input device data being determined to be the first type; and provide the second formatted input device data to the second target component in response to the converted input device data being determined to be the second type.
A computer-readable storage medium having program instructions recorded thereon that, when executed by at least one processing circuit, perform a method for dynamically loading a software component for an extensible input stack. The method comprises: determining an input device coupled to a computing device; determining an application operable on the computing device that is interacted with via the input device; determining at least one software component that extends the functionality of at least one stack layer of a plurality of stack layers of the extensible input stack to support operability of the determined input device for the application, the extensible input stack being configured to process input device data generated by the input device; and loading the software component for the at least one stack layer.
In one embodiment of the foregoing computer-readable storage medium, the method further comprises: determining a second application operable on the computing device that is interacted with via the input device; determining at least a second software component that extends the functionality of at least one stack layer of a plurality of stack layers of the extensible input stack to support operability of the determined input device for the second application; and loading the second software component for the at least one stack layer.
In another embodiment of the foregoing computer-readable storage medium, the method further comprises: unloading the first software component.
While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be understood by those skilled in the relevant art(s) that various changes in form and details may be made therein without departing from the spirit and scope of the present subject matter as defined in the appended claims. Accordingly, the breadth and scope of the present subject matter should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
5931935 | Cabrera et al. | Aug 1999 | A |
6237053 | Herrod et al. | May 2001 | B1 |
6845397 | Lavian et al. | Jan 2005 | B1 |
7574217 | Leung | Aug 2009 | B1 |
8745300 | Kuo | Jun 2014 | B2 |
20030227643 | Reddy | Dec 2003 | A1 |
20050052434 | Kolmykov-zotov et al. | Mar 2005 | A1 |
20070043550 | Tzruya | Feb 2007 | A1 |
20070294332 | Karki | Dec 2007 | A1 |
20080001923 | Hall et al. | Jan 2008 | A1 |
20080127228 | Durojaiye et al. | May 2008 | A1 |
20090113458 | Finger | Apr 2009 | A1 |
20110191550 | Lee et al. | Aug 2011 | A1 |
20130202055 | Caliguri | Aug 2013 | A1 |
20130297833 | Vadivelu | Nov 2013 | A1 |
20140075458 | Wright et al. | Mar 2014 | A1 |
20150331830 | Kumar | Nov 2015 | A1 |
20160062932 | Bhesania et al. | Mar 2016 | A1 |
20190213015 | Raghunath et al. | Jul 2019 | A1 |
Entry |
---|
“International Search Report and Written Opinion Issued in PCT Application No. PCT/US18/066104”, dated Mar. 25, 2019, 14 Pages. |
Ilmonen, et al., “Software Architecture for Multimodal User Input—FLUID”, In Proceedings of the User interfaces for all 7th international conference on Universal access: theoretical perspectives, practice, and experience, Oct. 24, 2002, 20 Pages. |
“International Search Report and Written Opinion Issued in PCT Application No. PCT/US18/066102”, dated Mar. 18, 2019, 14 Pages. |
“Non Final Office Action Issued in U.S. Appl. No. 15/866,150”, dated May 2, 2019, 38 Pages. |
“Final Office Action Issued in U.S. Appl. No. 15/866,150”, dated Nov. 7, 2019, 39 Pages. |
Number | Date | Country | |
---|---|---|---|
20190213016 A1 | Jul 2019 | US |