Arduino DUE, DFR0601 PWM driver adding USB Joystick buttons

There’s a code snippet that you need to put in setup so that 5V is sent to the native USB port. But i cant find that code at the moment.