iwg..om
509cc7ba70
Android OpenAL Soft: Clean up some logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10620 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-16 17:04:10 +00:00
iwg..om
66ed9ff986
Add OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10616 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-15 21:51:01 +00:00
iwg..om
e727928731
Android: Refactor AndroidAudioRenderer into an interface with 2 implementations (current MediaPlayer/SoundPool and new OpenAL Soft). Added AppSetting that allows AndroidHarness to switch the audio renderer (default is still MediaPlayer/SoundPool).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10615 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-15 21:44:21 +00:00
iwg..om
96f7b179b5
Android: Copy OpenAL Soft library to dist/opt directory when building the engine. Updated OpenAL Soft jar file.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10614 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-15 21:38:49 +00:00
iwg..om
58684996f9
Android: Added methods for OpenAL Soft Audio Renderer to pause and resume audio when app is placed in the background
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10613 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-13 15:56:29 +00:00
iwg..om
c1402b30e9
SDK: Add build support for Android implementation of OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10610 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-12 03:29:34 +00:00
iwg..om
785d50f516
Android: Add support for effects, filters, reverb, and environment to Android implementation of OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10609 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-12 03:15:22 +00:00
iwg..om
893bd93c60
Android: Initial OpenAL Soft binary libraries for testing
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10608 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-11 04:30:39 +00:00
iwg..om
0ff86728d8
Android: Moved some code from onPause/onResume to loseFocus/gainFocus to address issues/patches 593, 566, 564. Users can now override loseFocus/gainFocus in MainActivity if they do not want to pause/resume the app based on Android's lifecycle methods onPause/onResume.
...
https://code.google.com/p/jmonkeyengine/issues/detail?id=593
https://code.google.com/p/jmonkeyengine/issues/detail?id=564
https://code.google.com/p/jmonkeyengine/issues/detail?id=566
(Yes, there were 3 patch requests for the same thing)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10607 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-11 03:53:09 +00:00
iwg..om
b5f4541eec
Android: First commit of a new Audio system for Android that uses OpenAL Soft with the OpenSL backend. Requres Android 2.3 or higher. Source files for OpenAL Soft won't be included (similar to Native Bullet). The current Android audio renderer is still enabled.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10606 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-11 01:48:08 +00:00
iwg..om
8bc322e651
SDK: Android: Removed verbose setting when copying project libs to mobile/libs
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10542 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-16 12:07:46 +00:00
iwg..om
086b241ea4
SDK: Android: Changed mobile-impl.xml to avoid pre-dexing external jar files.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10541 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-16 02:03:58 +00:00
iwg..om
ba8f8db23c
Android:
...
Add support for OGLES20 extension "GL_IMG_texture_npot" in addition to the currently used extension "GL_OES_texture_npot" to detect NPOT support.
Added additional Renderbufferstorage formats for RGB8 and RGBA8 image formats
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10517 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 01:17:56 +00:00
iwg..om
107b3f2b88
Modify normal map to use png instead of dds to enable running on Android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10514 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 04:20:00 +00:00
iwg..om
e26c86c794
Android: Initial commit to support FrameBuffers. This is still a work in progress. FilterPostProcessors currently don't work on Android devices that do not support NPOT.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10513 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 04:18:43 +00:00
iwg..om
2037ece7d8
SDK: Add imports for new default setting for logging level in Android MainActivity.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10487 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 02:42:35 +00:00
iwg..om
d197cd43ff
SDK: Add default setting for logging level in Android MainActivity.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10486 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 02:34:11 +00:00
iwg..om
a53c052f74
Fix issue with how Android logging is handled.
...
- Replaced standard Android logging Handler to avoid Android issue with only logging Level.INFO -> Level.SEVERE log records.
- Moved logging Handler initialization to AndroidHarness instead of in JmeSystem so logging in AndroidHarness and app startup could be logged.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10485 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 01:28:07 +00:00
iwg..ic
305e3f25e0
SDK: Updates to JME3 Tests for Android Template
...
- Add Android menu for enabling/disabling mouse events and joystick events
- Exclude some of the mobile directories in the template zip file
- Extract the uif labels as resource strings
- Disable OK button on main activity until a test case is selected
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10392 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-12 02:45:21 +00:00
iwg..om
b475a8e9c9
mouseEventsInvertX and mouseEventsInvertY settings in newly created MainActivity files and instead, show mouseEventsEnabled. Default values in AndroidHarness (false for both invertX and invertY) match Desktop mouse.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10391 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 23:08:00 +00:00
iwg..om
b7ae718b64
Correct default value for invert mouse events. By default, raw touch events have the same coordinate origin as Desktop mouse events (lower left corner). The default for mouseEventsInvertX and mouseEventsInvertY should be false to match Desktop mouse.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10390 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 23:05:25 +00:00
iwg..om
30c2bb665e
Create seperate ant target in mobile-impl for copying the Android lib. Allows for easy overriding of the target in build.xml to define alternative Android libs.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10389 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 16:33:57 +00:00
iwg..om
1d1b893510
SDK: Update icon and description for JME3 Test Android project template.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10388 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 16:30:02 +00:00
iwg..om
d3426d8f5e
Add sdk template for jME3 Test classes configured to run as an Android project.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10387 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:31:10 +00:00
iwg..om
343f9fd08e
Add automatic zip of Android Tests template project
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10386 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:26:34 +00:00
iwg..om
d59e679f71
Add copy of engine src/test to Android jME3 Test template project
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10384 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:23:32 +00:00
iwg..om
24b9cb3587
Setting ignore for jme3test src directories. They are copied in during build.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10383 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:15:21 +00:00
iwg..om
9bb4efdeb5
Initial commit for the jME3 Tests template project configured as an Android project
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10382 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:12:33 +00:00
iwg..ic
e21f22e6dc
Fixed issue with handling Multi-Touch not tracking MOVE for second finger when first finger is lifted. Thanks to kumasao.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10061 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-08 17:45:31 +00:00
iwg..ic
ab5282fb2d
Additional fix for http://code.google.com/p/jmonkeyengine/issues/detail?id=504 .
...
Fixes displaying leftover characters in BitmapText when setting the text to a smaller string and a weird situation where the scene would stop rendering do to improper buffer limit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10060 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-08 17:10:32 +00:00
iwg..ic
044d81f7e8
Add calls to loseFocus and gainFocus when activity pauses and resumes
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10048 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-28 04:47:50 +00:00
iwg..ic
1df4fe8346
Attempt to clean up some references to help with out of memory issues on second start of app on Android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10047 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-28 04:27:10 +00:00
iwg..ic
feff63fda2
Add support for JmeSystem.StorageFolderType in saveGame and loadGame
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10022 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-06 17:05:50 +00:00
iwg..ic
dd46be3688
Add support for multiple folder storage types for getStorageFolder
...
See forum post http://jmonkeyengine.org/groups/android/forum/topic/jmesystem-getstoragefolder-updates/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10020 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-05 00:59:52 +00:00
iwg..ic
200df1c84b
androidInput.loadSettings was never called, so setting mouseEventsEnabled = false; in MainActivity had no effect.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10012 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-29 17:53:59 +00:00
iwg..ic
3afb803c68
Added check for sensor data accuracy to ignore data when sensor accuracy is unreliable.
...
Fixed error in log entry when sensor accuracy changes
Added log entry on calibration of axis
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9789 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-01 13:58:15 +00:00
iwg..ic
56bf97a7e2
Update Android Sensors to be compatible with the new Joystick interface. http://code.google.com/p/jmonkeyengine/source/detail?r=9763 http://code.google.com/p/jmonkeyengine/source/detail?r=9762
...
Only Orientation is supported currently
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9781 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 01:59:19 +00:00
iwg..ic
8daa039ecc
Add methods to control FlyByCamera zooming speed.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9759 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-22 04:08:55 +00:00
iwg..ic
47cb989c63
Added mapping of Android Scale Gesture (ie PinchZoom) to mouse wheel. If mouseEventsEnabled is set, mouse wheel reacts to the gesture.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9758 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-22 03:44:17 +00:00
iwg..ic
5b326f4054
Minor reorganization of how appSettings are created and passed to the Context on Android.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9745 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 22:00:27 +00:00
iwg..ic
fa6716877e
Remove requirement for buffer type images to have width=height on Android devices that do not support NPOT. Now images allowed as long as both height and width are POT on devices that don't support NPOT.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9744 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 20:58:09 +00:00
iwg..ic
d2b97fb422
Fix issue with onPause trying to cancel vibration when user has not defined Vibration Service permission in manifest.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9716 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 03:30:18 +00:00
iwg..ic
5a71423624
Fix issue with BEST config not choosing a valid config on some devices when RGBA is not matched (ie no config exists with 0bit alpha). ConfigChooser now looks for an exact match of all attributes first, then a match of RGBA only, then uses the first available config.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9715 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 01:07:25 +00:00
iwg..ic
3aa223360a
Add check for no Vibration Service on Device
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9714 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 00:52:49 +00:00
iwg..ic
5aca23f9b3
Changed Android Joystick Rumble to pulses. Rumble amount is used to determine length of vibration pulse. Vibration now stays on (pulsing based on rumble amount) until user sets joystick.rumble(0).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9709 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-08 20:56:29 +00:00
iwg..ic
f219c8596d
Added Rumble support for Android. If joystick.rumble is used, then the Manifest file must have <uses-permission android:name="android.permission.VIBRATE"/>. Since Android doesn't allow for changing the vibration intensity, the rumble amount is convert into a vibration time duration in milliseconds (ie rumble amount of 0.25 = 250 milliseconds).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9708 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-08 14:23:51 +00:00
iwg..om
39f265f50e
Adding Android Sensor support as simulated joysticks. Only orientation is supported right now, more sensor types to be added later. When device orientation changes, Joystick[0] is updated just like using an actual joystick. Users need to add "joystickEventsEnabled = true" to the MainActivity to enable the orientation joystick so battery life is conserved if sensor data is not desired. See http://jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/ for the long history.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-01 21:10:41 +00:00