Orientation now can be reverse landscape, small fix to keymap
This commit is contained in:
@@ -1011,7 +1011,7 @@ AppShortName=`echo $AppName | sed 's/ //g'`
|
|||||||
DataPath="$AppFullName"
|
DataPath="$AppFullName"
|
||||||
AppFullNameUnderscored=`echo $AppFullName | sed 's/[.]/_/g'`
|
AppFullNameUnderscored=`echo $AppFullName | sed 's/[.]/_/g'`
|
||||||
AppSharedLibrariesPath=/data/data/$AppFullName/lib
|
AppSharedLibrariesPath=/data/data/$AppFullName/lib
|
||||||
ScreenOrientation1=portrait
|
ScreenOrientation1=userPortrait
|
||||||
HorizontalOrientation=false
|
HorizontalOrientation=false
|
||||||
|
|
||||||
UsingSdl13=false
|
UsingSdl13=false
|
||||||
@@ -1025,7 +1025,7 @@ if [ "$LibSdlVersion" = "2.0" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ScreenOrientation" = "h" -o "$ScreenOrientation" = "l" ] ; then
|
if [ "$ScreenOrientation" = "h" -o "$ScreenOrientation" = "l" ] ; then
|
||||||
ScreenOrientation1=landscape
|
ScreenOrientation1=userLandscape
|
||||||
HorizontalOrientation=true
|
HorizontalOrientation=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:alwaysRetainTaskState="true"
|
android:alwaysRetainTaskState="true"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="userLandscape"
|
||||||
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode|screenSize|smallestScreenSize"
|
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode|screenSize|smallestScreenSize"
|
||||||
android:windowSoftInputMode="stateUnspecified|adjustPan"
|
android:windowSoftInputMode="stateUnspecified|adjustPan"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -85,7 +85,12 @@ public class MainActivity extends Activity
|
|||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
setRequestedOrientation(Globals.HorizontalOrientation ? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
if( android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2 )
|
||||||
|
setRequestedOrientation(Globals.HorizontalOrientation ? ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT);
|
||||||
|
else if( android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD )
|
||||||
|
setRequestedOrientation(Globals.HorizontalOrientation ? ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
|
||||||
|
else
|
||||||
|
setRequestedOrientation(Globals.HorizontalOrientation ? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
// fullscreen mode
|
// fullscreen mode
|
||||||
|
|||||||
Submodule project/jni/application/hid-pc-keyboard/src updated: e9b01beb1a...cbbab1c8d6
@@ -154,7 +154,7 @@ void SDL_android_init_keymap(SDLKey *SDL_android_keymap)
|
|||||||
keymap[KEYCODE_META_LEFT] = SDL_KEY(LGUI);
|
keymap[KEYCODE_META_LEFT] = SDL_KEY(LGUI);
|
||||||
keymap[KEYCODE_META_RIGHT] = SDL_KEY(RGUI);
|
keymap[KEYCODE_META_RIGHT] = SDL_KEY(RGUI);
|
||||||
keymap[KEYCODE_FUNCTION] = SDL_KEY(RGUI);
|
keymap[KEYCODE_FUNCTION] = SDL_KEY(RGUI);
|
||||||
keymap[KEYCODE_SYSRQ] = SDL_KEY(SYSREQ);
|
keymap[KEYCODE_SYSRQ] = SDL_KEY(PRINT);
|
||||||
keymap[KEYCODE_BREAK] = SDL_KEY(PAUSE);
|
keymap[KEYCODE_BREAK] = SDL_KEY(PAUSE);
|
||||||
keymap[KEYCODE_MOVE_HOME] = SDL_KEY(HOME);
|
keymap[KEYCODE_MOVE_HOME] = SDL_KEY(HOME);
|
||||||
keymap[KEYCODE_MOVE_END] = SDL_KEY(END);
|
keymap[KEYCODE_MOVE_END] = SDL_KEY(END);
|
||||||
|
|||||||
Reference in New Issue
Block a user