[iortcw] 69/152: All: Add Pan7's special key mappings

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit 475bceba8633aacf8d0bdf7c8b4ef41a59860ffb
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sun Jun 5 15:56:55 2016 -0400

    All: Add Pan7's special key mappings
---
 MP/code/sdl/sdl_input.c | 34 ++++++++++++++++++++++++++++++++--
 SP/code/sdl/sdl_input.c | 34 ++++++++++++++++++++++++++++++++--
 2 files changed, 64 insertions(+), 4 deletions(-)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 754c750..383878d 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -793,11 +793,41 @@ static void IN_ProcessEvents( void )
 								Com_QueueEvent( 0, SE_KEY, K_CONSOLE, qtrue, 0, NULL );
 								Com_QueueEvent( 0, SE_KEY, K_CONSOLE, qfalse, 0, NULL );
 							}
+							else if( utf32 == 0xDC ) // latin big letter u with diaeresis (U+00DC)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'U', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xFC ) // latin small letter u with diaeresis (U+00FC)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'u', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xD6 ) // latin big letter o with diaeresis (U+00D6)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'O', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xF6 ) // latin small letter o with diaeresis (U+00FC)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'o', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xC4 ) // latin big letter a with diaeresis (U+00C4)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'A', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xE4 ) // latin small letter a with diaeresis (U+00E4)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'a', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
 							else
 								Com_QueueEvent( 0, SE_CHAR, utf32, 0, 0, NULL );
 						}
-          }
-        }
+					}
+				}
 				break;
 
 			case SDL_MOUSEMOTION:
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 754c750..383878d 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -793,11 +793,41 @@ static void IN_ProcessEvents( void )
 								Com_QueueEvent( 0, SE_KEY, K_CONSOLE, qtrue, 0, NULL );
 								Com_QueueEvent( 0, SE_KEY, K_CONSOLE, qfalse, 0, NULL );
 							}
+							else if( utf32 == 0xDC ) // latin big letter u with diaeresis (U+00DC)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'U', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xFC ) // latin small letter u with diaeresis (U+00FC)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'u', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xD6 ) // latin big letter o with diaeresis (U+00D6)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'O', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xF6 ) // latin small letter o with diaeresis (U+00FC)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'o', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xC4 ) // latin big letter a with diaeresis (U+00C4)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'A', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
+							else if( utf32 == 0xE4 ) // latin small letter a with diaeresis (U+00E4)
+							{
+								Com_QueueEvent( 0, SE_CHAR, 'a', 0, 0, NULL );
+								Com_QueueEvent( 0, SE_CHAR, 'e', 0, 0, NULL );
+							}
 							else
 								Com_QueueEvent( 0, SE_CHAR, utf32, 0, 0, NULL );
 						}
-          }
-        }
+					}
+				}
 				break;
 
 			case SDL_MOUSEMOTION:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list