Пример #1
0
 public Input()
 {
     Key = new Dictionary<Keyboard.Key, KeyEvent>();
     MouseButton = new Dictionary<Mouse.Button, MouseButtonEvent>();
     Text = null;
     MouseWheel = null;
     MouseMove = null;
 }
Пример #2
0
 /// <summary>
 /// Constructs the text arguments from a text event.
 /// </summary>
 /// <param name="e">Text event.</param>
 public TextEventArgs(TextEvent e)
 {
     Unicode = Char.ConvertFromUtf32((int)e.Unicode);
 }
Пример #3
0
 /// <summary>
 /// Construct the text arguments from a text event
 /// </summary>
 /// <param name="e">Text event</param>
 ////////////////////////////////////////////////////////////
 public TextEventArgs(TextEvent e)
 {
     Unicode = Char.ConvertFromUtf32((int)e.Unicode);
 }