Commit Graph

169 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
16e05862ab Preparation for SDK include dir cleaning up. 2015-01-04 22:32:40 +08:00
Yao Wei Tjong 姚伟忠
20e21050e9 Rename everything 'RASPI' to 'RPI'. [ci rebase] 2015-01-04 22:32:38 +08:00
Lasse Öörni
f120aa4be0 Return a writable documents directory on iOS. Contributed by att. 2014-07-29 02:24:49 +03:00
Yao Wei Tjong 姚伟忠
08f08e460b Improve the reliablity to find SDL_android_main.c when using SDK.
Replace usage of URHO3D_INSTALL_PREFIX environment variable with the more standard CMake's own CMAKE_PREFIX_PATH environment variable to define prefix path of non-standard SDK installation location.
2014-07-17 15:15:15 +08:00
Lasse Öörni
92ad14b2fe Fix memory allocation for the resources directory on iOS. 2014-06-25 22:47:55 +03:00
Lasse Öörni
21eb3d8bc9 Add Android accelerometer value clamping. Closes #350. 2014-05-16 11:48:59 +03:00
Yao Wei Tjong 姚伟忠
c1b506ee54 Clean up build scripts to avoid code duplication. 2014-05-16 13:12:52 +08:00
Yao Wei Tjong 姚伟忠
b1fbab4953 Be explicit in setting the file permissions when installing.
Closes #352.
2014-05-15 21:14:09 +08:00
Lasse Öörni
6b7f1d842c Added functions to remove one recorded touch gesture, or all touch gestures. 2014-05-13 22:55:37 +03:00
Lasse Öörni
9b833e371a Always hide the status bar independent of window flags. 2014-04-19 17:01:10 +03:00
aster
e0737e6c46 Replace Char event with TextInput event for CJK IME support. 2014-04-16 13:47:14 +08:00
Lasse Öörni
9906e7ed25 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304. 2014-04-15 23:48:04 +03:00
Yao Wei Tjong 姚伟忠
cea3743ea7 Filesystem class also captures stderr when executing console command.
Turn on SDL filesystem support for Linux platform.
2014-04-11 14:56:36 +08:00
Lasse Öörni
6f21f8bc69 Merge branch 'sdl-update' 2014-03-24 23:37:22 +02:00
Yao Wei Tjong 姚伟忠
591c8800b6 Minor fix for SDL build on Raspberry Pi platform. 2014-03-21 23:05:12 +08:00
Yao Wei Tjong 姚伟忠
ed1f820f9b For Travis CI - workaround FindALSA cmake module bug on Ubuntu 12.04. 2014-03-21 21:03:33 +08:00
Lasse Öörni
bc5730680b Fixed SDL build on MinGW. 2014-03-21 14:27:08 +02:00
Lasse Öörni
6f3a79eda3 Fix SDL keyboard event sending on X11. 2014-03-21 13:35:25 +02:00
Lasse Öörni
52aa369f5d Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit. 2014-03-21 02:46:42 +02:00
Lasse Öörni
365e0a7ed2 Fixed conflict. Removed nonexistent file from SDL CMakeLists.txt. 2014-03-21 01:48:52 +02:00
Lasse Öörni
1439b1c4be Merge SDL 2.0.3. 2014-03-21 01:44:14 +02:00
Lasse Öörni
4bf765d711 Removed SDL hack to get window handle for Direct3D9. Instead use SDL builtin functionality. 2014-03-18 19:37:18 +02:00
Lasse Öörni
77129bb9cb Added statements for SDL modification to comply with the license. 2014-02-13 15:23:46 +02:00
OvermindDL1
13e07265db Er, right, C code, no static_cast... 2014-02-12 03:03:22 -07:00
OvermindDL1
9f8a1ab977 Tabs to spaces indention changes to match everything else... 2014-02-12 02:48:20 -07:00
OvermindDL1
1ea3e8b0f9 *cough* ignore the duplicate comma... 2014-02-12 02:41:44 -07:00
OvermindDL1
d7f3c9ae66 Added support for raw keyboard keys to all other platforms, passes 0 for ones where there is not a raw code that makes sense, else passes in something sensible. 2014-02-12 02:33:54 -07:00
OvermindDL1
dba4216c86 Changed SDL to support unknown keys and pass them as the unused/raw keysym field as it seems that it used to do...
Will fix Urho3D to read that field and pass it to the Variant event for the systems to process if wanted.
2014-02-12 02:12:25 -07:00
Lasse Öörni
9a3f8e5aa5 Call SetProcessDPIAware() function on SDL video initialization to prevent Windows 8.1 from scaling & blurring the window on high DPI settings. Closes #83. 2013-12-22 21:35:31 +02:00
Yao Wei Tjong 姚伟忠
e83d98f016 Fix Urho3D.pc file for Windows and Raspberry Pi platforms.
Document cross-compiling example using pkg-config for Raspberry Pi platform.
Disable Urho3D.pc file generation for Android and iOS platform.
2013-11-17 21:26:44 +08:00
Yao Wei Tjong 姚伟忠
36620dd819 Avoid hardcoding of include dirs in the Urho3D.pc.in input file.
Also revert decision to use smaller letter case cmake destination directory in previous commit :).
2013-11-16 16:21:13 +08:00
Yao Wei Tjong 姚伟忠
d7942132f1 Configure and install Urho3D.pc file for pkg-config tool.
This is useful for Urho3D library user via SDK installation without having CMake installed.
2013-11-15 18:33:51 +08:00
Yao Wei Tjong 姚伟忠
a96a94a4f6 Fix FindUrho3D.cmake module to include back SDL headers as dep.
Install SDL headers for all platforms (not just Android).
2013-11-06 08:04:48 +08:00
Yao Wei Tjong 姚伟忠
bd3ee3f932 Fix the destination template dir for GCC only.
Android build on Windows platform should also use the same template location installed in the NDK or standalone toolchain.
2013-11-05 17:05:31 +08:00
Yao Wei Tjong 姚伟忠
24c11dda23 Revert "Setup Android template directory for both Windows and non-Windows."
This reverts commit 06f7d73922.
2013-11-05 17:00:43 +08:00
Yao Wei Tjong 姚伟忠
06f7d73922 Setup Android template directory for both Windows and non-Windows. 2013-11-05 16:36:14 +08:00
Yao Wei Tjong 姚伟忠
8a571ae437 Document how to install library and how to find it from installed SDK. 2013-11-05 15:52:37 +08:00
Yao Wei Tjong 姚伟忠
e8fbcf8a82 Add 'install' option for cross-compiling build and IOS as well.
Note: there is a known bug in CMake/Xcode generator that prevents iOS targets (library and bundle) to be installed correctly (see http://public.kitware.com/Bug/bug_relationship_graph.php?bug_id=12506&graph=dependency).
2013-11-04 00:13:49 +08:00
Yao Wei Tjong 姚伟忠
b45de628e7 Reduce 3rd-party headers installation to as minimum as possible. 2013-11-03 06:28:41 +08:00
Yao Wei Tjong 姚伟忠
52ff881c54 Add 'install' option (currently only available for native build).
Also enhance FindUrho3D.cmake module to find Urho3D library in the Urho3D SDK installation location.
2013-11-02 16:45:44 +08:00
Yao Wei Tjong 姚伟忠
95a9c71a21 Fixed runtime issue on Raspberry Pi with Pidora as OS. 2013-10-30 12:31:32 +08:00
Yao Wei Tjong 姚伟忠
953f87d052 Fixed mouse motion spin bug.
This bug only manifests itself when the SDL video driver has "WarpMouse" function implemented, like RPI video driver, in conjuction with call to SDL_SendMouseMotion() with relative event position.
2013-10-29 23:48:03 +08:00
Yao Wei Tjong 姚伟忠
9e09e958dc Fixed event handling for Raspberry Pi. 2013-10-29 13:58:47 +08:00
Yao Wei Tjong 姚伟忠
6cf19fa9ce Fixed Raspberry Pi error (could open Window). 2013-10-28 22:30:01 +08:00
Lasse Öörni
c1a1864a40 Fixed black window on subsequent application starts on Android. Removed GL synchronization before swapping buffers, which should be unnecessary. 2013-10-28 05:06:23 +02:00
Lasse Öörni
e74ee4ce52 Fixed exiting on Android. 2013-10-28 01:45:44 +02:00
Lasse Öörni
f299c0d815 Fixed Android GL context destroy / restore. Removed project.properties file, as it's generated by the command "android update project". 2013-10-27 14:58:41 +02:00
Lasse Öörni
afa6c4ccc3 Initial SDL 2.0.1 merge. Windows tested OK. Android will crash when returning to the application. 2013-10-27 03:11:36 +03:00
Lasse Öörni
9d0eb0ffae If a rigid body is kinematic, set it to never deactivate itself. 2013-10-12 21:22:47 +03:00
Lasse Öörni
8d5aa5bbd2 Fix UNICODE define in SDL not taking effect properly with new MinGW. 2013-10-12 18:37:58 +03:00
weitjong
598c24a4aa Corrected usage of message() command for showing CMake status. 2013-10-06 14:01:10 +08:00
Wei Tjong Yao
09ba853aba Keep CMakeCache.txt in between build script invocation to speed things up. Correct typo error. 2013-09-26 20:56:42 +00:00
Wei Tjong Yao
9b023ae862 Add BCM VideoCore include directories globally for RASPI build. 2013-09-18 10:15:22 +00:00
Wei Tjong Yao
7594f8105a Applied Raspberry Pi patch sent by Colin Barrett. 2013-09-15 23:35:13 +00:00
Lasse Öörni
554355ab63 Disable Engine::Exit() on iOS.
Disable Engine::SetAutoExit(false) on iOS and Android.
On Android, request activity finish from the Java side instead of directly exiting.
2013-09-10 13:01:07 +00:00
Wei Tjong Yao
463ce2a65d Enabled option to build Urho3D static and shared library (without main entry point) for Android. Fixed debug compiler flags being defined multiple times for Android build. Added post-build command to strip the generated Urho3D shared library if it is built for embedded devices. Enhanced cmake_gcc.sh to automatically fix the generated Eclipse project setting files for Android build. 2013-08-25 08:08:52 +00:00
Wei Tjong Yao
309218444d Fixed keyboard event handler for Raspberry Pi platform - have to translate native scancode to SDL scancode first for key modifiers to work. 2013-08-21 15:33:19 +00:00
Lasse Öörni
1590de8b63 Removed offending function from SDL which prevented proper startup when Urho3D was built as a shared library on Windows. 2013-08-19 00:37:28 +00:00
Wei Tjong Yao
dfd142c7d2 Added Raspberry Pi bootstrap back to fix raspi build. Moved the xmlstarlet logic to cmake_gcc.sh for code reuse. Added ANDROID_ABI into build options documentation. 2013-08-17 06:27:32 +00:00
Wei Tjong Yao
ccd6a926ae Added Urho3D library build option for IOS. 2013-08-16 08:56:55 +00:00
Lasse Öörni
ce9154d545 Added missing URHO3D_API defines to some derived classes.
Fixed obj file copying when building Urho3D library on VS and not using USE_MKLINK.
2013-08-15 21:02:54 +00:00
Lasse Öörni
e903c5edff Before closing an OpenGL SDL window, set it to windowed to fix annoying transition effect on OS X. 2013-08-15 00:00:25 +00:00
Lasse Öörni
0900977b78 Applied some post-SDL 2.0.0 fixes from SDL official repository. 2013-08-14 22:49:34 +00:00
Lasse Öörni
8f0182d1e9 In case SDL's window resize event is handled late, use the current window size at the time of handling, not the event parameters.
Removed unnecessary OS X SDL modification.
2013-08-14 21:42:59 +00:00
Wei Tjong Yao
3fd0638d62 Removed no-warn-unused-cli option as it hid typo error in passing build options. 2013-08-13 23:11:36 +00:00
Lasse Öörni
5bfde24e0b Updated to stable SDL 2.0. 2013-08-13 13:20:59 +00:00
Lasse Öörni
972124649e Include only one haptic driver (either windows or dummy) on Windows to fix MinGW build without DX joystick support, and to ensure no duplicate object file names. 2013-08-11 20:47:50 +00:00
Wei Tjong Yao
a01faa3ef2 Fixed static and shared library build using Xcode. 2013-08-09 16:19:58 +00:00
Wei Tjong Yao
02512cecf9 In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'. 2013-08-09 10:29:22 +00:00