2007-08-19, 22:52
http://sourceforge.net/tracker/index.php...tid=581840
Patch 1777309 in the tracker adds code to handle the mouse wheel events from SDL. It's sort of a dirty hack, since SDL doesn't handle the mouse wheel very well. The mouse wheel should be handled in CMouse:Update() like all other mouse related things, but the only way to recognize a mouse wheel movement in SDL is through SDL_PollEvent.
Anyway this is a first time for me. Have never committed any patch to any one elses code before, but the lack of mouse wheel handling kinda bugged me and I thought it was fun fixing it. I thought it might be of some help to submit my little patch and feedback is more than welcome.
Patch 1777309 in the tracker adds code to handle the mouse wheel events from SDL. It's sort of a dirty hack, since SDL doesn't handle the mouse wheel very well. The mouse wheel should be handled in CMouse:Update() like all other mouse related things, but the only way to recognize a mouse wheel movement in SDL is through SDL_PollEvent.
Anyway this is a first time for me. Have never committed any patch to any one elses code before, but the lack of mouse wheel handling kinda bugged me and I thought it was fun fixing it. I thought it might be of some help to submit my little patch and feedback is more than welcome.