Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
better debug log in SDL_SYS_JoystickUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
BSzili committed Mar 26, 2020
1 parent 7a08d72 commit dc312e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/joystick/amiga/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int SDL_SYS_JoystickGetCount(void)

static void SDL_SYS_JoystickDetect()
{
D("[%s]\n", __FUNCTION__);
//D("[%s]\n", __FUNCTION__);
}

static int SDL_SYS_JoystickInit(void)
Expand Down Expand Up @@ -276,16 +276,14 @@ static void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick)
#endif
int i, index;

D("[%s] joystick 0x%08lx\n", __FUNCTION__, joystick);

if(!LowLevelBase)
/*if(!LowLevelBase)
{
if(SDL_JoystickInit() < 1)
{
D("Initialize Joysticks first!\n");
return;
}
}
}*/

index = PortIndex(joystick->instance_id);

Expand All @@ -295,6 +293,8 @@ static void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick)
data_ext = ReadJoyPort(index + JP_ANALOGUE_PORT_MAGIC);
#endif

D("[%s] joystick 0x%08lx index %d data 0x%08lx data_ext 0x%08lx\n", __FUNCTION__, joystick, index, data, data_ext);

/* only send an event when something changed */

/* hats */
Expand Down

0 comments on commit dc312e7

Please sign in to comment.