How to make joystick visible in the ubuntu-mate (for Drone control)

Hi,

I’ve made 2 joystick work with my Raspberry Pi 3, like on that site: http://www.raspberrypi-spy.co.uk/2014/0 … ent-190957

I’ve managed to do one of them acts al a mouse. The other one should be recognizable as a joystick in the linux. I’m plannig to use it with a mission planner and to do that I need for my Raspberry Pi to see it. I’ve read many posts/tutorials of how to to that for USB joysticks but the problem is I have it connected to the GPIO via a MCP3008 not with the USB port. Could somebody please help me?

To make it clear. I’m trying to make a drone control that will be based on Raspberry Pi 3, I have connected to the RPi 2 joysticks via MCP3008 and some buttons. I need to make one of the joysticks be recognizable as a joystick in ubuntu, because then the APM Planner which I would like to use to control the drone will make it possible to control it without any special code. The other joystick will be used as a mouse ant I’ve achieved that already.