(a00338777) v0.9.2.1

This commit is contained in:
Joonas Rikkonen
2019-08-26 19:58:19 +03:00
parent 0f63da27b2
commit 80698b58b0
311 changed files with 11763 additions and 4507 deletions
@@ -161,7 +161,7 @@ namespace Microsoft.Xna.Framework.Input
return Keys.None;
}
public static char ApplyModifiers(char chr, Sdl.Keyboard.Keymod mods)
public static int ApplyModifiers(int chr, Sdl.Keyboard.Keymod mods)
{
//TODO: this is not by any means comprehensive
if ((mods & Sdl.Keyboard.Keymod.Ctrl) == Sdl.Keyboard.Keymod.None) return chr;
@@ -169,22 +169,22 @@ namespace Microsoft.Xna.Framework.Input
{
case 'a':
case 'A':
return (char)0x1;
return 0x1;
case 'r':
case 'R':
return (char)0x12;
return 0x12;
case 'z':
case 'Z':
return (char)0x1A;
return 0x1A;
case 'x':
case 'X':
return (char)0x18;
return 0x18;
case 'c':
case 'C':
return (char)0x3;
return 0x3;
case 'v':
case 'V':
return (char)0x16;
return 0x16;
}
return chr;
}