Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

`SDL.mouseMask.Right` and `SDL.mouseMask.Middle` are the same #72

Closed tDwtp closed 6 years ago

tDwtp commented 6 years ago

https://github.com/Tangent128/luasdl2/blob/6df26c7c24d34fdedf1b1d6557adfa06d740f50f/src/mouse.c#L403 to:

    { "Middle", SDL_BUTTON_MMASK },

Upon dumping the sdl module table, I found that the values of SDL.mouseMask.Right and SDL.mouseMask.Middle are both the same (4 -> SDL_BUTTON_RMASK).

Error is in the Line mentioned above. (I do not know how to do pull requests and such, sorry)

tDwtp commented 6 years ago

Fix was merged.