[SDL] Scrolling?

Clifford Benoist kernel at ashtech.net
Mon Apr 10 21:51:53 PDT 2000


Hey, does anyone have code that would be seriously broken if we changed
the joystick hat constants?

Ack, Heavy Gear II.

Anyway, here is the comment:
> Also pondering adding sdl joystick handling, but I was somewhat confused
> by the SDL_JoystickGetHat comments in SDL/SDL_joystick.h.  The return values
> seem pretty arbitrary and hard to manage.  Wouldn't it be a easier to have
> defines like SDL_HAT_LEFT, etc.. then instead
>  of this                          have this
> 8   1   2    SDL_HAT_LEFT|SDL_HAT_UP   SDL_HAT_UP   SDL_HAT_RIGHT|SDL_HAT_UP
> 7   0   3    SDL_HAT_LEFT              0            SDL_HAT_RIGHT
> 6   5   4    SDL_HAT_LEFT|SDL_HAT_DOWN SDL_HAT_DOWN SDL_HAT_RIGHT|SDL_HAT_DOWN

I can easily enough add 8 symbolic constants that people can check against.

See ya!
	-Sam Lantinga, Lead Programmer, Loki Entertainment Software



More information about the SDL mailing list