Increase size of joystick selection in panel
This commit is contained in:
parent
20e90db51d
commit
774eb3ca91
2 changed files with 8 additions and 6 deletions
|
@ -257,7 +257,7 @@ int input_get_default_keyboard (int num)
|
|||
|
||||
|
||||
static int nr_joysticks = 0;
|
||||
static char JoystickName[MAX_INPUT_DEVICES][40];
|
||||
static char JoystickName[MAX_INPUT_DEVICES][80];
|
||||
|
||||
static SDL_Joystick* Joysticktable[MAX_INPUT_DEVICES];
|
||||
|
||||
|
@ -280,7 +280,7 @@ static int init_joystick (void)
|
|||
for (int cpt; cpt < nr_joysticks; cpt++)
|
||||
{
|
||||
Joysticktable[cpt] = SDL_JoystickOpen (cpt);
|
||||
strncpy(JoystickName[cpt],SDL_JoystickName(cpt),40);
|
||||
strncpy(JoystickName[cpt],SDL_JoystickName(cpt),80);
|
||||
printf("Joystick %i : %s\n",cpt,JoystickName[cpt]);
|
||||
printf(" Buttons: %i Axis: %i Hats: %i\n",SDL_JoystickNumButtons(Joysticktable[cpt]),SDL_JoystickNumAxes(Joysticktable[cpt]),SDL_JoystickNumHats(Joysticktable[cpt]));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue