Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

juce_events.cpp 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. The code included in this file is provided under the terms of the ISC license
  8. http://www.isc.org/downloads/software-support-policy/isc-license. Permission
  9. To use, copy, modify, and/or distribute this software for any purpose with or
  10. without fee is hereby granted provided that the above copyright notice and
  11. this permission notice appear in all copies.
  12. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  13. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  14. DISCLAIMED.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_EVENTS_H_INCLUDED
  18. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  19. already included any other headers - just put it inside a file on its own, possibly with your config
  20. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  21. header files that the compiler may be using.
  22. */
  23. #error "Incorrect use of JUCE cpp file"
  24. #endif
  25. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  26. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  27. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  28. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  29. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  30. #if JUCE_USE_WINRT_MIDI
  31. #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1
  32. #endif
  33. #include "juce_events.h"
  34. //==============================================================================
  35. #if JUCE_MAC
  36. #import <IOKit/IOKitLib.h>
  37. #import <IOKit/IOCFPlugIn.h>
  38. #import <IOKit/hid/IOHIDLib.h>
  39. #import <IOKit/hid/IOHIDKeys.h>
  40. #import <IOKit/pwr_mgt/IOPMLib.h>
  41. #elif JUCE_LINUX || JUCE_BSD
  42. #include <unistd.h>
  43. #endif
  44. //==============================================================================
  45. #include "messages/juce_ApplicationBase.cpp"
  46. #include "messages/juce_DeletedAtShutdown.cpp"
  47. #include "messages/juce_MessageListener.cpp"
  48. #include "messages/juce_MessageManager.cpp"
  49. #include "broadcasters/juce_ActionBroadcaster.cpp"
  50. #include "broadcasters/juce_AsyncUpdater.cpp"
  51. #include "broadcasters/juce_ChangeBroadcaster.cpp"
  52. #include "timers/juce_MultiTimer.cpp"
  53. #include "timers/juce_Timer.cpp"
  54. #include "native/juce_ScopedLowPowerModeDisabler.cpp"
  55. //==============================================================================
  56. #if JUCE_MAC || JUCE_IOS
  57. #include "native/juce_osx_MessageQueue.h"
  58. #if JUCE_MAC
  59. #include "native/juce_mac_MessageManager.mm"
  60. #else
  61. #include "native/juce_ios_MessageManager.mm"
  62. #endif
  63. #elif JUCE_WINDOWS
  64. #include "native/juce_win32_Messaging.cpp"
  65. #if JUCE_EVENTS_INCLUDE_WINRT_WRAPPER
  66. #include "native/juce_win32_WinRTWrapper.cpp"
  67. #endif
  68. #elif JUCE_LINUX || JUCE_BSD
  69. #include "native/juce_linux_EventLoopInternal.h"
  70. #include "native/juce_linux_Messaging.cpp"
  71. #elif JUCE_ANDROID
  72. #include "native/juce_android_Messaging.cpp"
  73. #endif