mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
MIDI: Several ALSA Seq improvements =================================== Many things were done in this patch (I couldn't really split in several patches): * Only one ALSA Sequencer client per application * ALSA Sequencer client name is the application's name by default * Fixed a bug when getDeivces() would return devices created by the application itself * Only ports created with createNewDevice() are allowed to be subscribed, other ports (created by openDevice()) doesn't allow subscription * AlsaPort is now handled by AlsaClient, basically having the proper representation such as the ALSA Sequencer has. Files: Fix default directory paths ================================== Some information on: * Linux LSB FHS: http://www.linuxfoundation.org/collaborate/workgroups/lsb/fhs-30 * https://wiki.archlinux.org/index.php/Xdg_user_directories Refactor Event loop to remove X11 dependency ============================================ The goal of this refactor was to remove X11 dependencies on juce_events to enable non-gui applications (example, Embedded Linux apps) to have no libx11 dependency. The side-effect of this refactor is easy implementation of other Linux graphical back-end, cleanup some code, better handling of X displays and other benefits. I removed a lot of the code from juce_linux_Windowing to separate files for clarity. I also renamed all Linux X11 files to *linux_X11* instead of just *linux*. X11: Remove unnecessary XGrabButton call ======================================== This call is made unnecessary if used proper window flags when a window is created.
96 lines
3.5 KiB
C++
96 lines
3.5 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This file is part of the JUCE library.
|
|
Copyright (c) 2016 - ROLI Ltd.
|
|
|
|
Permission is granted to use this software under the terms of the ISC license
|
|
http://www.isc.org/downloads/software-support-policy/isc-license/
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
|
|
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
|
|
OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
|
|
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
OF THIS SOFTWARE.
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
To release a closed-source product which uses other parts of JUCE not
|
|
licensed under the ISC terms, commercial licenses are available: visit
|
|
www.juce.com for more information.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#ifdef JUCE_EVENTS_H_INCLUDED
|
|
/* When you add this cpp file to your project, you mustn't include it in a file where you've
|
|
already included any other headers - just put it inside a file on its own, possibly with your config
|
|
flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
|
|
header files that the compiler may be using.
|
|
*/
|
|
#error "Incorrect use of JUCE cpp file"
|
|
#endif
|
|
|
|
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
|
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
|
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
|
#define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
|
|
|
|
#include "juce_events.h"
|
|
|
|
//==============================================================================
|
|
#if JUCE_MAC
|
|
#import <IOKit/IOKitLib.h>
|
|
#import <IOKit/IOCFPlugIn.h>
|
|
#import <IOKit/hid/IOHIDLib.h>
|
|
#import <IOKit/hid/IOHIDKeys.h>
|
|
#import <IOKit/pwr_mgt/IOPMLib.h>
|
|
|
|
#elif JUCE_LINUX
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
//==============================================================================
|
|
namespace juce
|
|
{
|
|
|
|
#include "messages/juce_ApplicationBase.cpp"
|
|
#include "messages/juce_DeletedAtShutdown.cpp"
|
|
#include "messages/juce_MessageListener.cpp"
|
|
#include "messages/juce_MessageManager.cpp"
|
|
#include "broadcasters/juce_ActionBroadcaster.cpp"
|
|
#include "broadcasters/juce_AsyncUpdater.cpp"
|
|
#include "broadcasters/juce_ChangeBroadcaster.cpp"
|
|
#include "timers/juce_MultiTimer.cpp"
|
|
#include "timers/juce_Timer.cpp"
|
|
#include "interprocess/juce_InterprocessConnection.cpp"
|
|
#include "interprocess/juce_InterprocessConnectionServer.cpp"
|
|
#include "interprocess/juce_ConnectedChildProcess.cpp"
|
|
|
|
//==============================================================================
|
|
#if JUCE_MAC
|
|
#include "native/juce_osx_MessageQueue.h"
|
|
#include "native/juce_mac_MessageManager.mm"
|
|
|
|
#elif JUCE_IOS
|
|
#include "native/juce_osx_MessageQueue.h"
|
|
#include "native/juce_ios_MessageManager.mm"
|
|
|
|
#elif JUCE_WINDOWS
|
|
#include "native/juce_win32_Messaging.cpp"
|
|
|
|
#elif JUCE_LINUX
|
|
#include "native/juce_linux_Messaging.cpp"
|
|
|
|
#elif JUCE_ANDROID
|
|
#include "native/juce_android_Messaging.cpp"
|
|
|
|
#endif
|
|
|
|
}
|