06-17-2014 10:01 AM
I have implemented gamepad support but a SegFault occured when I call my discoverControllers function. It is the same as in gamepad sample (which work great).
If I do not connect my steel series gamepad at start and connect after then a device event is catched and controller is correctly loaded. And I can use it.
What can I have wrong in discoverControllers?
The game crash or return error when I call
screen_device_t* devices = (screen_device_t*)calloc(deviceCount, sizeof(screen_device_t));
I call discover only when all screen config are done.
Solved! Go to Solution.