diff options
-rw-r--r-- | backends/platform/linuxmoto/hardwarekeys.cpp | 22 | ||||
-rw-r--r-- | backends/platform/linuxmoto/linuxmoto-events.cpp | 67 | ||||
-rwxr-xr-x | configure | 10 | ||||
-rw-r--r-- | dists/motoezx/scummvm-sm.png | bin | 1435 -> 1115 bytes | |||
-rw-r--r-- | dists/motoezx/scummvm.png | bin | 1681 -> 1710 bytes | |||
-rw-r--r-- | dists/motomagx/mpkg/mySDL.cfg | 30 | ||||
-rwxr-xr-x | dists/motomagx/mpkg/run.sh | 10 | ||||
-rw-r--r-- | dists/motomagx/mpkg/scummvm.desktop | 6 | ||||
-rw-r--r-- | dists/motomagx/mpkg/scummvm_usr.png | bin | 0 -> 3349 bytes | |||
-rwxr-xr-x | dists/motomagx/pep/app/scummvm.sh | 16 | ||||
-rw-r--r-- | dists/motomagx/pep/description.ini | 20 | ||||
-rw-r--r-- | dists/motomagx/pep/scummvm_big_usr.png | bin | 0 -> 1968 bytes | |||
-rw-r--r-- | dists/motomagx/pep/scummvm_small_usr.png | bin | 0 -> 992 bytes | |||
-rw-r--r-- | ports.mk | 23 |
14 files changed, 182 insertions, 22 deletions
diff --git a/backends/platform/linuxmoto/hardwarekeys.cpp b/backends/platform/linuxmoto/hardwarekeys.cpp index e65d2bec2b..afd89495f9 100644 --- a/backends/platform/linuxmoto/hardwarekeys.cpp +++ b/backends/platform/linuxmoto/hardwarekeys.cpp @@ -48,7 +48,25 @@ static const Key keys[] = { { "CALL", KEYCODE_SPACE, ASCII_SPACE, "Call", kActionKeyType, false }, { "PLUS", KEYCODE_PLUS, '+', "+", kActionKeyType, false }, { "MINUS", KEYCODE_MINUS, '-', "-", kActionKeyType, false }, - +#ifdef MOTOMAGX + {"BACKSPACE", KEYCODE_BACKSPACE, ASCII_BACKSPACE, "Backspace", kActionKeyType, false}, + {"TAB", KEYCODE_TAB, ASCII_TAB, "Tab", kActionKeyType, false}, + {"HASH", KEYCODE_HASH, '#', "#", kActionKeyType, false}, + {"ASTERISK", KEYCODE_ASTERISK, '*', "*", kActionKeyType, false}, + {"LEFTSOFT", KEYCODE_F9, ASCII_F9, "LeftSoft", kActionKeyType, false}, + {"RIGHTSOFT", KEYCODE_F11, ASCII_F11, "RightSoft", kActionKeyType, false}, + {"0", KEYCODE_0, '0', "0", kActionKeyType, false}, + {"1", KEYCODE_1, '1', "1", kActionKeyType, false}, + {"2", KEYCODE_2, '2', "2", kActionKeyType, false}, + {"3", KEYCODE_3, '3', "3", kActionKeyType, false}, + {"4", KEYCODE_4, '4', "4", kActionKeyType, false}, + {"5", KEYCODE_5, '5', "5", kActionKeyType, false}, + {"6", KEYCODE_6, '6', "6", kActionKeyType, false}, + {"7", KEYCODE_7, '7', "7", kActionKeyType, false}, + {"8", KEYCODE_8, '8', "8", kActionKeyType, false}, + {"9", KEYCODE_9, '9', "9", kActionKeyType, false}, +#endif +#ifdef MOTOEZX { "a", KEYCODE_a, 'a', "a", kActionKeyType, true }, { "b", KEYCODE_b, 'b', "b", kActionKeyType, true }, { "c", KEYCODE_c, 'c', "c", kActionKeyType, true }, @@ -59,7 +77,7 @@ static const Key keys[] = { { "h", KEYCODE_h, 'h', "h", kActionKeyType, true }, { "i", KEYCODE_i, 'i', "i", kActionKeyType, true }, { "j", KEYCODE_j, 'j', "j", kActionKeyType, true }, - +#endif // Numeric keypad // Arrows + Home/End pad diff --git a/backends/platform/linuxmoto/linuxmoto-events.cpp b/backends/platform/linuxmoto/linuxmoto-events.cpp index be5eec5c7e..88f95d34bf 100644 --- a/backends/platform/linuxmoto/linuxmoto-events.cpp +++ b/backends/platform/linuxmoto/linuxmoto-events.cpp @@ -60,14 +60,38 @@ bool OSystem_LINUXMOTO::remapKey(SDL_Event &ev, Common::Event &event) { else if (ev.key.keysym.sym == SDLK_SPACE) { ev.key.keysym.sym = SDLK_F5; } - // Camera to VirtualKeyboard + // VirtualKeyboard - Camera key else if (ev.key.keysym.sym == SDLK_PAUSE) { ev.key.keysym.sym = SDLK_F7; } - // mod+fire to enter + // Enter - mod+fire key else if (ev.key.keysym.sym == SDLK_b) { ev.key.keysym.sym = SDLK_RETURN; } + // '3' - mod+up key + else if (ev.key.keysym.sym == SDLK_j) { + ev.key.keysym.sym = SDLK_3; + } + // '6' - mod+up key + else if (ev.key.keysym.sym == SDLK_i) { + ev.key.keysym.sym = SDLK_6; + } + // 'y' - mod+right key + else if (ev.key.keysym.sym == SDLK_g) { + ev.key.keysym.sym = SDLK_y; + } + // 'n' - mod+right key + else if (ev.key.keysym.sym == SDLK_h) { + ev.key.keysym.sym = SDLK_n; + } + // mod+vol'+' -> volume'+' + else if (ev.key.keysym.sym == SDLK_c) { + ev.key.keysym.sym = SDLK_RIGHTBRACKET; + } + // mod+vol'-' -> volume'-' + else if (ev.key.keysym.sym == SDLK_d) { + ev.key.keysym.sym = SDLK_LEFTBRACKET; + } #endif // Motorola Z6/V8 remapkey by Ant-On #ifdef MOTOMAGX @@ -75,21 +99,35 @@ bool OSystem_LINUXMOTO::remapKey(SDL_Event &ev, Common::Event &event) { if (ev.key.keysym.sym == SDLK_ESCAPE) { event.type = Common::EVENT_QUIT; return true; - } else - // F5 Game Menu - Call key + } + // F5 Game Menu - Slide Select if (ev.key.keysym.sym == SDLK_SPACE) { ev.key.keysym.sym = SDLK_F5; } - // 'y' - Mod+Right key + // Escape - Dial key + else if (ev.key.keysym.sym == SDLK_TAB) { + ev.key.keysym.sym = SDLK_ESCAPE; + } + // Space - Virtual keyboard + else if (ev.key.keysym.sym == SDLK_PAUSE) { + ev.key.keysym.sym = SDLK_F7; + } // 'y' - Left soft else if (ev.key.keysym.sym == SDLK_F9) { ev.key.keysym.sym = SDLK_y; } - // 'n' - Mod+Left key - // 'n' - rigth soft + // 'n' - Rigth soft else if (ev.key.keysym.sym == SDLK_F11) { ev.key.keysym.sym = SDLK_n; } + // # -> volume'+' + else if (ev.key.keysym.sym == SDLK_HASH) { + ev.key.keysym.sym = SDLK_RIGHTBRACKET; + } + // * -> volume'-' + else if (ev.key.keysym.sym == SDLK_WORLD_55) { + ev.key.keysym.sym = SDLK_LEFTBRACKET; + } #endif // Joystick to Mouse @@ -144,9 +182,8 @@ bool OSystem_LINUXMOTO::remapKey(SDL_Event &ev, Common::Event &event) { fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_RETURN) { // Joystick center to pressing Left Mouse - // _km.y_vel = 0; - // _km.y_down_count = 0; + } else if (ev.key.keysym.sym == SDLK_RETURN) { + // Joystick center to pressing Left Mouse if (ev.key.type == SDL_KEYDOWN) { event.type = Common::EVENT_LBUTTONDOWN; } else { @@ -156,9 +193,8 @@ bool OSystem_LINUXMOTO::remapKey(SDL_Event &ev, Common::Event &event) { fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_PLUS) { // Volume Up to pressing Right Mouse - // _km.y_vel = 0; - // _km.y_down_count = 0; + } else if (ev.key.keysym.sym == SDLK_PLUS) { + // Volume Up to pressing Right Mouse if (ev.key.type == SDL_KEYDOWN ) { event.type = Common::EVENT_RBUTTONDOWN; } else { @@ -167,9 +203,8 @@ bool OSystem_LINUXMOTO::remapKey(SDL_Event &ev, Common::Event &event) { fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_MINUS) { // Volume Down to pressing Left Mouse - //_km.y_vel = 0; - //_km.y_down_count = 0; + } else if (ev.key.keysym.sym == SDLK_MINUS) { + // Volume Down to pressing Left Mouse if (ev.key.type == SDL_KEYDOWN) { event.type = Common::EVENT_LBUTTONDOWN; } else { @@ -1249,7 +1249,7 @@ if test -n "$_host"; then ;; motoezx) echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" - DEFINES="$DEFINES -DUNIX -DMOTOEZX -DUSE_ARM_SMUSH_ASM" + DEFINES="$DEFINES -DUNIX -DMOTOEZX -DUSE_ARM_SMUSH_ASM -DUSE_ARM_GFX_ASM -DUSE_ARM_SCALER_ASM -DUSE_ARM_COSTUME_ASM" #not true for all ARM systems, but the interesting ones are all LE. Most (if not all) BE arm devices don't have a screen ASFLAGS="$ASFLAGS -mfpu=vfp" _endian=little @@ -1259,11 +1259,14 @@ if test -n "$_host"; then type_4_byte='int' add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1' add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1' + add_line_to_config_mk 'USE_ARM_GFX_ASM = 1' + add_line_to_config_mk 'USE_ARM_COSTUME_ASM = 1' + add_line_to_config_mk 'USE_ARM_SCALER_ASM = 1' _backend="linuxmoto" ;; motomagx) echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" - DEFINES="$DEFINES -DUNIX -DMOTOMAGX -DUSE_ARM_SMUSH_ASM" + DEFINES="$DEFINES -DUNIX -DMOTOMAGX -DUSE_ARM_SMUSH_ASM -DUSE_ARM_GFX_ASM -DUSE_ARM_SCALER_ASM -DUSE_ARM_COSTUME_ASM" #not true for all ARM systems, but the interesting ones are all LE. Most (if not all) BE arm devices don't have a screen ASFLAGS="$ASFLAGS -mfpu=vfp" _endian=little @@ -1273,6 +1276,9 @@ if test -n "$_host"; then type_4_byte='int' add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1' add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1' + add_line_to_config_mk 'USE_ARM_GFX_ASM = 1' + add_line_to_config_mk 'USE_ARM_COSTUME_ASM = 1' + add_line_to_config_mk 'USE_ARM_SCALER_ASM = 1' _backend="linuxmoto" ;; bfin*) diff --git a/dists/motoezx/scummvm-sm.png b/dists/motoezx/scummvm-sm.png Binary files differindex e6341243c4..46c5fca430 100644 --- a/dists/motoezx/scummvm-sm.png +++ b/dists/motoezx/scummvm-sm.png diff --git a/dists/motoezx/scummvm.png b/dists/motoezx/scummvm.png Binary files differindex 4a0c65b544..578414b8d8 100644 --- a/dists/motoezx/scummvm.png +++ b/dists/motoezx/scummvm.png diff --git a/dists/motomagx/mpkg/mySDL.cfg b/dists/motomagx/mpkg/mySDL.cfg new file mode 100644 index 0000000000..6774b68528 --- /dev/null +++ b/dists/motomagx/mpkg/mySDL.cfg @@ -0,0 +1,30 @@ +[SDL] +LeftSoftkey = F9 +RightSoftkey = F11 +Up = UP +Down = DOWN +Left = LEFT +Right = RIGHT +Center = RETURN +VolumeUp = PLUS +VolumeDown = MINUS +SideKey = SPACE +Call = TAB +Music = F10 +Red = ESCAPE +C = BACKSPACE +Camera = PAUSE +Slider = 0 +0 = 0 +1 = 1 +2 = 2 +3 = 3 +4 = 4 +5 = 5 +6 = 6 +7 = 7 +8 = 8 +9 = 9 +Asterisk = ASTERISK +Numeral = HASH + diff --git a/dists/motomagx/mpkg/run.sh b/dists/motomagx/mpkg/run.sh new file mode 100755 index 0000000000..d79031071d --- /dev/null +++ b/dists/motomagx/mpkg/run.sh @@ -0,0 +1,10 @@ +#!/bin/sh +DIR=`busybox dirname "$0"` +LIBDIR=/mmc/mmca1/.system/lib +export LD_PRELOAD=$LIBDIR/libz.so:$LIBDIR/libSDL-1.2.so.0:$LIBDIR/libvorbis.so.0:$LIBDIR/libvorbisfile.so.3:$LIBDIR/libogg.so.0:$LIBDIR/libmad.so.0:$LIBDIR/libutil.so.1:$LIBDIR/libtaskman.so +export SDL_QT_MODIFICATOR=1 +export HOME=/$DIR +cd $DIR +rm /mmc/mmca1/.system/mySDL.cfg +cp $DIR/mySDL.cfg /mmc/mmca1/.system/mySDL.cfg +./scummvm --path=$DIR --gfx-mode=1x > $DIR/scummvm.log diff --git a/dists/motomagx/mpkg/scummvm.desktop b/dists/motomagx/mpkg/scummvm.desktop new file mode 100644 index 0000000000..1e13cd1e56 --- /dev/null +++ b/dists/motomagx/mpkg/scummvm.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +BigIcon = scummvm_usr.png +Directory = scummvm +Exec = run.sh +AniIcon = scummvm_usr.png +Name = ScummVM diff --git a/dists/motomagx/mpkg/scummvm_usr.png b/dists/motomagx/mpkg/scummvm_usr.png Binary files differnew file mode 100644 index 0000000000..5c22d56afd --- /dev/null +++ b/dists/motomagx/mpkg/scummvm_usr.png diff --git a/dists/motomagx/pep/app/scummvm.sh b/dists/motomagx/pep/app/scummvm.sh new file mode 100755 index 0000000000..fdab4e716f --- /dev/null +++ b/dists/motomagx/pep/app/scummvm.sh @@ -0,0 +1,16 @@ +#!/bin/sh +GAMES=/mmc/mmca1/.Games +export DATA_DIR=$GAMES/.data/ScummVM +export LD_LIBRARY_PATH=$GAMES/.lib:$LD_LIBRARY_PATH +# uncomment next line if you wanna 270-degrees clockwise rotated screen +#export SDL_QT_INVERT_ROTATION=1 + +GAME_PATH=`basename $0` +GAME_PATH=`echo $0 | sed -e 's/'$GAME_PATH'//g'` +cd "$GAME_PATH" + +export HOME="$GAME_PATH" + +export LD_PREADLOAD=/usr/lib/libtaskman.so + +exec ./scummvm -g 1x diff --git a/dists/motomagx/pep/description.ini b/dists/motomagx/pep/description.ini new file mode 100644 index 0000000000..634214e5ac --- /dev/null +++ b/dists/motomagx/pep/description.ini @@ -0,0 +1,20 @@ +[Actions] +Silent=0 +InstallApp = 1 +AddAppToMenu = 1 + +[InstallApp] +Name = ScummVM +Exec = scummvm.sh +InstallPath = ../../mmc/mmca1/.Games/ScummVM/ +AppLockable = 1 +Author = ScummVM Team +Version = trunk +Daemon = 1 +BigIcon= scummvm_big_usr.png +AniIcon= scummvm_big_usr.png +Icon= scummvm_small_usr.png + +[AddAppToMenu] +ParentFolder= root + diff --git a/dists/motomagx/pep/scummvm_big_usr.png b/dists/motomagx/pep/scummvm_big_usr.png Binary files differnew file mode 100644 index 0000000000..3c517ea2a9 --- /dev/null +++ b/dists/motomagx/pep/scummvm_big_usr.png diff --git a/dists/motomagx/pep/scummvm_small_usr.png b/dists/motomagx/pep/scummvm_small_usr.png Binary files differnew file mode 100644 index 0000000000..0f87b4ae26 --- /dev/null +++ b/dists/motomagx/pep/scummvm_small_usr.png @@ -205,7 +205,7 @@ endif $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip wiidist/scummvm/ # -# Linuxmoto/motoezx specific +# Linuxmoto specific # # Special target to create a motoezx snapshot @@ -218,7 +218,26 @@ motoezx: $(EXECUTABLE) $(CP) $(srcdir)/dists/motoezx/* motoezx/scummvm/ tar -C motoezx -cvzf motoezx/ScummVM.pkg scummvm -.PHONY: deb bundle osxsnap win32dist wiidist motoezx install uninstall +# Special target to create a motomagx snapshot +motomagx-mpkg: $(EXECUTABLE) + $(MKDIR) motomagx/scummvm + $(CP) $(EXECUTABLE) motomagx/scummvm/ + $(STRIP) motomagx/scummvm/$(EXECUTABLE) + $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) motomagx/scummvm/ + $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip motomagx/scummvm/ + $(CP) $(srcdir)/dists/motomagx/mpkg/* motomagx/scummvm/ + tar -C motomagx -cvzf motomagx/ScummVM.mpkg scummvm + +motomagx-pep: $(EXECUTABLE) + $(MKDIR) motomagx/pep + $(CP) -r $(srcdir)/dists/motomagx/pep/* motomagx/pep + $(CP) $(EXECUTABLE) motomagx/pep/app + $(STRIP) motomagx/pep/app/$(EXECUTABLE) + $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) motomagx/pep/app + $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip motomagx/pep/app + tar -C motomagx/pep -czvf motomagx/ScummVM.pep app description.ini scummvm_big_usr.png scummvm_small_usr.png + +.PHONY: deb bundle osxsnap win32dist wiidist motoezx motomagx-mpkg motomagx-pep install uninstall # # ARM specific |