bug in 2.1.2

[email protected] ("Guillaume Cottenceau")
Newsgroups perl.sdl.devel
Message-ID <[email protected]>
2.1.2 code reads:

Uint8
JoyAxisEventValue ( e )
        SDL_Event *e
        CODE:
                RETVAL = e->jaxis.value;
        OUTPUT:
                RETVAL


SDL_events.h reads:

typedef struct SDL_JoyAxisEvent {
	Uint8 type;	/* SDL_JOYAXISMOTION */
	Uint8 which;	/* The joystick device index */
	Uint8 axis;	/* The joystick axis index */
	Sint16 value;	/* The axis value (range: -32768 to 32767) */
} SDL_JoyAxisEvent;


Hence, the value reported from sdlperl is broken.

-- 
Guillaume Cottenceau - http://zarb.org/~gc/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.