Henrik Rydgård
c960fdb0b2
Add a new "queryConfig" native android function, so that the Java code can check
...
config options like rotation lock (config is implemented on the C++ side).
2014-02-04 12:07:17 +01:00
Henrik Rydgård
ed96a29988
Log detected DPI.
2014-01-31 14:32:06 +01:00
Henrik Rydgård
725ada516a
Don't log native-app messages, let the app handle it in NativeMessageReceived if it wants to
2014-01-14 11:11:59 +01:00
Henrik Rydgård
024846cb7b
Make Android "FrameCommands" quite a bit more robust.
2014-01-10 13:45:03 +01:00
valef
b2c3ee8d57
- Added jshortcutParam parameter to libnative_NativeApp_init.
...
- If shortcut_param is not empty, pass it as additional varargs argument to NativeInit() method.
const char *argv[3] = {app_name.c_str(), shortcut_param.c_str(), 0};
NativeInit(2, argv, user_data_path.c_str(), externalDir.c_str(), installID.c_str());
- NativeInit() is expected to treat extra argument as boot_filename, which in turn will start game immediately.
2014-01-06 13:36:40 +07:00
Henrik Rydgård
1ef531ec9c
Add some infrastructure to handle screen resizes that don't lose the device
2013-12-16 16:19:40 +01:00
Henrik Rydgård
d0d5be2c5d
Logspam reductions
2013-12-09 13:44:47 +01:00
Sacha
9e5df6028a
Add InputBox as a platform-specific system function instead of a host function. Enable it on all Qt platforms.
2013-12-08 20:15:09 +10:00
Henrik Rydgard
563e005101
Android: Allow sending generic string messages out to Java.
...
Implement stubs for other platforms.
2013-12-04 17:38:37 +01:00
Sacha
60f1d1e3cb
Clean up of unused or redundant code and comments.
2013-10-29 11:24:10 +10:00
Henrik Rydgård
ac1620137f
Android: Add simple haptic feedback support
2013-10-10 16:00:30 +02:00
Henrik Rydgard
357d224414
Use an EGLConfigChooser to give us more control over which display config to use.
2013-10-10 11:08:38 +02:00
Henrik Rydgård
67bea6c7ed
Run gl_lost() on gl shutdown
2013-10-09 16:08:02 +02:00
Henrik Rydgård
3778d8d8b1
Android: Reorganize the display resize stuff. Assorted cleanup and fixes.
2013-10-09 15:29:02 +02:00
Henrik Rydgard
fee82ce288
Fetch language/region code, fix bug in VFSGetFileInfo
2013-09-04 12:07:05 +02:00
Henrik Rydgard
1790bd8b7e
Replace System_GetName with System_GetProperty so we can return more info
2013-09-04 11:28:19 +02:00
Henrik Rydgard
89361d002f
Bugfixes
2013-08-18 00:39:21 +02:00
Henrik Rydgard
0a857fe4a1
Add a way to get the "System name" (will be mostly useful for android). Tweaks.
2013-08-18 00:14:25 +02:00
Henrik Rydgard
4a1c3c4f83
More UI stuff, add glMapBuffer
2013-08-16 16:47:25 +02:00
Henrik Rydgard
f00bfc5464
Get device manufacturer + type
2013-08-06 11:08:55 +02:00
Henrik Rydgård
13b8277bd3
Fix some confusing code noticed by unknown, typo fix
2013-07-20 09:43:55 +02:00
Henrik Rydgard
8559d298f8
Android: Make preparations to let the app survive an activity shutdown. Lets us deal with orientation change natively.
2013-07-16 22:50:24 +02:00
Henrik Rydgard
7151e4c06e
Generalize the code mapping android key events into pad button bits, add support for keys needed to navigate UI.
2013-07-15 17:37:16 +02:00
Henrik Rydgard
94a163ca35
Rename JNI method to match the Java side. Fixes gamepad related crash on Android.
2013-07-08 17:16:59 +02:00
Henrik Rydgard
1dec6e8154
Work towards full android joystick support.
2013-07-06 19:08:20 +02:00
Daniel Dressler
bba8285b94
Fix android doubling key presses
2013-07-03 19:54:16 -07:00
Daniel Dressler
824f4fb457
Add queue of pressed keys to input_state
2013-06-24 21:47:29 -07:00
Henrik Rydgard
0e5cab2b0c
Android 4.2+: Ask for optimal audio buffer size + sample rate. Ignore sample rate for now.
2013-06-19 14:27:50 +02:00
Henrik Rydgard
be287c71d9
Add a bunch of Android controller axises and button constants, for use later.
2013-06-11 20:34:09 +02:00
Henrik Rydgard
04f6a35031
More logging, making things slightly more robust somehow (fixed a hang issue without knowing what actually fixed it..)
2013-06-04 23:53:41 +02:00
Henrik Rydgard
a509d38357
UI, http with gzip, etc.
2013-06-04 22:32:04 +02:00
Unknown W. Brackets
a17a16eda2
Avoid a memory copy when audio is ahead.
2013-05-25 12:11:06 -07:00
Unknown W. Brackets
85f386c38b
Return number of samples in NativeApp::audioRender().
...
This way we can try to avoid writing invalid data to the buffer.
2013-05-25 11:44:32 -07:00
Henrik Rydgard
8b75763275
WIP new UI layout system!
2013-05-25 16:57:07 +02:00
Henrik Rydgard
7efbd96754
Android: Don't preserve state of buttons not set through jni between frames.
2013-03-30 23:54:23 +01:00
Jamie Halpern
9ef592a09f
Jamie H - Updated the project version to 17 to support new APIs. Added a JNI call to allow for left joystick input from Java. Added in the key codes for the PS3 controller's X and O buttons. Joystick input for buttons is now suppressed in the NativeActivity class.
2013-03-21 00:40:02 -04:00
Henrik Rydgard
4fb2e97afa
Fix bugs causing infinite loop in gllost, add more logging.
2013-03-10 17:49:01 +01:00
Henrik Rydgard
a9a067ef84
Set depth and color mask before clearing.
2013-02-22 22:11:26 +01:00
Henrik Rydgard
f5e775a9a1
Always specify all buffers for clearing. Missing one hurts, one extra doesn't.
2013-01-14 19:25:44 +01:00
Henrik Rydgard
dbda5f8037
Fix Down on Xperia Play
2013-01-04 00:24:21 +01:00
Henrik Rydgard
c952c8d0e7
Fix volume buttons on android and add some functonality to the VFS.
2012-12-01 10:35:55 +01:00
Henrik Rydgard
8677fac72c
Some UI code cleanup. Another variant of ease curve function. RebindTexture.
2012-11-22 18:41:04 +01:00
Henrik Rydgard
765e5a341b
Add untested support for Xperia Play
2012-11-10 10:11:18 +01:00
Henrik Rydgard
febf89bbc8
Fix an include path and release the input lock between stages.
2012-11-08 00:35:31 +01:00
Henrik Rydgard
d533766061
Move from turboviking to henrikrydgard as base namespace
2012-11-01 15:34:32 +01:00
Henrik Rydgård
3c231e9056
Reindent app-android.cpp and native-audio-so.cpp
2012-10-31 11:41:06 +01:00
Henrik Rydgard
23e6b0e374
UI tweaks, bugfixing
2012-10-30 17:36:28 +01:00
Henrik Rydgard
1ea568990d
Colored touchbuttons, portafixes
2012-10-30 16:23:08 +01:00
Henrik Rydgård
60d3b5f601
UI work
2012-10-28 11:37:10 +01:00
Henrik Rydgard
da61ce3950
Various work on surviving the Android activity life cycle
2012-10-27 12:36:25 +02:00