SDL_mouse.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. /**
  19. * # CategoryMouse
  20. *
  21. * SDL mouse handling.
  22. */
  23. #ifndef SDL_mouse_h_
  24. #define SDL_mouse_h_
  25. #include <SDL3/SDL_stdinc.h>
  26. #include <SDL3/SDL_error.h>
  27. #include <SDL3/SDL_video.h>
  28. #include <SDL3/SDL_begin_code.h>
  29. /* Set up for C function definitions, even when using C++ */
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. typedef Uint32 SDL_MouseID;
  34. typedef struct SDL_Cursor SDL_Cursor; /**< Implementation dependent */
  35. /**
  36. * Cursor types for SDL_CreateSystemCursor().
  37. *
  38. * \since This enum is available since SDL 3.0.0.
  39. */
  40. typedef enum SDL_SystemCursor
  41. {
  42. SDL_SYSTEM_CURSOR_ARROW, /**< Arrow */
  43. SDL_SYSTEM_CURSOR_IBEAM, /**< I-beam */
  44. SDL_SYSTEM_CURSOR_WAIT, /**< Wait */
  45. SDL_SYSTEM_CURSOR_CROSSHAIR, /**< Crosshair */
  46. SDL_SYSTEM_CURSOR_WAITARROW, /**< Small wait cursor (or Wait if not available) */
  47. SDL_SYSTEM_CURSOR_SIZENWSE, /**< Double arrow pointing northwest and southeast */
  48. SDL_SYSTEM_CURSOR_SIZENESW, /**< Double arrow pointing northeast and southwest */
  49. SDL_SYSTEM_CURSOR_SIZEWE, /**< Double arrow pointing west and east */
  50. SDL_SYSTEM_CURSOR_SIZENS, /**< Double arrow pointing north and south */
  51. SDL_SYSTEM_CURSOR_SIZEALL, /**< Four pointed arrow pointing north, south, east, and west */
  52. SDL_SYSTEM_CURSOR_NO, /**< Slashed circle or crossbones */
  53. SDL_SYSTEM_CURSOR_HAND, /**< Hand */
  54. SDL_SYSTEM_CURSOR_WINDOW_TOPLEFT, /**< Window resize top-left (or SIZENWSE) */
  55. SDL_SYSTEM_CURSOR_WINDOW_TOP, /**< Window resize top (or SIZENS) */
  56. SDL_SYSTEM_CURSOR_WINDOW_TOPRIGHT, /**< Window resize top-right (or SIZENESW) */
  57. SDL_SYSTEM_CURSOR_WINDOW_RIGHT, /**< Window resize right (or SIZEWE) */
  58. SDL_SYSTEM_CURSOR_WINDOW_BOTTOMRIGHT, /**< Window resize bottom-right (or SIZENWSE) */
  59. SDL_SYSTEM_CURSOR_WINDOW_BOTTOM, /**< Window resize bottom (or SIZENS) */
  60. SDL_SYSTEM_CURSOR_WINDOW_BOTTOMLEFT, /**< Window resize bottom-left (or SIZENESW) */
  61. SDL_SYSTEM_CURSOR_WINDOW_LEFT, /**< Window resize left (or SIZEWE) */
  62. SDL_NUM_SYSTEM_CURSORS
  63. } SDL_SystemCursor;
  64. /**
  65. * Scroll direction types for the Scroll event
  66. *
  67. * \since This enum is available since SDL 3.0.0.
  68. */
  69. typedef enum SDL_MouseWheelDirection
  70. {
  71. SDL_MOUSEWHEEL_NORMAL, /**< The scroll direction is normal */
  72. SDL_MOUSEWHEEL_FLIPPED /**< The scroll direction is flipped / natural */
  73. } SDL_MouseWheelDirection;
  74. /**
  75. * A bitmask of pressed mouse buttons, as reported by SDL_GetMouseState, etc.
  76. *
  77. * - Button 1: Left mouse button
  78. * - Button 2: Middle mouse button
  79. * - Button 3: Right mouse button
  80. * - Button 4: Side mouse button 1
  81. * - Button 5: Side mouse button 2
  82. *
  83. * \since This datatype is available since SDL 3.0.0.
  84. *
  85. * \sa SDL_GetMouseState
  86. * \sa SDL_GetGlobalMouseState
  87. * \sa SDL_GetRelativeMouseState
  88. */
  89. typedef Uint32 SDL_MouseButtonFlags;
  90. #define SDL_BUTTON_LEFT 1
  91. #define SDL_BUTTON_MIDDLE 2
  92. #define SDL_BUTTON_RIGHT 3
  93. #define SDL_BUTTON_X1 4
  94. #define SDL_BUTTON_X2 5
  95. #define SDL_BUTTON(X) (1u << ((X)-1))
  96. #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
  97. #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
  98. #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
  99. #define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)
  100. #define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)
  101. /* Function prototypes */
  102. /**
  103. * Return whether a mouse is currently connected.
  104. *
  105. * \returns SDL_TRUE if a mouse is connected, SDL_FALSE otherwise.
  106. *
  107. * \since This function is available since SDL 3.0.0.
  108. *
  109. * \sa SDL_GetMice
  110. */
  111. extern SDL_DECLSPEC SDL_bool SDLCALL SDL_HasMouse(void);
  112. /**
  113. * Get a list of currently connected mice.
  114. *
  115. * Note that this will include any device or virtual driver that includes
  116. * mouse functionality, including some game controllers, KVM switches, etc.
  117. * You should wait for input from a device before you consider it actively in
  118. * use.
  119. *
  120. * \param count a pointer filled in with the number of mice returned
  121. * \returns a 0 terminated array of mouse instance IDs which should be freed
  122. * with SDL_free(), or NULL on error; call SDL_GetError() for more
  123. * details.
  124. *
  125. * \since This function is available since SDL 3.0.0.
  126. *
  127. * \sa SDL_GetMouseInstanceName
  128. * \sa SDL_HasMouse
  129. */
  130. extern SDL_DECLSPEC SDL_MouseID *SDLCALL SDL_GetMice(int *count);
  131. /**
  132. * Get the name of a mouse.
  133. *
  134. * This function returns "" if the mouse doesn't have a name.
  135. *
  136. * \param instance_id the mouse instance ID
  137. * \returns the name of the selected mouse, or NULL on failure; call
  138. * SDL_GetError() for more information.
  139. *
  140. * \since This function is available since SDL 3.0.0.
  141. *
  142. * \sa SDL_GetMice
  143. */
  144. extern SDL_DECLSPEC const char *SDLCALL SDL_GetMouseInstanceName(SDL_MouseID instance_id);
  145. /**
  146. * Get the window which currently has mouse focus.
  147. *
  148. * \returns the window with mouse focus.
  149. *
  150. * \since This function is available since SDL 3.0.0.
  151. */
  152. extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_GetMouseFocus(void);
  153. /**
  154. * Retrieve the current state of the mouse.
  155. *
  156. * The current button state is returned as a button bitmask, which can be
  157. * tested using the SDL_BUTTON(X) macro (where `X` is generally 1 for the
  158. * left, 2 for middle, 3 for the right button), and `x` and `y` are set to the
  159. * mouse cursor position relative to the focus window. You can pass NULL for
  160. * either `x` or `y`.
  161. *
  162. * \param x the x coordinate of the mouse cursor position relative to the
  163. * focus window
  164. * \param y the y coordinate of the mouse cursor position relative to the
  165. * focus window
  166. * \returns a 32-bit button bitmask of the current button state.
  167. *
  168. * \since This function is available since SDL 3.0.0.
  169. *
  170. * \sa SDL_GetGlobalMouseState
  171. * \sa SDL_GetRelativeMouseState
  172. */
  173. extern SDL_DECLSPEC SDL_MouseButtonFlags SDLCALL SDL_GetMouseState(float *x, float *y);
  174. /**
  175. * Get the current state of the mouse in relation to the desktop.
  176. *
  177. * This works similarly to SDL_GetMouseState(), but the coordinates will be
  178. * reported relative to the top-left of the desktop. This can be useful if you
  179. * need to track the mouse outside of a specific window and SDL_CaptureMouse()
  180. * doesn't fit your needs. For example, it could be useful if you need to
  181. * track the mouse while dragging a window, where coordinates relative to a
  182. * window might not be in sync at all times.
  183. *
  184. * Note: SDL_GetMouseState() returns the mouse position as SDL understands it
  185. * from the last pump of the event queue. This function, however, queries the
  186. * OS for the current mouse position, and as such, might be a slightly less
  187. * efficient function. Unless you know what you're doing and have a good
  188. * reason to use this function, you probably want SDL_GetMouseState() instead.
  189. *
  190. * \param x filled in with the current X coord relative to the desktop; can be
  191. * NULL
  192. * \param y filled in with the current Y coord relative to the desktop; can be
  193. * NULL
  194. * \returns the current button state as a bitmask which can be tested using
  195. * the SDL_BUTTON(X) macros.
  196. *
  197. * \since This function is available since SDL 3.0.0.
  198. *
  199. * \sa SDL_CaptureMouse
  200. * \sa SDL_GetMouseState
  201. */
  202. extern SDL_DECLSPEC SDL_MouseButtonFlags SDLCALL SDL_GetGlobalMouseState(float *x, float *y);
  203. /**
  204. * Retrieve the relative state of the mouse.
  205. *
  206. * The current button state is returned as a button bitmask, which can be
  207. * tested using the `SDL_BUTTON(X)` macros (where `X` is generally 1 for the
  208. * left, 2 for middle, 3 for the right button), and `x` and `y` are set to the
  209. * mouse deltas since the last call to SDL_GetRelativeMouseState() or since
  210. * event initialization. You can pass NULL for either `x` or `y`.
  211. *
  212. * \param x a pointer filled with the last recorded x coordinate of the mouse
  213. * \param y a pointer filled with the last recorded y coordinate of the mouse
  214. * \returns a 32-bit button bitmask of the relative button state.
  215. *
  216. * \since This function is available since SDL 3.0.0.
  217. *
  218. * \sa SDL_GetMouseState
  219. */
  220. extern SDL_DECLSPEC SDL_MouseButtonFlags SDLCALL SDL_GetRelativeMouseState(float *x, float *y);
  221. /**
  222. * Move the mouse cursor to the given position within the window.
  223. *
  224. * This function generates a mouse motion event if relative mode is not
  225. * enabled. If relative mode is enabled, you can force mouse events for the
  226. * warp by setting the SDL_HINT_MOUSE_RELATIVE_WARP_MOTION hint.
  227. *
  228. * Note that this function will appear to succeed, but not actually move the
  229. * mouse when used over Microsoft Remote Desktop.
  230. *
  231. * \param window the window to move the mouse into, or NULL for the current
  232. * mouse focus
  233. * \param x the x coordinate within the window
  234. * \param y the y coordinate within the window
  235. *
  236. * \since This function is available since SDL 3.0.0.
  237. *
  238. * \sa SDL_WarpMouseGlobal
  239. */
  240. extern SDL_DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_Window * window,
  241. float x, float y);
  242. /**
  243. * Move the mouse to the given position in global screen space.
  244. *
  245. * This function generates a mouse motion event.
  246. *
  247. * A failure of this function usually means that it is unsupported by a
  248. * platform.
  249. *
  250. * Note that this function will appear to succeed, but not actually move the
  251. * mouse when used over Microsoft Remote Desktop.
  252. *
  253. * \param x the x coordinate
  254. * \param y the y coordinate
  255. * \returns 0 on success or a negative error code on failure; call
  256. * SDL_GetError() for more information.
  257. *
  258. * \since This function is available since SDL 3.0.0.
  259. *
  260. * \sa SDL_WarpMouseInWindow
  261. */
  262. extern SDL_DECLSPEC int SDLCALL SDL_WarpMouseGlobal(float x, float y);
  263. /**
  264. * Set relative mouse mode.
  265. *
  266. * While the mouse is in relative mode, the cursor is hidden, the mouse
  267. * position is constrained to the window, and SDL will report continuous
  268. * relative mouse motion even if the mouse is at the edge of the window.
  269. *
  270. * This function will flush any pending mouse motion.
  271. *
  272. * \param enabled SDL_TRUE to enable relative mode, SDL_FALSE to disable.
  273. * \returns 0 on success or a negative error code on failure; call
  274. * SDL_GetError() for more information.
  275. *
  276. * \since This function is available since SDL 3.0.0.
  277. *
  278. * \sa SDL_GetRelativeMouseMode
  279. */
  280. extern SDL_DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled);
  281. /**
  282. * Capture the mouse and to track input outside an SDL window.
  283. *
  284. * Capturing enables your app to obtain mouse events globally, instead of just
  285. * within your window. Not all video targets support this function. When
  286. * capturing is enabled, the current window will get all mouse events, but
  287. * unlike relative mode, no change is made to the cursor and it is not
  288. * restrained to your window.
  289. *
  290. * This function may also deny mouse input to other windows--both those in
  291. * your application and others on the system--so you should use this function
  292. * sparingly, and in small bursts. For example, you might want to track the
  293. * mouse while the user is dragging something, until the user releases a mouse
  294. * button. It is not recommended that you capture the mouse for long periods
  295. * of time, such as the entire time your app is running. For that, you should
  296. * probably use SDL_SetRelativeMouseMode() or SDL_SetWindowMouseGrab(),
  297. * depending on your goals.
  298. *
  299. * While captured, mouse events still report coordinates relative to the
  300. * current (foreground) window, but those coordinates may be outside the
  301. * bounds of the window (including negative values). Capturing is only allowed
  302. * for the foreground window. If the window loses focus while capturing, the
  303. * capture will be disabled automatically.
  304. *
  305. * While capturing is enabled, the current window will have the
  306. * `SDL_WINDOW_MOUSE_CAPTURE` flag set.
  307. *
  308. * Please note that SDL will attempt to "auto capture" the mouse while the
  309. * user is pressing a button; this is to try and make mouse behavior more
  310. * consistent between platforms, and deal with the common case of a user
  311. * dragging the mouse outside of the window. This means that if you are
  312. * calling SDL_CaptureMouse() only to deal with this situation, you do not
  313. * have to (although it is safe to do so). If this causes problems for your
  314. * app, you can disable auto capture by setting the
  315. * `SDL_HINT_MOUSE_AUTO_CAPTURE` hint to zero.
  316. *
  317. * \param enabled SDL_TRUE to enable capturing, SDL_FALSE to disable.
  318. * \returns 0 on success or a negative error code on failure; call
  319. * SDL_GetError() for more information.
  320. *
  321. * \since This function is available since SDL 3.0.0.
  322. *
  323. * \sa SDL_GetGlobalMouseState
  324. */
  325. extern SDL_DECLSPEC int SDLCALL SDL_CaptureMouse(SDL_bool enabled);
  326. /**
  327. * Query whether relative mouse mode is enabled.
  328. *
  329. * \returns SDL_TRUE if relative mode is enabled or SDL_FALSE otherwise.
  330. *
  331. * \since This function is available since SDL 3.0.0.
  332. *
  333. * \sa SDL_SetRelativeMouseMode
  334. */
  335. extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void);
  336. /**
  337. * Create a cursor using the specified bitmap data and mask (in MSB format).
  338. *
  339. * `mask` has to be in MSB (Most Significant Bit) format.
  340. *
  341. * The cursor width (`w`) must be a multiple of 8 bits.
  342. *
  343. * The cursor is created in black and white according to the following:
  344. *
  345. * - data=0, mask=1: white
  346. * - data=1, mask=1: black
  347. * - data=0, mask=0: transparent
  348. * - data=1, mask=0: inverted color if possible, black if not.
  349. *
  350. * Cursors created with this function must be freed with SDL_DestroyCursor().
  351. *
  352. * If you want to have a color cursor, or create your cursor from an
  353. * SDL_Surface, you should use SDL_CreateColorCursor(). Alternately, you can
  354. * hide the cursor and draw your own as part of your game's rendering, but it
  355. * will be bound to the framerate.
  356. *
  357. * Also, SDL_CreateSystemCursor() is available, which provides several
  358. * readily-available system cursors to pick from.
  359. *
  360. * \param data the color value for each pixel of the cursor
  361. * \param mask the mask value for each pixel of the cursor
  362. * \param w the width of the cursor
  363. * \param h the height of the cursor
  364. * \param hot_x the x-axis offset from the left of the cursor image to the
  365. * mouse x position, in the range of 0 to `w` - 1
  366. * \param hot_y the y-axis offset from the top of the cursor image to the
  367. * mouse y position, in the range of 0 to `h` - 1
  368. * \returns a new cursor with the specified parameters on success or NULL on
  369. * failure; call SDL_GetError() for more information.
  370. *
  371. * \since This function is available since SDL 3.0.0.
  372. *
  373. * \sa SDL_CreateColorCursor
  374. * \sa SDL_CreateSystemCursor
  375. * \sa SDL_DestroyCursor
  376. * \sa SDL_SetCursor
  377. */
  378. extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor(const Uint8 * data,
  379. const Uint8 * mask,
  380. int w, int h, int hot_x,
  381. int hot_y);
  382. /**
  383. * Create a color cursor.
  384. *
  385. * \param surface an SDL_Surface structure representing the cursor image
  386. * \param hot_x the x position of the cursor hot spot
  387. * \param hot_y the y position of the cursor hot spot
  388. * \returns the new cursor on success or NULL on failure; call SDL_GetError()
  389. * for more information.
  390. *
  391. * \since This function is available since SDL 3.0.0.
  392. *
  393. * \sa SDL_CreateCursor
  394. * \sa SDL_CreateSystemCursor
  395. * \sa SDL_DestroyCursor
  396. * \sa SDL_SetCursor
  397. */
  398. extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_CreateColorCursor(SDL_Surface *surface,
  399. int hot_x,
  400. int hot_y);
  401. /**
  402. * Create a system cursor.
  403. *
  404. * \param id an SDL_SystemCursor enum value
  405. * \returns a cursor on success or NULL on failure; call SDL_GetError() for
  406. * more information.
  407. *
  408. * \since This function is available since SDL 3.0.0.
  409. *
  410. * \sa SDL_DestroyCursor
  411. */
  412. extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id);
  413. /**
  414. * Set the active cursor.
  415. *
  416. * This function sets the currently active cursor to the specified one. If the
  417. * cursor is currently visible, the change will be immediately represented on
  418. * the display. SDL_SetCursor(NULL) can be used to force cursor redraw, if
  419. * this is desired for any reason.
  420. *
  421. * \param cursor a cursor to make active
  422. * \returns 0 on success or a negative error code on failure; call
  423. * SDL_GetError() for more information.
  424. *
  425. * \since This function is available since SDL 3.0.0.
  426. *
  427. * \sa SDL_GetCursor
  428. */
  429. extern SDL_DECLSPEC int SDLCALL SDL_SetCursor(SDL_Cursor * cursor);
  430. /**
  431. * Get the active cursor.
  432. *
  433. * This function returns a pointer to the current cursor which is owned by the
  434. * library. It is not necessary to free the cursor with SDL_DestroyCursor().
  435. *
  436. * \returns the active cursor or NULL if there is no mouse.
  437. *
  438. * \since This function is available since SDL 3.0.0.
  439. *
  440. * \sa SDL_SetCursor
  441. */
  442. extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void);
  443. /**
  444. * Get the default cursor.
  445. *
  446. * You do not have to call SDL_DestroyCursor() on the return value, but it is
  447. * safe to do so.
  448. *
  449. * \returns the default cursor on success or NULL on failure.
  450. *
  451. * \since This function is available since SDL 3.0.0.
  452. */
  453. extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_GetDefaultCursor(void);
  454. /**
  455. * Free a previously-created cursor.
  456. *
  457. * Use this function to free cursor resources created with SDL_CreateCursor(),
  458. * SDL_CreateColorCursor() or SDL_CreateSystemCursor().
  459. *
  460. * \param cursor the cursor to free
  461. *
  462. * \since This function is available since SDL 3.0.0.
  463. *
  464. * \sa SDL_CreateColorCursor
  465. * \sa SDL_CreateCursor
  466. * \sa SDL_CreateSystemCursor
  467. */
  468. extern SDL_DECLSPEC void SDLCALL SDL_DestroyCursor(SDL_Cursor * cursor);
  469. /**
  470. * Show the cursor.
  471. *
  472. * \returns 0 on success or a negative error code on failure; call
  473. * SDL_GetError() for more information.
  474. *
  475. * \since This function is available since SDL 3.0.0.
  476. *
  477. * \sa SDL_CursorVisible
  478. * \sa SDL_HideCursor
  479. */
  480. extern SDL_DECLSPEC int SDLCALL SDL_ShowCursor(void);
  481. /**
  482. * Hide the cursor.
  483. *
  484. * \returns 0 on success or a negative error code on failure; call
  485. * SDL_GetError() for more information.
  486. *
  487. * \since This function is available since SDL 3.0.0.
  488. *
  489. * \sa SDL_CursorVisible
  490. * \sa SDL_ShowCursor
  491. */
  492. extern SDL_DECLSPEC int SDLCALL SDL_HideCursor(void);
  493. /**
  494. * Return whether the cursor is currently being shown.
  495. *
  496. * \returns `SDL_TRUE` if the cursor is being shown, or `SDL_FALSE` if the
  497. * cursor is hidden.
  498. *
  499. * \since This function is available since SDL 3.0.0.
  500. *
  501. * \sa SDL_HideCursor
  502. * \sa SDL_ShowCursor
  503. */
  504. extern SDL_DECLSPEC SDL_bool SDLCALL SDL_CursorVisible(void);
  505. /* Ends C function definitions when using C++ */
  506. #ifdef __cplusplus
  507. }
  508. #endif
  509. #include <SDL3/SDL_close_code.h>
  510. #endif /* SDL_mouse_h_ */