43 Commits

Author SHA1 Message Date
Benau
b4fff82dc1 Add more options for frame rate 2022-11-10 11:17:23 +08:00
Benau
067ac4fe01 Implement resume behaviour for mobile stk 2022-04-02 13:33:08 +08:00
Benau
3d575a50a7 Get rid of the exit(0) at the end of android_main() function
After NDK r22 it longer crashes after dlclose, see:
https://github.com/android/ndk/issues/1200

Fix #3000
2021-10-04 20:10:41 +08:00
Benau
17329a1b29 Register native functions in SDL_main 2021-10-04 13:01:00 +08:00
Benau
ae32b8fc61 Fix max FPS order for iOS STK 2021-05-21 16:21:06 +08:00
Benau
4aecc8988d Fix iOS build 2021-02-09 01:41:03 +08:00
Deve
b064c38f09 Disable light scattering on android by default 2021-01-21 23:04:36 +01:00
Deve
3b02643db3 Try to enable advanced lighting on newer android phones.
We can see what is the feedback if it's fast enough for users. It still looks much better than without advanced lighting even when resolution is lower.
2021-01-20 00:12:12 +01:00
Deve
a7a1c8abca Some work with scale rtts.
IMO auto scale doesn't have much sense on desktop computers, because advanced lighting was enabled by default for a long time and graphics level 3 should be fast enough as it is. And still now rtts scale it's easily configurable in options.

I fixed deactivated "render resolution" spinner when you enter graphics options when advanced lighting is disabled.

I also added a function that reads dpi on android and it sets rtts scale based on this value. SDL is not initialized yet in this place, so getDisplayDPI() is not possible.
2021-01-19 23:58:51 +01:00
Benau
6aab8857cc Add ChromeOS identity in android 2020-07-18 10:34:15 +08:00
Benau
33fb8d3f5b Update code for android tv 2020-07-14 15:22:25 +08:00
Benau
ffbf5149cd Determine android STK platform specifically for lobby icon 2020-07-14 09:10:51 +08:00
Benau
8cc4dd3383 Initial work to make android STK use SDL2 completely 2020-07-12 08:25:06 +08:00
Benau
4a8306fca5 Initialize global variables in android device before android_app->running 2020-05-14 10:49:49 +08:00
Benau
1a2beedb68 Use a smaller default wheel size for iPad 2019-11-23 13:18:06 +08:00
Benau
62d8a17152 Allow setting default config value inside stk-code
Share the restore code with android and iOS
2019-10-22 01:43:09 +08:00
Benau
42d9e8967f Add default config for iOS devices 2019-10-18 22:22:32 +08:00
Benau
f4e7ccccfd Implement half sync in iOS manually 2019-10-16 16:46:40 +08:00
Benau
3a007fd8af Fix iOS build 2019-10-16 16:38:03 +08:00
Deve
6b26737cd2 Fixed AI in lan multiplayer on android 2019-10-12 22:52:47 +02:00
Benau
8c00a1e857 Share the override default params with android 2019-07-13 14:22:22 +08:00
dumaosen
4f6e3793b8 fix #3923 && replace fonts size to font size (#3960)
* Replace fonts size into font size

* replace fonts size to font size

* Replace fonts size into font size

* #3923 && replace fonts size to font size

* delete min & max

* add font size spinner in loadedfromfile

* Delete wrap around

* Fix a bug

* Wider range in artist debug mode

* Better word
2019-06-16 00:33:57 +08:00
Deve
ec485bae4c Add font size to options 2019-05-16 22:16:36 +02:00
Deve
4883e4a585 Use floating point value for font scale 2019-05-13 23:46:28 +02:00
dumaosen
da4ac0a976 A better solution for those scaling issues in high or creepy resolutions gen II (#3910)
* Fix scaling issues

* Fonts size adjustion support

* Add fonts size support && Fix scaling issue

* Use fonts height

* Fix scaling issues

* Add my name onto CREDITS

* Fix scaling issues

* Fix scaling issues

* Use space instead of tab

* Use space instead of tab

* Fix bad scale

* Use font height
2019-05-13 23:39:43 +02:00
Deve
a40b6e3758 Turn off multitouch race gui on non-android devices 2019-01-09 22:29:37 +01:00
Deve
15ffc98369 Detect if there is touch device available 2019-01-09 22:04:50 +01:00
Deve
df0377b0fc Use higher sensitivity only on tablets 2019-01-07 22:37:02 +01:00
Deve
8f90b5f9ab Make sure that files are flushed before exit 2018-11-22 22:34:10 +01:00
Deve
814916a2a6 Try to fix some crashes when closing android activity 2018-11-13 21:53:55 +01:00
Deve
4ece4a6c00 Change param name to avoid conflict 2018-10-28 22:27:34 +01:00
Deve
a3eecaedc1 Give a little sense for story mode on android.
At least close big door until all available challenges are completed.
2018-10-28 21:55:48 +01:00
Deve
94400b12d6 Set multitouch device scale depending on actual screen size 2018-08-25 23:42:05 +02:00
Deve
ec25a9d368 Enable screen keyboard on android even if there is no touch device.
It may be still useful for gamepad.
2018-07-11 22:41:22 +02:00
Deve
e0d262bfdd Allow to use screen keyboard even if hardware keyboard is available 2018-07-11 21:02:24 +02:00
hiker
98555a8f35 Merge remote-tracking branch 'origin/master' into game_protocol 2018-04-19 10:57:37 +10:00
Deve
4abdb14a4c Allow to use bigger fonts on desktop version for easier debugging 2018-04-11 21:39:34 +02:00
Benau
6536a311b3 Allow logging save only to a file 2018-02-27 13:22:58 +08:00
Deve
959f33223e Enable multitouch gui only if touchscreen is available 2018-02-14 22:28:55 +01:00
Deve
1a250c5b74 Hopefully fixed rare crash in createVideoModeList.
Assume that the window was null.
2017-09-30 23:43:29 +02:00
Deve
70c481cb26 Add a possibility to set android version in graphics restrictions. 2017-07-10 22:54:38 +02:00
Deve
09262a606b Add missing copyright.
The EGL context manager has been written from scratch, so our copyright should be fine.
2017-07-04 22:55:08 +02:00
Deve
803eba5d5c Fixed typo 2017-01-27 22:44:22 +01:00