Difference for arch/win32/joyhh.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 255
 
Line 255
  if (!joy_installed) {   if (!joy_installed) {
  return 0;   return 0;
  }   }
    
  memset(&joy, 0, sizeof(joy));   memset(&joy, 0, sizeof(joy));
  joy.dwSize = sizeof(joy);   joy.dwSize = sizeof(joy);
  joy.dwFlags = JOY_RETURNALL | JOY_USEDEADZONE;   joy.dwFlags = JOY_RETURNALL | JOY_USEDEADZONE;
Line 443
 
Line 442
     return 0; //HH: had to increase to 128      return 0; //HH: had to increase to 128
    if ( joystick.axis_max[axn] - joystick.axis_center[axn] < 128 )     if ( joystick.axis_max[axn] - joystick.axis_center[axn] < 128 )
     return 0; //HH: had to increase to 128      return 0; //HH: had to increase to 128
      
      if (!(joystick.present_mask & (1<<axn))) return 0;//fixes joy config bug where it'll always set an axis you don't even have. - 2000/01/14 Matt Mueller
   
   raw -= joystick.axis_center[axn];    raw -= joystick.axis_center[axn];
   

Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3