Orientation now can be reverse landscape, small fix to keymap
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
android:label="@string/app_name"
|
||||
android:alwaysRetainTaskState="true"
|
||||
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:windowSoftInputMode="stateUnspecified|adjustPan"
|
||||
>
|
||||
|
||||
@@ -85,7 +85,12 @@ public class MainActivity extends Activity
|
||||
{
|
||||
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;
|
||||
// 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_RIGHT] = 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_MOVE_HOME] = SDL_KEY(HOME);
|
||||
keymap[KEYCODE_MOVE_END] = SDL_KEY(END);
|
||||
|
||||
Reference in New Issue
Block a user