/// <summary>
 /// Created per cached keystrokeevent
 ///
 /// doesn't store the exact keystroke, but the type of the keystroke (KeystrokeType)
 /// </summary>
 /// <param name="e"></param>
 public KeystrokeEvent(KeyEventArgs e)
 {
     Timestamp     = DateTime.Now;
     KeystrokeType = GetKeyStrokeType(e.KeyData.ToString());
 }
Example #2
0
        //public double Delay { get; set; }

        /// <summary>
        /// Constructor por parĂ¡metros, con delay por defecto de 0.5 segundos
        /// </summary>
        /// <param name="keystrokeType"></param>
        /// <param name="key"></param>
        public Keystroke(KeystrokeType keystrokeType, Key key)
        {
            KeystrokeType = keystrokeType;
            Key           = key;
            //Delay = 0.5;
        }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="strokeType">Specify the keystroke type, down or up</param>
 /// <param name="key">Key involved</param>
 public void AddKeystroke(KeystrokeType strokeType, Key key)
 {
     _Keystrokes.Add(new Keystroke(strokeType, key));
 }