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

8 years ago
8 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  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
  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 "interprocess/juce_InterprocessConnection.cpp"
  55. #include "interprocess/juce_InterprocessConnectionServer.cpp"
  56. #include "interprocess/juce_ConnectedChildProcess.cpp"
  57. //==============================================================================
  58. #if JUCE_MAC || JUCE_IOS
  59. #include "native/juce_osx_MessageQueue.h"
  60. #if JUCE_CLANG
  61. #pragma clang diagnostic push
  62. #pragma clang diagnostic ignored "-Wundeclared-selector"
  63. #endif
  64. #if JUCE_MAC
  65. #include "native/juce_mac_MessageManager.mm"
  66. #else
  67. #include "native/juce_ios_MessageManager.mm"
  68. #endif
  69. #if JUCE_CLANG
  70. #pragma clang diagnostic pop
  71. #endif
  72. #elif JUCE_WINDOWS
  73. #include "native/juce_win32_Messaging.cpp"
  74. #if JUCE_EVENTS_INCLUDE_WINRT_WRAPPER
  75. #include "native/juce_win32_WinRTWrapper.cpp"
  76. #endif
  77. #elif JUCE_LINUX
  78. #include "native/juce_linux_Messaging.cpp"
  79. #elif JUCE_ANDROID
  80. #include "native/juce_android_Messaging.cpp"
  81. #endif