Tinkr2/4.2/AphelionCore/AphelionCore/Core/Core.cs
/// <summary>
/// Manually inform core of a keyboard alt key event.
/// </summary>
/// <param name="key">Id of alt key affected</param>
/// <param name="pressed">true if the key is pressed; false if released.</param>
/// <remarks>
/// Use RaiseKeyboardAltKeyEvent to inject a alt key event into the system.
/// </remarks>
Manually inform core of a keyboard alt key event.
Manually inform core of a keyboard alt key event .
public static void RaiseKeyboardAltKeyEvent(int key, bool pressed)
      {
         switch (key)
         {
            case 225:
            case 229:       
               _instance._shift = pressed;
               break;
            case 224:
            case 228:       
               _instance._ctrl = pressed;
               break;
            case 226:
            case 230:       
               _instance._alt = pressed;
               break;
         }
         if (_instance._active != null)
         {
            _instance._active.SendKeyboardAltKeyEvent(key, pressed);
         }
         _instance.OnKeyboardAltKeyEvent(key, pressed);
      }
public static void RaiseKeyboardAltKeyEvent ( int key , bool pressed ) { switch ( key ) { case 225 : case 229 : _instance . _shift = pressed ; break ; case 224 : case 228 : _instance . _ctrl = pressed ; break ; case 226 : case 230 : _instance . _alt = pressed ; break ; } if ( _instance . _active != null ) { _instance . _active . SendKeyboardAltKeyEvent ( key , pressed ) ; } _instance . OnKeyboardAltKeyEvent ( key , pressed ) ; }
Manually inform core of a keyboard alt key event.
Manually inform core of a keyboard alt key event .
// Left & Right Shifts // Left & Right Controls // Left & Right Alts
key
int
Id of alt key affected
Id of alt key affected
pressed
bool
true if the key is pressed; false if released.
true if the key is pressed ; false if released .
remarks
Use RaiseKeyboardAltKeyEvent to inject a alt key event into the system.
Use RaiseKeyboardAltKeyEvent to inject a alt key event into the system .