From 96e7306a7ad8326c33fb445620328069f7489525 Mon Sep 17 00:00:00 2001
From: SDL Wiki Bot <[EMAIL REDACTED]>
Date: Sun, 27 Oct 2024 21:41:54 +0000
Subject: [PATCH] Sync SDL2 wiki -> header
[ci skip]
---
include/SDL_events.h | 8 ++++----
include/SDL_gamecontroller.h | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/include/SDL_events.h b/include/SDL_events.h
index 6dcaa5cb1557a..95edc39b64243 100644
--- a/include/SDL_events.h
+++ b/include/SDL_events.h
@@ -413,8 +413,8 @@ typedef struct SDL_JoyButtonEvent
/**
* Joystick device event structure (event.jdevice.*)
*
- * SDL will send JOYSTICK_ADDED events for devices that
- * are already plugged in during SDL_Init.
+ * SDL will send JOYSTICK_ADDED events for devices that are already plugged in
+ * during SDL_Init.
*
* \sa SDL_ControllerDeviceEvent
*/
@@ -474,8 +474,8 @@ typedef struct SDL_ControllerButtonEvent
* Joysticks that are supported game controllers receive both an
* SDL_JoyDeviceEvent and an SDL_ControllerDeviceEvent.
*
- * SDL will send CONTROLLERDEVICEADDED events for joysticks that are already plugged
- * in during SDL_Init() and are recognized as game controllers.
+ * SDL will send CONTROLLERDEVICEADDED events for joysticks that are already
+ * plugged in during SDL_Init() and are recognized as game controllers.
*/
typedef struct SDL_ControllerDeviceEvent
{
diff --git a/include/SDL_gamecontroller.h b/include/SDL_gamecontroller.h
index 8ef27c53c91e5..f4a1e6d87007a 100644
--- a/include/SDL_gamecontroller.h
+++ b/include/SDL_gamecontroller.h
@@ -146,9 +146,9 @@ typedef struct SDL_GameControllerButtonBind
* If a new mapping is loaded for an already known controller GUID, the later
* version will overwrite the one currently loaded.
*
- * If this function is called before SDL_Init, SDL will generate
- * an SDL_CONTROLLERDEVICEADDED event for matching controllers that are
- * plugged in at the time that SDL_Init is called.
+ * If this function is called before SDL_Init, SDL will generate an
+ * SDL_CONTROLLERDEVICEADDED event for matching controllers that are plugged
+ * in at the time that SDL_Init is called.
*
* Mappings not belonging to the current platform or with no platform field
* specified will be ignored (i.e. mappings for Linux will be ignored in
@@ -198,9 +198,9 @@ extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw,
* "341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7"
* ```
*
- * If this function is called before SDL_Init, SDL will generate
- * an SDL_CONTROLLERDEVICEADDED event for matching controllers that are
- * plugged in at the time that SDL_Init is called.
+ * If this function is called before SDL_Init, SDL will generate an
+ * SDL_CONTROLLERDEVICEADDED event for matching controllers that are plugged
+ * in at the time that SDL_Init is called.
*
* \param mappingString the mapping string.
* \returns 1 if a new mapping is added, 0 if an existing mapping is updated,