Embodiments of a stylus having a capacitive slide sensor and grip sensors are disclosed, for use with electronic devices and particularly with touchscreen devices. The stylus is in signal communication with the electronic device, either wired or wirelessly, and the slide sensor allows a user to generate a sliding data value as well as a contact/no-contact datum; these can be used as scaled control values or as buttonpress control values to control features of applications running on the electronic device. The capacitive sensors are formed on a single flexible PCB wrapped inside the stylus barrel.