174 m_cachedKeyEvents.Enqueue(
new KeyInfo(key, press, unicodeChar));
416 Silk.NET.Input.Key.ShiftLeft or Silk.NET.Input.Key.ShiftRight =>
Key.Shift,
417 Silk.NET.Input.Key.ControlLeft or Silk.NET.Input.Key.ControlRight =>
Key.Control,
418 Silk.NET.Input.Key.F1 =>
Key.F1,
419 Silk.NET.Input.Key.F2 =>
Key.F2,
420 Silk.NET.Input.Key.F3 =>
Key.F3,
421 Silk.NET.Input.Key.F4 =>
Key.F4,
422 Silk.NET.Input.Key.F5 =>
Key.F5,
423 Silk.NET.Input.Key.F6 =>
Key.F6,
424 Silk.NET.Input.Key.F7 =>
Key.F7,
425 Silk.NET.Input.Key.F8 =>
Key.F8,
426 Silk.NET.Input.Key.F9 =>
Key.F9,
427 Silk.NET.Input.Key.F10 =>
Key.F10,
428 Silk.NET.Input.Key.F11 =>
Key.F11,
429 Silk.NET.Input.Key.F12 =>
Key.F12,
430 Silk.NET.Input.Key.Up =>
Key.UpArrow,
431 Silk.NET.Input.Key.Down =>
Key.DownArrow,
432 Silk.NET.Input.Key.Left =>
Key.LeftArrow,
433 Silk.NET.Input.Key.Right =>
Key.RightArrow,
434 Silk.NET.Input.Key.Enter or Silk.NET.Input.Key.KeypadEnter =>
Key.Enter,
435 Silk.NET.Input.Key.Escape =>
Key.Escape,
436 Silk.NET.Input.Key.Space =>
Key.Space,
437 Silk.NET.Input.Key.Tab =>
Key.Tab,
438 Silk.NET.Input.Key.Backspace =>
Key.BackSpace,
439 Silk.NET.Input.Key.Insert =>
Key.Insert,
440 Silk.NET.Input.Key.Delete =>
Key.Delete,
441 Silk.NET.Input.Key.PageUp =>
Key.PageUp,
442 Silk.NET.Input.Key.PageDown =>
Key.PageDown,
443 Silk.NET.Input.Key.Home =>
Key.Home,
444 Silk.NET.Input.Key.End =>
Key.End,
445 Silk.NET.Input.Key.CapsLock =>
Key.CapsLock,
446 Silk.NET.Input.Key.A =>
Key.A,
447 Silk.NET.Input.Key.B =>
Key.B,
448 Silk.NET.Input.Key.C =>
Key.C,
449 Silk.NET.Input.Key.D =>
Key.D,
450 Silk.NET.Input.Key.E =>
Key.E,
451 Silk.NET.Input.Key.F =>
Key.F,
452 Silk.NET.Input.Key.G =>
Key.G,
453 Silk.NET.Input.Key.H =>
Key.H,
454 Silk.NET.Input.Key.I =>
Key.I,
455 Silk.NET.Input.Key.J =>
Key.J,
456 Silk.NET.Input.Key.K =>
Key.K,
457 Silk.NET.Input.Key.L =>
Key.L,
458 Silk.NET.Input.Key.M =>
Key.M,
459 Silk.NET.Input.Key.N =>
Key.N,
460 Silk.NET.Input.Key.O =>
Key.O,
461 Silk.NET.Input.Key.P =>
Key.P,
462 Silk.NET.Input.Key.Q =>
Key.Q,
463 Silk.NET.Input.Key.R =>
Key.R,
464 Silk.NET.Input.Key.S =>
Key.S,
465 Silk.NET.Input.Key.T =>
Key.T,
466 Silk.NET.Input.Key.U =>
Key.U,
467 Silk.NET.Input.Key.V =>
Key.V,
468 Silk.NET.Input.Key.W =>
Key.W,
469 Silk.NET.Input.Key.X =>
Key.X,
470 Silk.NET.Input.Key.Y =>
Key.Y,
471 Silk.NET.Input.Key.Z =>
Key.Z,
472 Silk.NET.Input.Key.Number0 or Silk.NET.Input.Key.Keypad0 =>
Key.Number0,
473 Silk.NET.Input.Key.Number1 or Silk.NET.Input.Key.Keypad1 =>
Key.Number1,
474 Silk.NET.Input.Key.Number2 or Silk.NET.Input.Key.Keypad2 =>
Key.Number2,
475 Silk.NET.Input.Key.Number3 or Silk.NET.Input.Key.Keypad3 =>
Key.Number3,
476 Silk.NET.Input.Key.Number4 or Silk.NET.Input.Key.Keypad4 =>
Key.Number4,
477 Silk.NET.Input.Key.Number5 or Silk.NET.Input.Key.Keypad5 =>
Key.Number5,
478 Silk.NET.Input.Key.Number6 or Silk.NET.Input.Key.Keypad6 =>
Key.Number6,
479 Silk.NET.Input.Key.Number7 or Silk.NET.Input.Key.Keypad7 =>
Key.Number7,
480 Silk.NET.Input.Key.Number8 or Silk.NET.Input.Key.Keypad8 =>
Key.Number8,
481 Silk.NET.Input.Key.Number9 or Silk.NET.Input.Key.Keypad9 =>
Key.Number9,
482 Silk.NET.Input.Key.GraveAccent =>
Key.Tilde,
483 Silk.NET.Input.Key.Minus or Silk.NET.Input.Key.KeypadSubtract =>
Key.Minus,
484 Silk.NET.Input.Key.Equal or Silk.NET.Input.Key.KeypadAdd =>
Key.Plus,
485 Silk.NET.Input.Key.LeftBracket =>
Key.LeftBracket,
486 Silk.NET.Input.Key.RightBracket =>
Key.RightBracket,
487 Silk.NET.Input.Key.Semicolon =>
Key.Semicolon,
488 Silk.NET.Input.Key.Apostrophe =>
Key.Quote,
489 Silk.NET.Input.Key.Comma =>
Key.Comma,
490 Silk.NET.Input.Key.Period or Silk.NET.Input.Key.KeypadDecimal =>
Key.Period,
491 Silk.NET.Input.Key.Slash or Silk.NET.Input.Key.KeypadDivide =>
Key.Slash,
492 Silk.NET.Input.Key.BackSlash =>
Key.BackSlash,
493 Silk.NET.Input.Key.AltLeft or Silk.NET.Input.Key.AltRight =>
Key.Alt,
502 Action<string> enter,
506 AlertDialog.Builder builder =
new(
Window.Activity);
507 builder.SetTitle(title);
508 builder.SetMessage(description);
509 EditText editText =
new(
Window.Activity);
510 editText.Text = defaultText;
511 builder.SetView(editText);
512 builder.SetPositiveButton(
"Ok", delegate { enter(editText.Text); });
513 builder.SetNegativeButton(
"Cancel", delegate { cancel(); });
514 Window.Activity.RunOnUiThread(() => {
515 AlertDialog alertDialog = builder.Create();
516 if (alertDialog ==
null) {
519 alertDialog.DismissEvent += delegate { cancel(); };
520 alertDialog.CancelEvent += delegate { cancel(); };
521 alertDialog.Window?.Attributes?.Gravity = GravityFlags.Center;