From e4e29b86012bf7cf1bc35082d459f0cfde5c8c4a Mon Sep 17 00:00:00 2001
From: Lilian Gimenez <[EMAIL REDACTED]>
Date: Fri, 20 Jun 2025 12:53:21 +0200
Subject: [PATCH] Fix support for F21 to F24 scancodes on Linux
---
src/events/scancodes_xfree86.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/events/scancodes_xfree86.h b/src/events/scancodes_xfree86.h
index 5e51bb17c4972..81d625e8ec9e9 100644
--- a/src/events/scancodes_xfree86.h
+++ b/src/events/scancodes_xfree86.h
@@ -371,10 +371,10 @@ static const SDL_Scancode xfree86_scancode_table2[] = {
/* 188, 0x0bc */ SDL_SCANCODE_F18, // XF86Launch9
/* 189, 0x0bd */ SDL_SCANCODE_F19, // NoSymbol
/* 190, 0x0be */ SDL_SCANCODE_F20, // XF86AudioMicMute
- /* 191, 0x0bf */ SDL_SCANCODE_UNKNOWN, // XF86TouchpadToggle
- /* 192, 0x0c0 */ SDL_SCANCODE_UNKNOWN, // XF86TouchpadOn
- /* 193, 0x0c1 */ SDL_SCANCODE_UNKNOWN, // XF86TouchpadOff
- /* 194, 0x0c2 */ SDL_SCANCODE_UNKNOWN, // NoSymbol
+ /* 191, 0x0bf */ SDL_SCANCODE_F21, // XF86TouchpadToggle
+ /* 192, 0x0c0 */ SDL_SCANCODE_F22, // XF86TouchpadOn
+ /* 193, 0x0c1 */ SDL_SCANCODE_F23, // XF86TouchpadOff
+ /* 194, 0x0c2 */ SDL_SCANCODE_F24, // NoSymbol
/* 195, 0x0c3 */ SDL_SCANCODE_MODE, // Mode_switch
/* 196, 0x0c4 */ SDL_SCANCODE_UNKNOWN, // NoSymbol
/* 197, 0x0c5 */ SDL_SCANCODE_UNKNOWN, // NoSymbol