Problems w/ SDL 1.3, and mouseButton events rev 6212

I was using the following for debugging (where event is defined as
SDL_Event *event)
fprintf(stderr, “%d %d %d\n”, event->button.x, event->button.y,
event->button.button);

event->button.x appears to give the y coordinates of the mouse
event->button.y always prints 0
and event->button.button appears to give the x axis (with a wraparound at 255).

I am using SDL-1.3.0-6212, Tested on Linux.

I remember this working with a previous recent revision though (want
to say a week or two ago, don’t have the revision)

linux
gcc 4.6.2
glibc 2.14.1 Compiled on a Linux 3.1.5 system on 2011-12-16.
binutils 2.22

also, rev 6217, I am seeing numerous undefined int8_t, uint8_t, and
size_t (stdint.h?) in include/SDL_stdinc.h as well as
include/SDL-rwops.h.–
Nathan Coulson (conathan)

Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com

May have spoke too soon, I just realized I could be using headers from
6212, but the libSDL-1.3.0.so from the earlier revision.

Fixing this, makes my Xorg system crash, due to some LLVM undefined
symbol, but that’s probably my own fault, most likely in mesa.On Sun, Jan 15, 2012 at 9:46 PM, Nathan Coulson <@Nathan_Coulson> wrote:

I was using the following for debugging (where event is defined as
SDL_Event *event)
?fprintf(stderr, “%d %d %d\n”, event->button.x, event->button.y,
event->button.button);

event->button.x appears to give the y coordinates of the mouse
event->button.y always prints 0
and event->button.button appears to give the x axis (with a wraparound at 255).

I am using SDL-1.3.0-6212, Tested on Linux.

I remember this working with a previous recent revision though (want
to say a week or two ago, don’t have the revision)

linux
gcc 4.6.2
glibc 2.14.1 Compiled on a Linux 3.1.5 system on 2011-12-16.
binutils 2.22

also, rev 6217, I am seeing numerous undefined int8_t, uint8_t, and
size_t (stdint.h?) in include/SDL_stdinc.h as well as
include/SDL-rwops.h.


Nathan Coulson (conathan)


Nathan Coulson (conathan)

Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com