sdl12-compat: Add the NONUSBACKSLASH scancode

From aa9919b116ff9a689ace9ab70241f657a9f2da52 Mon Sep 17 00:00:00 2001
From: David Gow <[EMAIL REDACTED]>
Date: Mon, 19 Jul 2021 21:36:14 +0800
Subject: [PATCH] Add the NONUSBACKSLASH scancode

Currently the NONUSBACKSLASH key doesn't map to a scancode at all.
It appears to map to 0x32 on macOS[1], and as best I can tell, it is
KEY_102ND in Linux/evdev, which is 0x56 (and since we need to add 8,
should be 0x5E).

DOSBox seems to handle this key specially on Windows (with the 0x56
code, which seems right), and treats it as BACKTICK on macOS. It doesn't
seem to be handled at all on Linux (where it might actually be mapped to
the right-arrow key if evdev detection fails, so this could introduce a
bug here if the SDL_GetWMInfo bits don't work out.)

[1] https://github.com/libsdl-org/sdl12-compat/issues/84#issuecomment-882555428
---
 src/SDL12_compat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index c2eb891..59e8ea8 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2831,6 +2831,7 @@ Scancode20to12(SDL_Scancode sc)
     CASESCANCODE20TO12(M, 0x3A, 0x2E);
     CASESCANCODE20TO12(MINUS, 0x14, 0x1B);
     CASESCANCODE20TO12(N, 0x39, 0x2D);
+    CASESCANCODE20TO12(NONUSBACKSLASH, 0x33, 0x2A);
     CASESCANCODE20TO12(NUMLOCKCLEAR, 0x4D, 0x47);
     CASESCANCODE20TO12(O, 0x20, 0x1F);
     CASESCANCODE20TO12(P, 0x21, 0x23);