# Unrecognized function or variable 'moglcore'

**URL:** <https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453>\
**Category:** Bugs & Features\
**Tags:** macos\
**Created:** [October 19, 2020, 11:16am UTC](https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453 "2020-10-19T11:16:26Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![PaulLinton](https://yyz2.discourse-cdn.com/free1/user_avatar/psychtoolbox.discourse.group/paullinton/32/518_2.png) [@PaulLinton](https://psychtoolbox.discourse.group/u/PaulLinton)\
**Post date:** [October 20, 2020, 11:21am UTC](https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453/10 "2020-10-20T11:21:50Z")

</div>

Thanks so much Dee and Mario, I really appreciate your advice.

Yes, the other mex files working ok. And I tried the workarounds that gabrielino00 and gholland suggested in the previous thread but they didn’t work for me:

> [@KbDemo not working, Mac OSX Catalina](https://psychtoolbox.discourse.group/t/kbdemo-not-working-mac-osx-catalina/3042):
>
> Mac OSX Catalina 10.15.3, MacBook Pro (15-inch, 2017), Matlab 2019b I searched the forum for a thread on the topic, but didn’t find one … apologies if I overlooked something. And I’m aware that using the toolbox with Catalina is not a good idea … sorry. When running KbDemo and I press a key, there’s no response (except the key being printed in the Matlab command window). I can only exit by Ctrl-C. Output looks as follows (I pressed fghj): 1 of 4. Testing KbCheck and KbName: press a key …

[See also [KbDemo not working on Catalina, allowing input monitoring does not help - #2 by mariokleiner](https://psychtoolbox.discourse.group/t/kbdemo-not-working-on-catalina-allowing-input-monitoring-does-not-help/3169/2) ]

It turned out to be the same issue that Han was having before:

> [@KbDemo not working, Mac OSX Catalina](https://psychtoolbox.discourse.group/t/kbdemo-not-working-mac-osx-catalina/3042/12):
>
> So basically a totally broken security UI workflow in Apples latest macOS Vista trainwreck. That’s not a Matlab bug for sure. It’s a sign of poor operating system engineering that a piece of standard userspace application software that is not close to system level would need to frequently adjust to a new OS version. From the category “Only in the magic world of Apple”. I’m pretty sure the only way to be sure your camera can’t spy on you on any OS + hw combo is to put a sticker over it. And dis…

KbDemo is picking up the escape key ok (and therefore the touchbar) but not the keyboard. Setting KbWait() to KbWait(-1) fixes this, but the workaround in psychtoolbox doesn’t seem to be working for me with Catalina.

Thanks so much for you both for all your help on this, I really appreciate it,

Paul

---

_[View the full topic](https://psychtoolbox.discourse.group/t/unrecognized-function-or-variable-moglcore/3453)._
