mouseEventsInvertX and mouseEventsInvertY settings in newly created MainActivity files and instead, show mouseEventsEnabled. Default values in AndroidHarness (false for both invertX and invertY) match Desktop mouse.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10391 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
iwg..om 12 years ago
parent b7ae718b64
commit b475a8e9c9
  1. 14
      sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java

@ -78,7 +78,7 @@ public class AndroidSdkTool {
/** /**
* Returns a FileObject for the android SDK folder, null if none is specified * Returns a FileObject for the android SDK folder, null if none is specified
* @return * @return
*/ */
public static FileObject getSdkFolder() { public static FileObject getSdkFolder() {
String path = getSdkPath(); String path = getSdkPath();
@ -94,7 +94,7 @@ public class AndroidSdkTool {
/** /**
* Returns a String with the path to the SDK or null if none is specified. * Returns a String with the path to the SDK or null if none is specified.
* @return * @return
*/ */
public static String getSdkPath() { public static String getSdkPath() {
String path = NbPreferences.forModule(AndroidSdkTool.class).get("sdk_path", null); String path = NbPreferences.forModule(AndroidSdkTool.class).get("sdk_path", null);
@ -125,7 +125,7 @@ public class AndroidSdkTool {
/** /**
* Returns a string with the path to the android tool, specific for platform (.exe for windows) * Returns a string with the path to the android tool, specific for platform (.exe for windows)
* @return * @return
*/ */
public static String getAndroidToolPath() { public static String getAndroidToolPath() {
FileObject executable = null; FileObject executable = null;
@ -147,7 +147,7 @@ public class AndroidSdkTool {
/** /**
* Gets a list of android targets registered in the SDK * Gets a list of android targets registered in the SDK
* @return * @return
*/ */
public static List<AndroidTarget> getTargetList() { public static List<AndroidTarget> getTargetList() {
ArrayList<AndroidTarget> list = new ArrayList<AndroidTarget>(); ArrayList<AndroidTarget> list = new ArrayList<AndroidTarget>();
@ -420,10 +420,8 @@ public class AndroidSdkTool {
+ " eglConfigVerboseLogging = false;\n" + " eglConfigVerboseLogging = false;\n"
+ " // Choose screen orientation\n" + " // Choose screen orientation\n"
+ " screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;\n" + " screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;\n"
+ " // Invert the MouseEvents X (default = true)\n" + " // Enable MouseEvents being generated from TouchEvents (default = true)\n"
+ " mouseEventsInvertX = true;\n" + " mouseEventsEnabled = true;\n"
+ " // Invert the MouseEvents Y (default = true)\n"
+ " mouseEventsInvertY = true;\n"
+ " }\n" + " }\n"
+ " \n" + " \n"
+ "}\n"; + "}\n";

Loading…
Cancel
Save