Arduino bluetooth control

So, I've been on a project where i am trying to use a generic bluetooth gamepad to control dc motors through a HC05 bluetooth module connected to an arduino. I have no idea on where to start. I did some research about it but there dosent seem to be much information thats appropriate for this project.

here is what im using now:
-ipega bluetooth controller
-arduino mega 2560
-HC-05 bluetooth module

First check what protocol is used for the gampad communication.
Then check if it is supported by your BT module.
Last but not least find a suitable library for it or write your own, after that you can start programming functions.