Abstract:
An electronic device, with a display and an input device separate from the display, displays a user interface that includes a representation of a first application and a pointer object. The device receives, at the input device, a user input event directed to a location in the user interface at which the pointer object is displayed. In response to the user input event, when the respective location in the user interface at which the pointer object is displayed is over the representation of the first application, the device provides, to the first application, information that describes a simulated touch event including information that describes locations of one or more simulated touches in the user interface; and displays, on the display, a change in the representation of the first application that is determined by the first application in response to the information that describes the simulated touch event.
Abstract:
An electronic device detects a change in intensity of an input at a location corresponding to a first user interface element associated with a user-interaction behavior model; generates, with an application-independent software module, output associated with the first user interface element determined in accordance with the change in intensity of the input and the user-interaction behavior model, including a first user-interaction component behavior and a second user-interaction component behavior; detects a change in intensity of an input at a location corresponding to a second user interface element associated with a subset of the user-interaction component behaviors; obtains, from the application-independent software module, an indication of whether the change in intensity of the input has met conditions associated with the first user-interaction component behavior; and updates, based on the indication, an appearance of the second user interface element based on the first user-interaction component behavior.
Abstract:
An electronic device detects a touch input. After a latency period, the device delivers to an application a sequence of input events that represent the touch input, including, in sequence: a first input event that represents the touch input at a first input time and is delivered at a first delivery time, a second input event that represents the touch input at a second input time and is delivered at a second delivery time, and a third input event that represents the touch input at a third input time and is delivered at a third delivery time, a time interval between the second input time and the second delivery time is smaller than a time interval between the first input time and the first delivery time, and a time interval between the third input time and the third delivery time is smaller than the time interval between the second input time and the second delivery time.