We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bde0c1 + eb7accd commit c24388cCopy full SHA for c24388c
src/SDL/Input/Mouse.hs
@@ -203,7 +203,7 @@ getMouseButtons :: MonadIO m => m (MouseButton -> Bool)
203
getMouseButtons = liftIO $
204
convert <$> Raw.getMouseState nullPtr nullPtr
205
where
206
- convert w b = w `testBit` fromIntegral (toNumber b)
+ convert w b = w `testBit` fromIntegral (toNumber b - 1)
207
208
newtype Cursor = Cursor { unwrapCursor :: Raw.Cursor }
209
deriving (Eq, Typeable)
0 commit comments