You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SDL/Event.hs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -889,7 +889,7 @@ registerEvent registeredEventDataToEvent eventToRegisteredEventData = do
889
889
--
890
890
-- 'pumpEvents' gathers all the pending input information from devices and places it in the event queue. Without calls to 'pumpEvents' no events would ever be placed on the queue. Often the need for calls to 'pumpEvents' is hidden from the user since 'pollEvent' and 'waitEvent' implicitly call 'pumpEvents'. However, if you are not polling or waiting for events (e.g. you are filtering them), then you must call 'pumpEvents' to force an event queue update.
891
891
--
892
-
-- See @<https://wiki.libsdl.org/SDL_PumpEvents SDL_PumpEvents>@ for C documentation.
892
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_PumpEvents SDL_PumpEvents>@ for C documentation.
--| Check whether the screen keyboard is shown for the given window.
132
132
--
133
-
-- See @<https://wiki.libsdl.org/SDL_IsScreenKeyboardShown SDL_IsScreenKeyboardShown>@ for C documentation.
133
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_IsScreenKeyboardShown SDL_IsScreenKeyboardShown>@ for C documentation.
134
134
isScreenKeyboardShown::MonadIOm=>Window->mBool
135
135
isScreenKeyboardShown (Window w) =Raw.isScreenKeyboardShown w
136
136
137
137
--| Get a human-readable name for a scancode. If the scancode doesn't have a name this function returns the empty string.
138
138
--
139
-
-- See @<https://wiki.libsdl.org/SDL_GetScancodeName SDL_GetScancodeName>@ for C documentation.
139
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_GetScancodeName SDL_GetScancodeName>@ for C documentation.
140
140
getScancodeName::MonadIOm=>Scancode->mString
141
141
getScancodeName scancode = liftIO $do
142
142
name <-Raw.getScancodeName $ toNumber scancode
@@ -156,7 +156,7 @@ data Keysym = Keysym
156
156
--
157
157
-- This computation generates a mapping from 'Scancode' to 'Bool' - evaluating the function at specific 'Scancode's will inform you as to whether or not that key was held down when 'getKeyboardState' was called.
158
158
--
159
-
-- See @<https://wiki.libsdl.org/SDL_GetKeyboardState SDL_GetKeyboardState>@ for C documentation.
159
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_GetKeyboardState SDL_GetKeyboardState>@ for C documentation.
-- This 'StateVar' can be modified using '$=' and the current value retrieved with 'get'.
179
179
--
180
-
-- See @<https://wiki.libsdl.org/SDL_ShowCursor SDL_ShowCursor>@ and @<https://wiki.libsdl.org/SDL_HideCursor SDL_HideCursor>@ for C documentation.
180
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_ShowCursor SDL_ShowCursor>@ and @<https://wiki.libsdl.org/SDL2/SDL_HideCursor SDL_HideCursor>@ for C documentation.
@@ -249,7 +249,7 @@ instance ToNumber SystemCursor Word32 where
249
249
--
250
250
-- This 'StateVar' can be modified using '$=' and the current value retrieved with 'get'.
251
251
--
252
-
-- See @<https://wiki.libsdl.org/SDL_SetCursor SDL_SetCursor>@ and @<https://wiki.libsdl.org/SDL_GetCursor SDL_GetCursor>@ for C documentation.
252
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_SetCursor SDL_SetCursor>@ and @<https://wiki.libsdl.org/SDL2/SDL_GetCursor SDL_GetCursor>@ for C documentation.
253
253
activeCursor::StateVarCursor
254
254
activeCursor = makeStateVar getCursor setCursor
255
255
where
@@ -345,13 +345,13 @@ createCursorFrom point source = do
345
345
346
346
--| Free a cursor created with 'createCursor', 'createColorCusor' and 'createSystemCursor'.
347
347
--
348
-
-- See @<https://wiki.libsdl.org/SDL_FreeCursor SDL_FreeCursor>@ for C documentation.
348
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_FreeCursor SDL_FreeCursor>@ for C documentation.
349
349
freeCursor::MonadIOm=>Cursor->m()
350
350
freeCursor =Raw.freeCursor . unwrapCursor
351
351
352
352
--| Create a color cursor.
353
353
--
354
-
-- See @<https://wiki.libsdl.org/SDL_CreateColorCursor SDL_CreateColorCursor>@ for C documentation.
354
+
-- See @<https://wiki.libsdl.org/SDL2/SDL_CreateColorCursor SDL_CreateColorCursor>@ for C documentation.
355
355
createColorCursor::MonadIOm
356
356
=>Surface
357
357
->PointV2CInt--^ The location of the cursor hot spot
0 commit comments