Patent attributes
Embodiments are directed to a force sensor used within an electronic device, such as a stylus, watch, laptop, or other electronic device. A force sensor may be positioned, for example, within a stylus body. The force sensor may include an input structure constrained within a housing by a compliant member. The input structure may extend at least partially out of the stylus body and be configured to receive a force input. One or more sensors of the force sensor may detect a value of a displacement of the input structure caused by the force input. A processing unit may determine a value of the force input using a spring characteristic of the compliant member and the detected value of displacement.