Embodiments of the present invention include a roller for an input device, where the roller's absolute angular position is measured by a magnetic encoder. A magnet is attached to the roller, possibly inside the roller so as to make the embodiment more compact. In one embodiment, the magnetization is simple and low cost. Further, tight tolerances are not required, and such a system is easy to manufacture. In one embodiment, the sensor is covered by any non-ferromagnetic material, to protect it from foreign particles, and to reduce ESD. In one embodiment, the wheel consumes much less power than conventional wheels in input devices. In one embodiment, the tilting of the wheel is measured using the same sensor that is used for measuring the rotation of the wheel. In one embodiment, a ratcheting feel provided to the user when rotating the wheel is synchronized with the rotation signal.