Need help with using a rotary switch for a HID input

I didn't read this in depth so cannot comment on its accuracy - instructables are often held in low esteem here - but, it does illustrate the principle @anon73444976 mentions.