Platforms to show: All Mac Windows Linux Cross-Platform

Back to MediaKeysMBS class.

MediaKeysMBS.receivedMediaKeyEvent(e as NSEventMBS, keyCode as Integer, keyFlags as Integer, keyState as Integer, keyRepeat as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Media Keys MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
The event called when the user uses one of the special keys we listen for.

If you don't get the event, did you make sure all conditions are right?

  • Requires Mac OS X 10.5
  • Keys(x) set to kModeEventAndBlock or kModeEventAndPass for the keys you need?
  • startWatchingMediaKeys called?
  • your object is still alive in your application?

Some examples using this event:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...