mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fixes for Android build errors. Enable sensor landscape rotation.
Fix typo in Android Makefile ndk path. Fix touchscreen parts of game.cpp to work after Zeno's refactor. Fix isdigit and isspace overload conflict with Android Irrlicht in string.h Enable sensor landscape rotation in Android Manifiest. Add mapgen v5 to Android build. Fix Makefile not checking leveldb. Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
parent
9878e8de4f
commit
5413ed1195
5 changed files with 15 additions and 14 deletions
|
@ -2061,7 +2061,7 @@ bool Game::initGui(std::wstring *error_message)
|
|||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
|
||||
if (g_touchscreengui)
|
||||
g_touchscreengui->init(tsrc, porting::getDisplayDensity());
|
||||
g_touchscreengui->init(texture_src, porting::getDisplayDensity());
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -2852,8 +2852,8 @@ void Game::updateCameraDirection(CameraOrientation *cam,
|
|||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
|
||||
if (g_touchscreengui) {
|
||||
camera_yaw = g_touchscreengui->getYaw();
|
||||
camera_pitch = g_touchscreengui->getPitch();
|
||||
cam->camera_yaw = g_touchscreengui->getYaw();
|
||||
cam->camera_pitch = g_touchscreengui->getPitch();
|
||||
} else {
|
||||
#endif
|
||||
s32 dx = input->getMousePos().X - (driver->getScreenSize().Width / 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue