Updated Simple Theme by Beholder, fixed small bug in config dialogs
@@ -114,7 +114,7 @@ class Settings
|
||||
}
|
||||
Globals.ScreenKbControlsShown[0] = Globals.AppNeedsArrowKeys;
|
||||
Globals.ScreenKbControlsShown[1] = Globals.AppNeedsTextInput;
|
||||
for( int i = 2; i < 7; i++ )
|
||||
for( int i = 2; i < 8; i++ )
|
||||
Globals.ScreenKbControlsShown[i] = ( i - 2 < Globals.AppTouchscreenKeyboardKeysAmount );
|
||||
for( int i = 8; i < 12; i++ )
|
||||
Globals.ScreenKbControlsShown[i] = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ AppHandlesJoystickSensitivity=n
|
||||
AppUsesMultitouch=n
|
||||
NonBlockingSwapBuffers=n
|
||||
RedefinedKeys="SPACE RETURN"
|
||||
AppTouchscreenKeyboardKeysAmount=7
|
||||
AppTouchscreenKeyboardKeysAmount=6
|
||||
AppTouchscreenKeyboardKeysAmountAutoFire=2
|
||||
RedefinedKeysScreenKb="SPACE RETURN"
|
||||
MultiABI=n
|
||||
|
||||
@@ -1329,7 +1329,6 @@ JAVA_EXPORT_NAME(Settings_nativeGetKeymapKeyScreenKb) ( JNIEnv* env, jobject th
|
||||
JNIEXPORT void JNICALL
|
||||
JAVA_EXPORT_NAME(Settings_nativeSetKeymapKeyScreenKb) ( JNIEnv* env, jobject thiz, jint keynum, jint key)
|
||||
{
|
||||
__android_log_print(ANDROID_LOG_INFO, "libSDL", "nativeSetKeymapKeyScreenKb(): %d %d", keynum, key);
|
||||
if( keynum < 0 || keynum > SDL_ANDROID_SCREENKEYBOARD_BUTTON_5 - SDL_ANDROID_SCREENKEYBOARD_BUTTON_0 + 4 )
|
||||
return;
|
||||
|
||||
@@ -1341,7 +1340,6 @@ JNIEXPORT void JNICALL
|
||||
JAVA_EXPORT_NAME(Settings_nativeSetScreenKbKeyUsed) ( JNIEnv* env, jobject thiz, jint keynum, jint used)
|
||||
{
|
||||
SDL_Rect rect = {0, 0, 0, 0};
|
||||
__android_log_print(ANDROID_LOG_INFO, "libSDL", "nativeSetScreenKbKeyUsed(): %d %d", keynum, used);
|
||||
int key = -1;
|
||||
if( keynum == 0 )
|
||||
key = SDL_ANDROID_SCREENKEYBOARD_BUTTON_DPAD;
|
||||
|
||||
@@ -850,7 +850,6 @@ int SDL_ANDROID_SetScreenKeyboardButtonPos(int buttonId, SDL_Rect * pos)
|
||||
if( buttonId == SDL_ANDROID_SCREENKEYBOARD_BUTTON_DPAD )
|
||||
{
|
||||
arrows = *pos;
|
||||
__android_log_print(ANDROID_LOG_INFO, "libSDL", "SetScreenKeyboardButtonPos(): arrows %dx%d-%dx%d", (int)pos->x, (int)pos->y, (int)pos->w, (int)pos->h);
|
||||
if(touchscreenKeyboardTheme == 0)
|
||||
{
|
||||
prepareFontCharWireframe(FONT_LEFT, arrows.w / 2, arrows.h / 2);
|
||||
@@ -862,7 +861,6 @@ int SDL_ANDROID_SetScreenKeyboardButtonPos(int buttonId, SDL_Rect * pos)
|
||||
else
|
||||
{
|
||||
buttons[buttonId - SDL_ANDROID_SCREENKEYBOARD_BUTTON_0] = *pos;
|
||||
__android_log_print(ANDROID_LOG_INFO, "libSDL", "SetScreenKeyboardButtonPos(): button %d %dx%d-%dx%d", buttonId - SDL_ANDROID_SCREENKEYBOARD_BUTTON_0, (int)pos->x, (int)pos->y, (int)pos->w, (int)pos->h);
|
||||
if(touchscreenKeyboardTheme == 0)
|
||||
{
|
||||
int i = buttonId - SDL_ANDROID_SCREENKEYBOARD_BUTTON_0;
|
||||
|
||||
BIN
project/themes/SimpleTheme/1.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
project/themes/SimpleTheme/1auto.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
project/themes/SimpleTheme/1auto_pressed.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
project/themes/SimpleTheme/1pressed.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
project/themes/SimpleTheme/2.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
project/themes/SimpleTheme/2auto.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
project/themes/SimpleTheme/2auto_pressed.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
project/themes/SimpleTheme/2pressed.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
project/themes/SimpleTheme/3.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
project/themes/SimpleTheme/3pressed.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
project/themes/SimpleTheme/4.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
project/themes/SimpleTheme/4pressed.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
project/themes/SimpleTheme/5.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
project/themes/SimpleTheme/5pressed.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
project/themes/SimpleTheme/6.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
project/themes/SimpleTheme/6pressed.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
project/themes/SimpleTheme/dpad.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
project/themes/SimpleTheme/dpad_down.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
project/themes/SimpleTheme/dpad_left.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
project/themes/SimpleTheme/dpad_right.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
project/themes/SimpleTheme/dpad_up.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
project/themes/SimpleTheme/keyboard.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
@@ -65,10 +65,10 @@ rm -f ../../res/raw/simpletheme.raw
|
||||
|
||||
for F in \
|
||||
dpad \
|
||||
pad_left \
|
||||
pad_right \
|
||||
pad_up \
|
||||
pad_down \
|
||||
dpad_left \
|
||||
dpad_right \
|
||||
dpad_up \
|
||||
dpad_down \
|
||||
\
|
||||
1auto_pressed \
|
||||
1auto \
|
||||
|
||||