CPC G06F 3/016 (2013.01) [G06F 3/0414 (2013.01); G06F 3/0418 (2013.01)] | 21 Claims |
1. A method comprising:
receiving, in an electronic device having a trackpad, a touch signal that a touch sensor of the trackpad generates based on a user input at the trackpad, wherein the touch signal reflects a size of an area of the trackpad involved in the user input;
comparing, by the electronic device, the size of the area with a baseline area size to determine a size difference between the size of the area and the baseline area size;
selecting, by the electronic device and based on the touch signal, a first driver signal waveform from among multiple driver signal waveforms applicable to an actuator coupled to the trackpad, wherein the first driver signal waveform includes an initial voltage, and a first local extremum occurring after the initial voltage;
scaling, by the electronic device, one or more of a duration of the first driver signal waveform, or an amplitude of the first driver signal waveform into a second driver signal waveform, the scaling based at least in part on the size difference, wherein the second driver signal waveform includes a second local extremum that occurs at a different time within the second driver signal waveform than the first local extremum occurs within the first driver signal waveform; and
generating, by the electronic device, a haptic output in response to the user input by providing the second driver signal waveform to the actuator.
|