Commit Graph
52 Commits
Author SHA1 Message Date
Dries Harnie 332fa1d52d ANDROID: Use extensions to query NPoT textures 2014-04-21 12:00:41 +02:00
Dries Harnie 9f6cae54af GRAPHICS: Add OpenGL extension registry 2014-04-21 12:00:41 +02:00
Joel Teichroeb 8d8b8c186d ANDROID: Use new TGA location and namespace 2014-04-05 13:33:55 -07:00
Pawel Kolodziejski 8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Joel Teichroeb 16d312f661 ANDROID: Do not try to create an asset archive stream if the file is not in the asset 2014-04-04 12:07:44 -07:00
Dries Harnie c08d0f403b ANDROID: Use System.loadLibrary instead of System.load 2014-04-02 11:55:53 +02:00
Dries Harnie 79a7ab16c1 ANDROID: Preserve aspect ratio 2014-02-24 20:04:38 +01:00
Dries Harnie bd07459667 Merge pull request #825 from PoulpiFr/running-manny
ANDROID: Quick changement to the touchcontrols to let Manny run + Overlay buttons on screen
2014-02-09 23:02:21 +01:00
Dries Harnie e65d98801e ANDROID: Factor event pushing into pushEvent 2014-02-02 14:25:06 +01:00
Dries Harnie 24d679fa9d ANDROID: Remove unused htc_fail and shake_offset fields 2014-02-02 14:12:28 +01:00
Joel Teichroeb b6363dc4b7 ANDROID: Fix a race condition
setSurface is done in a different thread than the one that starts
the scummvm main. The main thread would then wait until the setSurface
thread notifies. The setSurface thread would notify before it actually
calls setSurface, meaning if the thread is preemted before calling
setSurface, initSurface will assert, causing the app to crash.
2014-01-28 22:50:39 -08:00
Joel Teichroeb 01459a674f ANDROID: Update the asset archive code to use AAssets 2014-01-27 12:09:18 -08:00
Joel Teichroeb 91667132f5 ANDROID: Use custom_rules.xml instead of build.xml
The build.xml was getting ignored, so we need to actually override rules
2014-01-27 10:13:25 -08:00
poulpi fb4135e505 ANDROID: Add an emulatedKeypress function in the main Activity 2014-01-25 18:19:41 +01:00
poulpi a50bf59195 ANDROID: Add control buttons on the Android screen
ANDROID: Removing some logging
2014-01-25 15:29:45 +01:00
poulpi 5cdebf9a01 ANDROID: Modify the touchscreen controls to make Manny run 2014-01-25 15:29:44 +01:00
Joel Teichroeb 0afc2b8e0b ANDROID: Remove Unpacker and plugin related things
Also remove the splash screen that happend during unpacking.
2014-01-24 11:51:20 -08:00
Dries Harnie 841d08db2e GRAPHICS: Distinguish between texture size and viewport size in Graphics::FrameBuffer 2014-01-23 21:51:54 +01:00
Joel Teichroeb 38c22e3c70 ANDROID: Don't install source files to apk
If ant is let loose on backends/platform/android it copies everything it can into the final apk file, which we obviously don't want. This changes it so that it will only see the java files which it compiles puts the results into the apk.
2014-01-23 10:08:13 -08:00
Joel Teichroeb 465c91a8b4 ANDROID: Make androidrelease use ant release 2014-01-20 14:17:57 -08:00
Dries Harnie 8e8c9c32df ANDROID: Bundle shaders with assets 2014-01-14 00:26:39 +01:00
Dries Harnie 47414b51f7 ANDROID: Draw GLES2 in framebuffer 2014-01-14 00:26:39 +01:00
Dries Harnie 4e135071fc ANDROID: Support OUYA platform & controller 2014-01-14 00:26:31 +01:00
Dries Harnie fa85b48dc8 ANDROID: Aspect ratio correction 2014-01-13 19:36:44 +01:00
Dries Harnie 2f55195a8b ANDROID: Cache memberlist in Archive
This reduces startup time on my HTC One from 37 seconds to 8!
2014-01-13 19:36:44 +01:00
Dries Harnie 308fd295a0 BUILD: Refactor Android build 2014-01-13 19:36:44 +01:00
Dries Harnie 814677cac8 ANDROID: Surface::pixels -> Surface::getPixels() 2013-11-11 18:12:39 +01:00
Pawel Kolodziejski 790db038c0 ALL: sync with scummvm 2013-10-13 11:30:34 +02:00
Pawel Kolodziejski 068ff94d20 ALL: synced with ScummVM 2013-07-07 15:29:33 +02:00
Dries Harnie bf8a7ca542 ANDROID: Always enable blending for touch controls. 2013-06-02 15:27:55 +02:00
Dries Harnie bc425be991 ANDROID: Access extra verbs by swiping from right 2013-06-02 15:27:55 +02:00
Dries Harnie dcca11fea8 ANDROID: Refactor touch controls to separate class 2013-06-02 15:27:55 +02:00
Dries Harnie 6065f93feb ANDROID: Move event types to separate file 2013-06-02 15:27:55 +02:00
Dries Harnie 471e4748b3 ANDROID: Support swipe-based virtcontrols
Touching and holding the left side of the screen functions as a
joystick.
Swiping the middle side allows fine control over arrow keys (eg.
dialogues), tapping it sends an enter key.
Swiping the right side up/down sends pageup/pagedown.
2013-06-02 15:27:55 +02:00
Dries Harnie dcfade91e9 ANDROID: Force fullscreen setting to true 2013-06-02 15:27:38 +02:00
Dries Harnie 7396dc5778 ANDROID: Joystick movement and swipes 2013-06-02 14:53:50 +02:00
Dries Harnie 97a698a554 ANDROID: Add kVirtControls to OSystem_Android 2013-06-02 14:53:50 +02:00
Dries Harnie 5dac6fec49 ANDROID: Don't compress assets, skip asset header 2013-06-02 14:53:50 +02:00
Dries Harnie 1272c4030c ANDROID: Switch renderer to GL ES2 2013-06-02 14:53:50 +02:00
Dries Harnie 15644d32fc ANDROID: Unpack library from lib/... instead of mylib 2013-06-02 14:53:50 +02:00
Dries Harnie 8e7dfac024 ANDROID: Enable support for OpenGL ES2 2013-06-02 14:53:45 +02:00
Tobias Gunkel 7b6a74d21d ANDROID: add joystick support 2013-01-13 12:06:46 +01:00
Pawel Kolodziejski 72664703cf ALL: sync with scummvm 2012-07-06 22:05:21 +02:00
Tobias Gunkel 40e2cc4d96 ANDROID: increase required NDK and SDK version numbers
Android NDK 5 and SDK 7 (Android 2.1) are needed to provide full multitouch support. Otherwise MotionEvent.getPointerCount() and  MotionEvent.getX(int) are not available.

In addition GLES2 headers are only available in Android 2.1 and newer revisions.
2012-04-30 19:11:32 +02:00
Tobias Gunkel 7b668875ea ANDROID: disable compression of zip-files in apk
Do not compress zip-files added to the apk archive. This is very slow on android 2.3 devices if the zip-file is big (e.g. modern.zip theme) and devices with android < 2.3 do not support assets with an uncompressed size greater than 1 MB at all.

As most zip-file entries (like themes) are just stored and not compressed, zip-file assets are recompressed before adding them to the apk to avoid wasting space.
2012-04-30 19:11:32 +02:00
Tobias Gunkel 9a8ae3c60f ANDROID: define GL_GLEXT_PROTOTYPES
define GL_GLEXT_PROTOTYPES so that the function prototype of glDrawTexiOES in <GLES/gl.h> is found.
2012-04-30 19:11:32 +02:00
Tobias Gunkel 228cc7ac64 ANDROID: adjust event handling
- controls in non-mouse mode:
  - use the touchpad borders as arrow keys
  - double tap on one of the borders triggers run mode
  - tap into the center area triggers the use-action (ENTER)
  - double-tap into the center area triggers the lookat-action ('u')
  - long press into the center area shows inventory in grim ('i')
  - a fling in the center area skips the current sentence ('.')

TODO: Instead of hardcoding the keys, they should be mapped later.

Note that passing events from onTouch() to the GestureListener does not seem to work correctly (most double-taps are ignored). Instead onTouchEvent() is used now which worked much better with the GestureListener.
2012-04-30 19:11:32 +02:00
Tobias Gunkel c501fa8c58 ANDROID: implement OSystem methods and add support for soft rendering 2012-04-30 19:11:31 +02:00
Tobias Gunkel 45ca17f122 ANDROID: adjust Android backend files for ResidualVM 2012-04-30 19:09:34 +02:00
Tobias Gunkel 28a4f5bbc6 ANDROID: rename java files 2012-04-30 19:07:31 +02:00