VST2.4 specs 
HOME   |   Software       VST2.4 specs :: FIRST   -   PREV   -   NEXT

effEditKeyUp / onKeyUp()


C++: VstIntPtr function dispatcher(AEffect* e, VstInt32 opcode, VstInt32 index, VstIntPtr value, void* ptr, float opt);
Delphi: function dispatcher(e: PAEffect; opcode, index: VstInt32; value: VstIntPtr; ptr: pointer; opt: Single): VstIntPtr; cdecl;
always returns 0, unless otherwise defined.
all string-pointers points to zero terminated strings.
e[ ]: = plugin receives as entry parameter
x[ ]: = plugin returns to host

dispatcher() function using opcode 60:
60. effEditKeyUp   >= VST2.1   (editor)   @see AEffEditor::onKeyUp()
e[index]: character
e[value]: virtual key-code
e[opt]: key-modifiers
x[return]: 0 = not KeyUp used, 1 = KeyUp used

C++ method:
 bool AEffEditor::onKeyUp(VstKeyCode& keyCode)

Delphi method:
 function AEffEditor.onKeyUp(var keyCode: TVstKeyCode): VstInt32;

VstKeyCode structure:
 struct VstKeyCode
 {
  VstInt32 character;     // ASCII character
  unsigned char virt;     // @see VstVirtualKey
  unsigned char modifier; // @see VstModifierKey
 };

FIRST   -   PREV   -   NEXT   -   TOP