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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #if defined (JUCE_EVENTS_H_INCLUDED) && ! JUCE_AMALGAMATED_INCLUDE
  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. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  26. // and your header search path must make it accessible to the module's files.
  27. #include "AppConfig.h"
  28. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  29. #include "juce_events.h"
  30. #if JUCE_CATCH_UNHANDLED_EXCEPTIONS && JUCE_MODULE_AVAILABLE_juce_gui_basics
  31. #include "../juce_gui_basics/juce_gui_basics.h"
  32. #endif
  33. //==============================================================================
  34. #if JUCE_MAC
  35. #import <IOKit/IOKitLib.h>
  36. #import <IOKit/IOCFPlugIn.h>
  37. #import <IOKit/hid/IOHIDLib.h>
  38. #import <IOKit/hid/IOHIDKeys.h>
  39. #import <IOKit/pwr_mgt/IOPMLib.h>
  40. #elif JUCE_LINUX
  41. #include <X11/Xlib.h>
  42. #include <X11/Xresource.h>
  43. #include <X11/Xutil.h>
  44. #undef KeyPress
  45. #include <unistd.h>
  46. #endif
  47. //==============================================================================
  48. namespace juce
  49. {
  50. #include "messages/juce_ApplicationBase.cpp"
  51. #include "messages/juce_DeletedAtShutdown.cpp"
  52. #include "messages/juce_MessageListener.cpp"
  53. #include "messages/juce_MessageManager.cpp"
  54. #include "broadcasters/juce_ActionBroadcaster.cpp"
  55. #include "broadcasters/juce_AsyncUpdater.cpp"
  56. #include "broadcasters/juce_ChangeBroadcaster.cpp"
  57. #include "timers/juce_MultiTimer.cpp"
  58. #include "timers/juce_Timer.cpp"
  59. #include "interprocess/juce_InterprocessConnection.cpp"
  60. #include "interprocess/juce_InterprocessConnectionServer.cpp"
  61. //==============================================================================
  62. #if JUCE_MAC
  63. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  64. #include "native/juce_osx_MessageQueue.h"
  65. #include "native/juce_mac_MessageManager.mm"
  66. #elif JUCE_IOS
  67. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  68. #include "native/juce_osx_MessageQueue.h"
  69. #include "native/juce_ios_MessageManager.mm"
  70. #elif JUCE_WINDOWS
  71. #include "native/juce_win32_HiddenMessageWindow.h"
  72. #include "native/juce_win32_Messaging.cpp"
  73. #elif JUCE_LINUX
  74. #include "native/juce_ScopedXLock.h"
  75. #include "native/juce_linux_Messaging.cpp"
  76. #elif JUCE_ANDROID
  77. #include "../juce_core/native/juce_android_JNIHelpers.h"
  78. #include "native/juce_android_Messaging.cpp"
  79. #endif
  80. }