That doesn't work for me on OS X. It says "No such file or directory". This is a MacBook Pro with OS X.Robin wrote:Maybe your SDL version doesn't support X1 and X2?
Edit: By Grepping the SDL.framework folder inside Löve.app (0.7.1) I get this: (Edited to make room)
Code: Select all
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_LEFT 1
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_MIDDLE 2
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_RIGHT 3
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_WHEELUP 4
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_WHEELDOWN 5
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_X1 6
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_X2 7
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
../SDL.framework/Versions/A/Headers/SDL_mouse.h:#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
Not everyone has scrolling period. If you're gonna support scrolling of any kind, you should support all directions since a lot of mice these days that have a wheel have some way of doing horizontal. Magic Mice have a ball that can go any direction. My old MX1000 has a wheel that clicks left and right for its horizontal scroll. Some mice even have two wheels. I could do so much with the ability to scroll any of the four directions.And it would be neat, although it's best to find some way to do the same without horizontal scrolling, since not everyone has that.
Löve needs to shed its "Well, not everyone would have this feature so let's not support it" mentality. If they were serious, they wouldn't even support framebuffers or would still automatically convert PO2 images since not everyone can support Framebuffers and not everyone has a graphics card that requires PO2 images. (The PO2 thing being the reason for a lot of topics popping up with "why can't I see the images?")
Not everyone has a joystick, but Löve still supports them. I don't have a joystick. If someone made a game that used them, I would hope they'd also allow me to use my arrow keys or WSAD. And if they didn't, that's what feedback and replying to topics is for.
It's all up to the programmer to figure out alternative methods for supporting people without the right equipment. Let the designer decide whether or not to use the feature. At least put it in as an option.