Yes, there is software for the device to turn it into a Logitech gamepad, but, if at all possible, I'd like to do it natively, all within the code, just because the piece of software that does that is... limiting for what I had in mind. And not free!

Thanks nonetheless, I wouldn't have thought of that myself!