After liberating a rotary encoder and weighted knob from an old USB sound board that no longer worked, I started soldering.
Edit: The code and Fritzing diagrams are available at https://github.com/rmd6502/BluetoothEncoder . Note that the Fritzing sketch shows a Trinket 5v, this is incorrect - it needs to be a Trinket 3.3v
Step 1: Wire It Up
This is pretty straightforward - just wire it up as shown in the attached image. Since I'd used a nonstandard rotary encoder, I had to solder it to another board to get the pin spacing right.
Step 2: Programming
Plug a USB cable into your computer and plug it into the Trinket. You should see the red LED pulse - if it just comes on then the board wasn't detected by the computer. Try with a different cable, that seems to matter. You can also try plugging it in through a hub, people have had better luck with that.
You will need to download and install the special version of Arduino for the Trinket, or perform the steps listed in the tutorial to add Trinket support to you existing installation. You'll also need the SoftwareSerial and Rotary Encoder libraries. These should be placed in the appropriate libraries directory for your OS and installation.
Next, uncompress the attached zip file to your Arduino sketch directory, open it, and program the Trinket. If this succeeds, you are ready for the next step.
Step 3: Pairing to your computer
Once you're paired, you should be able to scroll with the rotary encoder, and click the mouse by pressing the button.