Browse Source

Re-saved all projects.

tags/2021-05-28
Lukasz Kozakiewicz 8 years ago
parent
commit
ddc7dbfd4f
100 changed files with 659 additions and 2 deletions
  1. +44
    -0
      examples/AnalyticsCollection/Builds/Android/app/src/main/java/com/yourcompany/analyticscollection/AnalyticsCollection.java
  2. +3
    -0
      examples/AnimationAppExample/Builds/VisualStudio2017/AnimationAppExample_App.vcxproj
  3. +3
    -0
      examples/AnimationAppExample/Builds/VisualStudio2017/AnimationAppExample_App.vcxproj.filters
  4. +3
    -0
      examples/AudioAppExample/Builds/VisualStudio2017/AudioAppExample_App.vcxproj
  5. +3
    -0
      examples/AudioAppExample/Builds/VisualStudio2017/AudioAppExample_App.vcxproj.filters
  6. +3
    -0
      examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2015/BlocksDrawing_App.vcxproj
  7. +3
    -0
      examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2015/BlocksDrawing_App.vcxproj.filters
  8. +3
    -0
      examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2017/BlocksDrawing_App.vcxproj
  9. +3
    -0
      examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2017/BlocksDrawing_App.vcxproj.filters
  10. +3
    -0
      examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2015/BlocksMonitor_App.vcxproj
  11. +3
    -0
      examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2015/BlocksMonitor_App.vcxproj.filters
  12. +3
    -0
      examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2017/BlocksMonitor_App.vcxproj
  13. +3
    -0
      examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2017/BlocksMonitor_App.vcxproj.filters
  14. +3
    -0
      examples/BLOCKS/BlocksSynth/Builds/VisualStudio2015/BlocksSynth_App.vcxproj
  15. +3
    -0
      examples/BLOCKS/BlocksSynth/Builds/VisualStudio2015/BlocksSynth_App.vcxproj.filters
  16. +3
    -0
      examples/BLOCKS/BlocksSynth/Builds/VisualStudio2017/BlocksSynth_App.vcxproj
  17. +3
    -0
      examples/BLOCKS/BlocksSynth/Builds/VisualStudio2017/BlocksSynth_App.vcxproj.filters
  18. +3
    -0
      examples/BouncingBallWavetableDemo/Builds/VisualStudio2013/BouncingBallWavetableDemo_App.vcxproj
  19. +3
    -0
      examples/BouncingBallWavetableDemo/Builds/VisualStudio2013/BouncingBallWavetableDemo_App.vcxproj.filters
  20. +3
    -0
      examples/BouncingBallWavetableDemo/Builds/VisualStudio2017/BouncingBallWavetableDemo_App.vcxproj
  21. +3
    -0
      examples/BouncingBallWavetableDemo/Builds/VisualStudio2017/BouncingBallWavetableDemo_App.vcxproj.filters
  22. +3
    -0
      examples/DSP module plugin demo/Builds/VisualStudio2015/DSPModulePluginDemo_SharedCode.vcxproj
  23. +3
    -0
      examples/DSP module plugin demo/Builds/VisualStudio2015/DSPModulePluginDemo_SharedCode.vcxproj.filters
  24. +3
    -0
      examples/DSP module plugin demo/Builds/VisualStudio2017/DSPModulePluginDemo_SharedCode.vcxproj
  25. +3
    -0
      examples/DSP module plugin demo/Builds/VisualStudio2017/DSPModulePluginDemo_SharedCode.vcxproj.filters
  26. +3
    -0
      examples/DSPDemo/Builds/VisualStudio2017/DSPDemo_App.vcxproj
  27. +3
    -0
      examples/DSPDemo/Builds/VisualStudio2017/DSPDemo_App.vcxproj.filters
  28. +2
    -0
      examples/Demo/Builds/Android/app/CMakeLists.txt
  29. +44
    -0
      examples/Demo/Builds/Android/app/src/main/java/com/roli/jucedemo/JuceDemo.java
  30. +3
    -0
      examples/Demo/Builds/VisualStudio2013/JuceDemo_App.vcxproj
  31. +3
    -0
      examples/Demo/Builds/VisualStudio2013/JuceDemo_App.vcxproj.filters
  32. +3
    -0
      examples/Demo/Builds/VisualStudio2015/JuceDemo_App.vcxproj
  33. +3
    -0
      examples/Demo/Builds/VisualStudio2015/JuceDemo_App.vcxproj.filters
  34. +3
    -0
      examples/Demo/Builds/VisualStudio2017/JuceDemo_App.vcxproj
  35. +3
    -0
      examples/Demo/Builds/VisualStudio2017/JuceDemo_App.vcxproj.filters
  36. +1
    -1
      examples/Demo/Builds/iOS/Info-App.plist
  37. +2
    -0
      examples/InAppPurchase/Builds/Android/app/CMakeLists.txt
  38. +44
    -0
      examples/InAppPurchase/Builds/Android/app/src/main/java/com/roli/juceinapppurchasesample/InAppPurchase.java
  39. +3
    -0
      examples/MPEDemo/Builds/VisualStudio2015/MPEDemo_App.vcxproj
  40. +3
    -0
      examples/MPEDemo/Builds/VisualStudio2015/MPEDemo_App.vcxproj.filters
  41. +3
    -0
      examples/MPEDemo/Builds/VisualStudio2017/MPEDemo_App.vcxproj
  42. +3
    -0
      examples/MPEDemo/Builds/VisualStudio2017/MPEDemo_App.vcxproj.filters
  43. +2
    -0
      examples/MidiTest/Builds/Android/app/CMakeLists.txt
  44. +44
    -0
      examples/MidiTest/Builds/Android/app/src/main/java/com/yourcompany/miditest/MidiTest.java
  45. +3
    -0
      examples/MidiTest/Builds/VisualStudio2015/MidiTest_App.vcxproj
  46. +3
    -0
      examples/MidiTest/Builds/VisualStudio2015/MidiTest_App.vcxproj.filters
  47. +3
    -0
      examples/MidiTest/Builds/VisualStudio2017/MidiTest_App.vcxproj
  48. +3
    -0
      examples/MidiTest/Builds/VisualStudio2017/MidiTest_App.vcxproj.filters
  49. +2
    -0
      examples/NetworkGraphicsDemo/Builds/Android/app/CMakeLists.txt
  50. +44
    -0
      examples/NetworkGraphicsDemo/Builds/Android/app/src/main/java/com/juce/networkgraphicsdemo/JUCENetworkGraphicsDemo.java
  51. +3
    -0
      examples/NetworkGraphicsDemo/Builds/VisualStudio2013/JUCE Network Graphics Demo_App.vcxproj
  52. +3
    -0
      examples/NetworkGraphicsDemo/Builds/VisualStudio2013/JUCE Network Graphics Demo_App.vcxproj.filters
  53. +3
    -0
      examples/NetworkGraphicsDemo/Builds/VisualStudio2017/JUCE Network Graphics Demo_App.vcxproj
  54. +3
    -0
      examples/NetworkGraphicsDemo/Builds/VisualStudio2017/JUCE Network Graphics Demo_App.vcxproj.filters
  55. +3
    -0
      examples/OSCMonitor/Builds/VisualStudio2015/OSCMonitor_App.vcxproj
  56. +3
    -0
      examples/OSCMonitor/Builds/VisualStudio2015/OSCMonitor_App.vcxproj.filters
  57. +3
    -0
      examples/OSCMonitor/Builds/VisualStudio2017/OSCMonitor_App.vcxproj
  58. +3
    -0
      examples/OSCMonitor/Builds/VisualStudio2017/OSCMonitor_App.vcxproj.filters
  59. +44
    -0
      examples/OSCReceiver/Builds/Android/app/src/main/java/com/yourcompany/oscreceiver/OSCReceiver.java
  60. +44
    -0
      examples/OSCSender/Builds/Android/app/src/main/java/com/yourcompany/oscsender/OSCSender.java
  61. +3
    -0
      examples/OpenGLAppExample/Builds/VisualStudio2017/OpenGLAppExample_App.vcxproj
  62. +3
    -0
      examples/OpenGLAppExample/Builds/VisualStudio2017/OpenGLAppExample_App.vcxproj.filters
  63. +3
    -0
      examples/PluckedStringsDemo/Builds/VisualStudio2013/PluckedStringsDemo_App.vcxproj
  64. +3
    -0
      examples/PluckedStringsDemo/Builds/VisualStudio2013/PluckedStringsDemo_App.vcxproj.filters
  65. +3
    -0
      examples/PluckedStringsDemo/Builds/VisualStudio2017/PluckedStringsDemo_App.vcxproj
  66. +3
    -0
      examples/PluckedStringsDemo/Builds/VisualStudio2017/PluckedStringsDemo_App.vcxproj.filters
  67. +3
    -0
      examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2015/Arpeggiator_SharedCode.vcxproj
  68. +3
    -0
      examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2015/Arpeggiator_SharedCode.vcxproj.filters
  69. +3
    -0
      examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2017/Arpeggiator_SharedCode.vcxproj
  70. +3
    -0
      examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2017/Arpeggiator_SharedCode.vcxproj.filters
  71. +3
    -0
      examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2015/GainPlugIn_SharedCode.vcxproj
  72. +3
    -0
      examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2015/GainPlugIn_SharedCode.vcxproj.filters
  73. +3
    -0
      examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2017/GainPlugIn_SharedCode.vcxproj
  74. +3
    -0
      examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2017/GainPlugIn_SharedCode.vcxproj.filters
  75. +1
    -1
      examples/PlugInSamples/InterAppAudioEffect/Builds/iOS/Info-Standalone_Plugin.plist
  76. +3
    -0
      examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2015/MultiOutSynth_SharedCode.vcxproj
  77. +3
    -0
      examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2015/MultiOutSynth_SharedCode.vcxproj.filters
  78. +3
    -0
      examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2017/MultiOutSynth_SharedCode.vcxproj
  79. +3
    -0
      examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2017/MultiOutSynth_SharedCode.vcxproj.filters
  80. +3
    -0
      examples/PlugInSamples/NoiseGate/Builds/VisualStudio2015/NoiseGate_SharedCode.vcxproj
  81. +3
    -0
      examples/PlugInSamples/NoiseGate/Builds/VisualStudio2015/NoiseGate_SharedCode.vcxproj.filters
  82. +3
    -0
      examples/PlugInSamples/NoiseGate/Builds/VisualStudio2017/NoiseGate_SharedCode.vcxproj
  83. +3
    -0
      examples/PlugInSamples/NoiseGate/Builds/VisualStudio2017/NoiseGate_SharedCode.vcxproj.filters
  84. +3
    -0
      examples/PlugInSamples/Surround/Builds/VisualStudio2015/Surround_SharedCode.vcxproj
  85. +3
    -0
      examples/PlugInSamples/Surround/Builds/VisualStudio2015/Surround_SharedCode.vcxproj.filters
  86. +3
    -0
      examples/PlugInSamples/Surround/Builds/VisualStudio2017/Surround_SharedCode.vcxproj
  87. +3
    -0
      examples/PlugInSamples/Surround/Builds/VisualStudio2017/Surround_SharedCode.vcxproj.filters
  88. +2
    -0
      examples/PushNotificationsDemo/Builds/Android/app/CMakeLists.txt
  89. +44
    -0
      examples/PushNotificationsDemo/Builds/Android/app/src/main/java/com/juce/pushnotificationsdemo/PushNotificationsDemo.java
  90. +3
    -0
      examples/PushNotificationsDemo/Builds/VisualStudio2015/PushNotificationsDemo_App.vcxproj
  91. +3
    -0
      examples/PushNotificationsDemo/Builds/VisualStudio2015/PushNotificationsDemo_App.vcxproj.filters
  92. +3
    -0
      examples/SimpleFFTExample/Builds/VisualStudio2013/SimpleFFTExample_App.vcxproj
  93. +3
    -0
      examples/SimpleFFTExample/Builds/VisualStudio2013/SimpleFFTExample_App.vcxproj.filters
  94. +3
    -0
      examples/SimpleFFTExample/Builds/VisualStudio2017/SimpleFFTExample_App.vcxproj
  95. +3
    -0
      examples/SimpleFFTExample/Builds/VisualStudio2017/SimpleFFTExample_App.vcxproj.filters
  96. +2
    -0
      examples/audio plugin demo/Builds/Android/app/CMakeLists.txt
  97. +44
    -0
      examples/audio plugin demo/Builds/Android/app/src/main/java/com/juce/jucedemoplugin/JuceDemoPlugin.java
  98. +3
    -0
      examples/audio plugin demo/Builds/VisualStudio2015/JuceDemoPlugin_SharedCode.vcxproj
  99. +3
    -0
      examples/audio plugin demo/Builds/VisualStudio2015/JuceDemoPlugin_SharedCode.vcxproj.filters
  100. +3
    -0
      examples/audio plugin demo/Builds/VisualStudio2017/JuceDemoPlugin_SharedCode.vcxproj

+ 44
- 0
examples/AnalyticsCollection/Builds/Android/app/src/main/java/com/yourcompany/analyticscollection/AnalyticsCollection.java View File

@@ -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)


+ 3
- 0
examples/AnimationAppExample/Builds/VisualStudio2017/AnimationAppExample_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/AnimationAppExample/Builds/VisualStudio2017/AnimationAppExample_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/AudioAppExample/Builds/VisualStudio2017/AudioAppExample_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/AudioAppExample/Builds/VisualStudio2017/AudioAppExample_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2015/BlocksDrawing_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2015/BlocksDrawing_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2017/BlocksDrawing_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksDrawing/Builds/VisualStudio2017/BlocksDrawing_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2015/BlocksMonitor_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2015/BlocksMonitor_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2017/BlocksMonitor_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksMonitor/Builds/VisualStudio2017/BlocksMonitor_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksSynth/Builds/VisualStudio2015/BlocksSynth_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksSynth/Builds/VisualStudio2015/BlocksSynth_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksSynth/Builds/VisualStudio2017/BlocksSynth_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BLOCKS/BlocksSynth/Builds/VisualStudio2017/BlocksSynth_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BouncingBallWavetableDemo/Builds/VisualStudio2013/BouncingBallWavetableDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BouncingBallWavetableDemo/Builds/VisualStudio2013/BouncingBallWavetableDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/BouncingBallWavetableDemo/Builds/VisualStudio2017/BouncingBallWavetableDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/BouncingBallWavetableDemo/Builds/VisualStudio2017/BouncingBallWavetableDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/DSP module plugin demo/Builds/VisualStudio2015/DSPModulePluginDemo_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/DSP module plugin demo/Builds/VisualStudio2015/DSPModulePluginDemo_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/DSP module plugin demo/Builds/VisualStudio2017/DSPModulePluginDemo_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/DSP module plugin demo/Builds/VisualStudio2017/DSPModulePluginDemo_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/DSPDemo/Builds/VisualStudio2017/DSPDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/DSPDemo/Builds/VisualStudio2017/DSPDemo_App.vcxproj.filters View File

@@ -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>


+ 2
- 0
examples/Demo/Builds/Android/app/CMakeLists.txt View File

@@ -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)


+ 44
- 0
examples/Demo/Builds/Android/app/src/main/java/com/roli/jucedemo/JuceDemo.java View File

@@ -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)


+ 3
- 0
examples/Demo/Builds/VisualStudio2013/JuceDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/Demo/Builds/VisualStudio2013/JuceDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/Demo/Builds/VisualStudio2015/JuceDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/Demo/Builds/VisualStudio2015/JuceDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/Demo/Builds/VisualStudio2017/JuceDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/Demo/Builds/VisualStudio2017/JuceDemo_App.vcxproj.filters View File

@@ -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>


+ 1
- 1
examples/Demo/Builds/iOS/Info-App.plist View File

@@ -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>


+ 2
- 0
examples/InAppPurchase/Builds/Android/app/CMakeLists.txt View File

@@ -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)


+ 44
- 0
examples/InAppPurchase/Builds/Android/app/src/main/java/com/roli/juceinapppurchasesample/InAppPurchase.java View File

@@ -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)


+ 3
- 0
examples/MPEDemo/Builds/VisualStudio2015/MPEDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/MPEDemo/Builds/VisualStudio2015/MPEDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/MPEDemo/Builds/VisualStudio2017/MPEDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/MPEDemo/Builds/VisualStudio2017/MPEDemo_App.vcxproj.filters View File

@@ -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>


+ 2
- 0
examples/MidiTest/Builds/Android/app/CMakeLists.txt View File

@@ -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)


+ 44
- 0
examples/MidiTest/Builds/Android/app/src/main/java/com/yourcompany/miditest/MidiTest.java View File

@@ -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)


+ 3
- 0
examples/MidiTest/Builds/VisualStudio2015/MidiTest_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/MidiTest/Builds/VisualStudio2015/MidiTest_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/MidiTest/Builds/VisualStudio2017/MidiTest_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/MidiTest/Builds/VisualStudio2017/MidiTest_App.vcxproj.filters View File

@@ -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>


+ 2
- 0
examples/NetworkGraphicsDemo/Builds/Android/app/CMakeLists.txt View File

@@ -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)


+ 44
- 0
examples/NetworkGraphicsDemo/Builds/Android/app/src/main/java/com/juce/networkgraphicsdemo/JUCENetworkGraphicsDemo.java View File

@@ -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)


+ 3
- 0
examples/NetworkGraphicsDemo/Builds/VisualStudio2013/JUCE Network Graphics Demo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/NetworkGraphicsDemo/Builds/VisualStudio2013/JUCE Network Graphics Demo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/NetworkGraphicsDemo/Builds/VisualStudio2017/JUCE Network Graphics Demo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/NetworkGraphicsDemo/Builds/VisualStudio2017/JUCE Network Graphics Demo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/OSCMonitor/Builds/VisualStudio2015/OSCMonitor_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/OSCMonitor/Builds/VisualStudio2015/OSCMonitor_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/OSCMonitor/Builds/VisualStudio2017/OSCMonitor_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/OSCMonitor/Builds/VisualStudio2017/OSCMonitor_App.vcxproj.filters View File

@@ -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>


+ 44
- 0
examples/OSCReceiver/Builds/Android/app/src/main/java/com/yourcompany/oscreceiver/OSCReceiver.java View File

@@ -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)


+ 44
- 0
examples/OSCSender/Builds/Android/app/src/main/java/com/yourcompany/oscsender/OSCSender.java View File

@@ -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)


+ 3
- 0
examples/OpenGLAppExample/Builds/VisualStudio2017/OpenGLAppExample_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/OpenGLAppExample/Builds/VisualStudio2017/OpenGLAppExample_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PluckedStringsDemo/Builds/VisualStudio2013/PluckedStringsDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/PluckedStringsDemo/Builds/VisualStudio2013/PluckedStringsDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PluckedStringsDemo/Builds/VisualStudio2017/PluckedStringsDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/PluckedStringsDemo/Builds/VisualStudio2017/PluckedStringsDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2015/Arpeggiator_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2015/Arpeggiator_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2017/Arpeggiator_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Arpeggiator/Builds/VisualStudio2017/Arpeggiator_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2015/GainPlugIn_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2015/GainPlugIn_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2017/GainPlugIn_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/GainPlugIn/Builds/VisualStudio2017/GainPlugIn_SharedCode.vcxproj.filters View File

@@ -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>


+ 1
- 1
examples/PlugInSamples/InterAppAudioEffect/Builds/iOS/Info-Standalone_Plugin.plist View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2015/MultiOutSynth_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2015/MultiOutSynth_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2017/MultiOutSynth_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/MultiOutSynth/Builds/VisualStudio2017/MultiOutSynth_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/NoiseGate/Builds/VisualStudio2015/NoiseGate_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/NoiseGate/Builds/VisualStudio2015/NoiseGate_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/NoiseGate/Builds/VisualStudio2017/NoiseGate_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/NoiseGate/Builds/VisualStudio2017/NoiseGate_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Surround/Builds/VisualStudio2015/Surround_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Surround/Builds/VisualStudio2015/Surround_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Surround/Builds/VisualStudio2017/Surround_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/PlugInSamples/Surround/Builds/VisualStudio2017/Surround_SharedCode.vcxproj.filters View File

@@ -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>


+ 2
- 0
examples/PushNotificationsDemo/Builds/Android/app/CMakeLists.txt View File

@@ -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)


+ 44
- 0
examples/PushNotificationsDemo/Builds/Android/app/src/main/java/com/juce/pushnotificationsdemo/PushNotificationsDemo.java View File

@@ -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)


+ 3
- 0
examples/PushNotificationsDemo/Builds/VisualStudio2015/PushNotificationsDemo_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/PushNotificationsDemo/Builds/VisualStudio2015/PushNotificationsDemo_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/SimpleFFTExample/Builds/VisualStudio2013/SimpleFFTExample_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/SimpleFFTExample/Builds/VisualStudio2013/SimpleFFTExample_App.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/SimpleFFTExample/Builds/VisualStudio2017/SimpleFFTExample_App.vcxproj View File

@@ -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>


+ 3
- 0
examples/SimpleFFTExample/Builds/VisualStudio2017/SimpleFFTExample_App.vcxproj.filters View File

@@ -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>


+ 2
- 0
examples/audio plugin demo/Builds/Android/app/CMakeLists.txt View File

@@ -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)


+ 44
- 0
examples/audio plugin demo/Builds/Android/app/src/main/java/com/juce/jucedemoplugin/JuceDemoPlugin.java View File

@@ -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)


+ 3
- 0
examples/audio plugin demo/Builds/VisualStudio2015/JuceDemoPlugin_SharedCode.vcxproj View File

@@ -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>


+ 3
- 0
examples/audio plugin demo/Builds/VisualStudio2015/JuceDemoPlugin_SharedCode.vcxproj.filters View File

@@ -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>


+ 3
- 0
examples/audio plugin demo/Builds/VisualStudio2017/JuceDemoPlugin_SharedCode.vcxproj View File

@@ -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 changed in this diff

Loading…
Cancel
Save