zoe56a
Last Updated: February 25, 2016
·
1.248K
· dlion
28864ba1e7e4490c3e5e97e095d4b6c7

Retrieve your Joystick name

With this C snippet you can retrieve using Plib libraries the name of your Joystick that you connected on your pc.

#include <plib/js.h>

int main()
{
    jsJoystick *js[1];

   if(!js[0]->notWorking()) 
       printf("Joystick's name: %s\n",js[0]->getName());
   else
       puts("Joystick not found.");

    return 0;
}
Say Thanks
Respond