mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Re-saved all projects.
This commit is contained in:
parent
4469217b3e
commit
ddc7dbfd4f
117 changed files with 746 additions and 4 deletions
|
|
@ -784,6 +784,7 @@ public class AnalyticsCollection extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -795,10 +796,12 @@ public class AnalyticsCollection extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -865,6 +868,47 @@ public class AnalyticsCollection extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -715,6 +715,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -730,6 +730,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -724,6 +724,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -724,6 +724,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -715,6 +715,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -715,6 +715,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -561,6 +561,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -829,6 +829,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -562,6 +562,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -829,6 +829,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -498,6 +498,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -748,6 +748,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -366,6 +366,7 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h"
|
||||
|
|
@ -1700,6 +1701,7 @@ set_source_files_properties("../../../../../modules/juce_audio_processors/format
|
|||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
|
|
|||
|
|
@ -784,6 +784,7 @@ public class JuceDemo extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -795,10 +796,12 @@ public class JuceDemo extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -865,6 +868,47 @@ public class JuceDemo extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -531,6 +531,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -886,6 +886,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -531,6 +531,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -886,6 +886,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -531,6 +531,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -886,6 +886,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>This app requires microphone input.</string>
|
||||
<string>This is an audio app which requires audio input. If you do not have a USB audio interface connected it will use the microphone.</string>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
|
|
|||
|
|
@ -337,6 +337,7 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h"
|
||||
|
|
@ -1588,6 +1589,7 @@ set_source_files_properties("../../../../../modules/juce_audio_processors/format
|
|||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
|
|
|||
|
|
@ -784,6 +784,7 @@ public class InAppPurchase extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -795,10 +796,12 @@ public class InAppPurchase extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -865,6 +868,47 @@ public class InAppPurchase extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -313,6 +313,7 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h"
|
||||
|
|
@ -1472,6 +1473,7 @@ set_source_files_properties("../../../../../modules/juce_audio_processors/format
|
|||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
|
|
|||
|
|
@ -1716,6 +1716,7 @@ public class MidiTest extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -1727,10 +1728,12 @@ public class MidiTest extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1797,6 +1800,47 @@ public class MidiTest extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -694,6 +694,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -694,6 +694,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -316,6 +316,7 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h"
|
||||
|
|
@ -1550,6 +1551,7 @@ set_source_files_properties("../../../../../modules/juce_audio_processors/format
|
|||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
|
|
|||
|
|
@ -784,6 +784,7 @@ public class JUCENetworkGraphicsDemo extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -795,10 +796,12 @@ public class JUCENetworkGraphicsDemo extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -865,6 +868,47 @@ public class JUCENetworkGraphicsDemo extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -721,6 +721,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -721,6 +721,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -718,6 +718,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -718,6 +718,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -784,6 +784,7 @@ public class OSCReceiver extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -795,10 +796,12 @@ public class OSCReceiver extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -865,6 +868,47 @@ public class OSCReceiver extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -784,6 +784,7 @@ public class OSCSender extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -795,10 +796,12 @@ public class OSCSender extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -865,6 +868,47 @@ public class OSCSender extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -718,6 +718,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -691,6 +691,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -691,6 +691,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>This app requires microphone input.</string>
|
||||
<string>This is an audio app which requires audio input. If you do not have a USB audio interface connected it will use the microphone.</string>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -811,6 +811,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -811,6 +811,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -560,6 +560,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -808,6 +808,9 @@
|
|||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -333,6 +333,7 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h"
|
||||
|
|
@ -1529,6 +1530,7 @@ set_source_files_properties("../../../../../modules/juce_audio_processors/format
|
|||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
|
|
|||
|
|
@ -1716,6 +1716,7 @@ public class PushNotificationsDemo extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -1727,10 +1728,12 @@ public class PushNotificationsDemo extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1797,6 +1800,47 @@ public class PushNotificationsDemo extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -489,6 +489,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -712,6 +712,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -712,6 +712,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -488,6 +488,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -712,6 +712,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -413,6 +413,7 @@ add_library( ${BINARY_NAME}
|
|||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp"
|
||||
"../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp"
|
||||
"../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h"
|
||||
|
|
@ -1674,6 +1675,7 @@ set_source_files_properties("../../../../../modules/juce_audio_processors/format
|
|||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioPluginInstance.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
set_source_files_properties("../../../../../modules/juce_audio_processors/processors/juce_AudioProcessor.h" PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
|
|
|||
|
|
@ -1716,6 +1716,7 @@ public class JuceDemoPlugin extends Activity
|
|||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
private native void handleBackButton (long host);
|
||||
private native void handleKeyboardHidden (long host);
|
||||
|
||||
public void showKeyboard (String type)
|
||||
{
|
||||
|
|
@ -1727,10 +1728,12 @@ public class JuceDemoPlugin extends Activity
|
|||
{
|
||||
imm.showSoftInput (this, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||
imm.setInputMethod (getWindowToken(), type);
|
||||
keyboardDismissListener.startListening();
|
||||
}
|
||||
else
|
||||
{
|
||||
imm.hideSoftInputFromWindow (getWindowToken(), 0);
|
||||
keyboardDismissListener.stopListening();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1797,6 +1800,47 @@ public class JuceDemoPlugin extends Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private final class KeyboardDismissListener
|
||||
{
|
||||
public KeyboardDismissListener (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
private void startListening()
|
||||
{
|
||||
view.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private void stopListening()
|
||||
{
|
||||
view.getViewTreeObserver().removeGlobalOnLayoutListener(viewTreeObserver);
|
||||
}
|
||||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
handleKeyboardHidden (view.host);
|
||||
};
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener(this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection (EditorInfo outAttrs)
|
||||
|
|
|
|||
|
|
@ -561,6 +561,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -787,6 +787,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\format_types</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<Filter>JUCE Modules\juce_audio_processors\processors</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -561,6 +561,9 @@
|
|||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\format_types\juce_VSTPluginFormat.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioPluginInstance.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\modules\juce_audio_processors\processors\juce_AudioProcessor.cpp">
|
||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue