SDL: Fix incorrect type in SDL_GetMice() and SDL_GetKeyboards() allocation (#14870)

From 124c5922aaee0a3719031a3525cfe22aa08708fb Mon Sep 17 00:00:00 2001
From: Thour <[EMAIL REDACTED]>
Date: Tue, 20 Jan 2026 04:53:55 +0530
Subject: [PATCH] Fix incorrect type in SDL_GetMice() and SDL_GetKeyboards()
 allocation (#14870)

---
 src/events/SDL_keyboard.c | 2 +-
 src/events/SDL_mouse.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c
index 97bf2934fda7b..0945339e4479d 100644
--- a/src/events/SDL_keyboard.c
+++ b/src/events/SDL_keyboard.c
@@ -179,7 +179,7 @@ SDL_KeyboardID *SDL_GetKeyboards(int *count)
     int i;
     SDL_KeyboardID *keyboards;
 
-    keyboards = (SDL_JoystickID *)SDL_malloc((SDL_keyboard_count + 1) * sizeof(*keyboards));
+    keyboards = (SDL_KeyboardID *)SDL_malloc((SDL_keyboard_count + 1) * sizeof(*keyboards));
     if (keyboards) {
         if (count) {
             *count = SDL_keyboard_count;
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index e8b647dfe0101..80bd6495f261a 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -422,7 +422,7 @@ SDL_MouseID *SDL_GetMice(int *count)
     int i;
     SDL_MouseID *mice;
 
-    mice = (SDL_JoystickID *)SDL_malloc((SDL_mouse_count + 1) * sizeof(*mice));
+    mice = (SDL_MouseID *)SDL_malloc((SDL_mouse_count + 1) * sizeof(*mice));
     if (mice) {
         if (count) {
             *count = SDL_mouse_count;