Commit Graph
63 Commits
Author SHA1 Message Date
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
Henrik Rydgård 748bdb3101 Virtual input code now working 2012-10-26 18:42:32 +02:00
Henrik Rydgard 70e6752884 Simple framework for virtual touchscreen buttons 2012-10-26 15:58:09 +02:00
Henrik Rydgard 1c1889c726 WIP 2012-09-28 10:01:01 +02:00
Henrik Rydgard 9303c13cbe Pass external dir to native apps 2012-08-13 00:41:24 +02:00
Henrik Rydgard 3b3f8242b0 mouse->pointer 2012-07-26 17:24:47 +02:00
Henrik Rydgard 5a6622eb37 Redo the DPI/Density code. It now makes sense. 2012-07-15 17:04:27 +02:00
Henrik Rydgard 1254fe414c Change target to 4.0 (but support 2.2, of course). Fix resulting lint issues. 2012-07-13 00:13:02 +02:00
Henrik Rydgard 4a6bc60ea8 warnin fixin 2012-07-09 01:11:18 +02:00
Henrik Rydgard b041bd474b Take DPI into account. Fix some memory leaks in JNI code. 2012-07-09 00:43:04 +02:00