Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Control.cs
/// <summary>
/// Directly inform control of keyboard key events
/// </summary>
/// <param name="key">Integer value of the key affected</param>
/// <param name="pressed">True if the key is currently being pressed; false if released</param>
Directly inform control of keyboard key events
Directly inform control of keyboard key events
public void SendKeyboardKeyEvent(char key, bool pressed)
      {
         bool handled = false;
         KeyboardKeyMessage(key, pressed, ref handled);
         if (!handled)
         {
            OnKeyboardKey(this, key, pressed);
         }
      }
public void SendKeyboardKeyEvent ( char key , bool pressed ) { bool handled = false ; KeyboardKeyMessage ( key , pressed , ref handled ) ; if ( ! handled ) { OnKeyboardKey ( this , key , pressed ) ; } }
Directly inform control of keyboard key events
Directly inform control of keyboard key events
key
char
Integer value of the key affected
Integer value of the key affected
pressed
bool
True if the key is currently being pressed; false if released
True if the key is currently being pressed ; false if released