In the link the encoder are used for sound volume control, is a different project than MMjoy2, with different firmware. If you are build a similar controller, follow the link orientation.
MMjoy2 is for control joystick, is a computer HID device, the encoder is used for simulate button press. Don`t mix the projects.