Re: [AD] String should not be constant |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2011-01-20, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> In the _AL_JOYSTICK_BUTTON_INFO structure, the single member
> "const char *name" should not be a constant should it? I checked the
> Linux driver as well and it assigns allocated memory to this and frees
> it later. Why is it constant?
An artefact of the A4 era when JOYSTICK_BUTTON_INFO fields were exposed
to the user. Feel free to change it, along with the fields in the stick
and axis info structures.
Peter