• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Keyboard problems in Logic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Keyboard problems in Logic


  • Subject: RE: Keyboard problems in Logic
  • From: john smith <email@hidden>
  • Date: Thu, 13 Aug 2009 10:10:05 +0200
  • Importance: Normal


So, no-one has a take on the problem described below? Is there anyone from Apple and/or Emagic here?


Thanks,

Michael Olsen
PhonoXone



From: email@hidden
To: email@hidden
Date: Mon, 10 Aug 2009 13:01:16 +0200
Subject: Keyboard problems in Logic


Hi,

I'm trying to solve a problem we have with a plug-in in Logic.

When the user press a key, we want to route the keyboard input to one of our controls if the control is in "edit mode". In order to accomblish this I hooked into the keyboard, using the following code:

OSStatus err;

EventTargetRef pEventTarget;
// GetWindowRef() returns AUCarbonViewBase::mCarbonWindow
pEventTarget = ::GetWindowEventTarget(GetWindowRef());

EventTypeSpec pSpec[1];
pSpec[0].eventClass = kEventClassKeyboard;
pSpec[0].eventKind = kEventRawKeyDown;

err = ::InstallEventHandler(pEventTarget,
   KeyboardHandlerProc,
   1,
   pSpec,
   (void*)dynamic_cast<CWindowOSX*>(this),
   &mKeyboardRef);

In the keyboard proc I then return noErr or eventNotHandledErr, depending on whether we used the keyboard press for something.


Now, the problem is that Logic seems to get the "first run" on the keyboard events. For instance, if 1 is pressed we get the keyboard input, and all is well. If 0 is pressed, we never get the event (Logic seems to use this as a shortcut).

So, as said, it seems to me like Logic first decides whether it wants the event or not. Which is, obviously, reversed to how we would like it.


Is there anything which can be done about this?


Thanks,

Michael Olsen
PhonoXone


Share your memories online with anyone you want anyone you want.

check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keyboard problems in Logic
      • From: Half Activist <email@hidden>
    • Re: Keyboard problems in Logic
      • From: tahome izwah <email@hidden>
References: 
 >AudioQueue - Setting channel layout (From: Richard Bannister <email@hidden>)
 >Keyboard problems in Logic (From: john smith <email@hidden>)

  • Prev by Date: Re: Audio glitches during playback thru Remote IO unit (iPhone)
  • Next by Date: Re: Keyboard problems in Logic
  • Previous by thread: Keyboard problems in Logic
  • Next by thread: Re: Keyboard problems in Logic
  • Index(es):
    • Date
    • Thread