Permalink
Browse files

Added full alphabet to keyboard class in Android/Input/Keyboard.cs

Signed-off-by: tophathacker <tophathacker@gmail.com>
  • Loading branch information...
1 parent 15d682f commit bf318c101ed1205b421f3d506b947618b101a604 @tophathacker tophathacker committed May 23, 2012
Showing with 37 additions and 6 deletions.
  1. +37 −6 MonoGame.Framework/Android/Input/Keyboard.cs
@@ -77,17 +77,48 @@ public static void KeyUp(Keycode keyCode)
maps[Keycode.DpadUp] = Keys.Up;
maps[Keycode.DpadDown] = Keys.Down;
maps[Keycode.DpadCenter] = Keys.Enter;
+ maps[Keycode.Num0] = Keys.D0;
+ maps[Keycode.Num1] = Keys.D1;
+ maps[Keycode.Num2] = Keys.D2;
+ maps[Keycode.Num3] = Keys.D3;
+ maps[Keycode.Num4] = Keys.D4;
+ maps[Keycode.Num5] = Keys.D5;
+ maps[Keycode.Num6] = Keys.D6;
+ maps[Keycode.Num7] = Keys.D7;
+ maps[Keycode.Num8] = Keys.D8;
+ maps[Keycode.Num9] = Keys.D9;
maps[Keycode.A] = Keys.A;
- maps[Keycode.Y] = Keys.Y;
- maps[Keycode.X] = Keys.X;
- maps[Keycode.B] = Keys.B;
- maps[Keycode.S] = Keys.S;
+ maps[Keycode.B] = Keys.B;
+ maps[Keycode.C] = Keys.C;
+ maps[Keycode.D] = Keys.D;
+ maps[Keycode.E] = Keys.E;
+ maps[Keycode.F] = Keys.F;
+ maps[Keycode.G] = Keys.G;
+ maps[Keycode.H] = Keys.H;
+ maps[Keycode.I] = Keys.I;
+ maps[Keycode.J] = Keys.J;
+ maps[Keycode.K] = Keys.K;
+ maps[Keycode.L] = Keys.L;
+ maps[Keycode.M] = Keys.M;
+ maps[Keycode.N] = Keys.N;
+ maps[Keycode.O] = Keys.O;
+ maps[Keycode.P] = Keys.P;
+ maps[Keycode.Q] = Keys.Q;
+ maps[Keycode.R] = Keys.R;
+ maps[Keycode.S] = Keys.S;
+ maps[Keycode.T] = Keys.T;
+ maps[Keycode.U] = Keys.U;
+ maps[Keycode.V] = Keys.V;
maps[Keycode.W] = Keys.W;
- maps[Keycode.D] = Keys.D;
+ maps[Keycode.X] = Keys.X;
+ maps[Keycode.Y] = Keys.Y;
+ maps[Keycode.C] = Keys.Z;
maps[Keycode.Back] = Keys.Escape;
maps[Keycode.Back] = Keys.Back;
maps[Keycode.Home] = Keys.Home;
- maps[Keycode.Enter] = Keys.Enter;
+ maps[Keycode.Enter] = Keys.Enter;
+ maps[Keycode.Period] = Keys.OemPeriod;
+ maps[Keycode.Comma] = Keys.OemComma;
// TODO: put in all the other mappings
maps[Keycode.Menu] = Keys.Help;
maps[Keycode.Search] = Keys.BrowserSearch;

0 comments on commit bf318c1

Please sign in to comment.