changing serial data into USB/HID like joystick, etc

Hey guys,

Is there anything special that needs to be done to make serial data, like that from a rotary encoder into a joystick/gamepad function?

Is it just a simple as calling the joystick library?

I'm kinda struggling to get my head around what the process.

For context, I'm going to be using a couple of rotary encoders to pass through in to Windows.

The desired functionality is that I'll be able to make the encoders do things like increase/decrease volume and generally just assign them to any function or pass them through to a game, etc.

Thanks in advance guys and I hope I have the right section.

It's been a couple of years since I've done anything in Arduino and I'm really rusty.