Detecting scroll wheel up (and down) in OS X?

Recently I’ve been trying to detect for scroll wheel movements in OS X
with:

if(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_WHEELUP))
{blah}

For some reason I cannot for the life of me get this to work. Whenever
I test for this it never registers, no matter what button I press, or
what I do with my mouse (even sticking it in the microwave didn’t
help!). I’m using SDL 1.2.7 (stable), any help is greatly
appreciated…probably because I might just be nuts.

Thanks
Derek

/*
http://www.derekarndt.com game development is just my forte
*/
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 759 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040226/397ce528/attachment.bin

Recently I’ve been trying to detect for scroll wheel movements in OS X
with:

if(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_WHEELUP))

Since mouse wheel motion is an instantaneous event, you’ll never see
the state on if you poll it. To handle mouse wheel events, you actually
have to handle mouse button events and figure out how far you want to
move based on the number of events you get.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment