summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorhondres <liu.gam3@gmail.com>2016-01-24 18:01:37 +0100
committerhondres <liu.gam3@gmail.com>2016-01-24 18:01:37 +0100
commit285bcac224b045fef967c2a741240e5fa842cb08 (patch)
treeb60e785009a1dd34771e3eaf52cfcbc56e81b40b /platform
parente7c920fdbabd65a86864ec9610f895bee82f05ba (diff)
can use fallback mapping on all platforms
Diffstat (limited to 'platform')
-rw-r--r--platform/android/os_android.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp
index c8a3f6d728..c80284afcf 100644
--- a/platform/android/os_android.cpp
+++ b/platform/android/os_android.cpp
@@ -178,7 +178,7 @@ void OS_Android::initialize(const VideoMode& p_desired,int p_video_driver,int p_
physics_2d_server->init();
input = memnew( InputDefault );
-
+ input->set_fallback_mapping("Default Android Gamepad,Default Controller,leftx:a0,lefty:a1,dpdown:h0.4,rightstick:b8,rightshoulder:b10,rightx:a2,start:b6,righty:a3,dpleft:h0.8,lefttrigger:a4,x:b2,dpup:h0.1,back:b4,leftstick:b7,leftshoulder:b9,y:b3,a:b0,dpright:h0.2,righttrigger:a5,b:b1,");
}
void OS_Android::set_main_loop( MainLoop * p_main_loop ) {