if (read(joystick_device, &joy_ctrl, sizeof(joy_ctrl)) != sizeof(joy_ctrl))
{
fprintf(stderr,"%s: cannot read joystick settings - no joystick support\n",
if (read(joystick_device, &joy_ctrl, sizeof(joy_ctrl)) != sizeof(joy_ctrl))
{
fprintf(stderr,"%s: cannot read joystick settings - no joystick support\n",