Ticket #9073: scummvm-linuxmoto-update-26082009.patch
File scummvm-linuxmoto-update-26082009.patch, 9.0 KB (added by , 15 years ago) |
---|
-
trunk/configure
1244 1244 ;; 1245 1245 motoezx) 1246 1246 echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" 1247 DEFINES="$DEFINES -DUNIX -DMOTOEZX -DUSE_ARM_SMUSH_ASM "1247 DEFINES="$DEFINES -DUNIX -DMOTOEZX -DUSE_ARM_SMUSH_ASM -DUSE_ARM_GFX_ASM -DUSE_ARM_SCALER_ASM -DUSE_ARM_COSTUME_ASM" 1248 1248 #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 1249 1249 ASFLAGS="$ASFLAGS -mfpu=vfp" 1250 1250 _endian=little … … 1254 1254 type_4_byte='int' 1255 1255 add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1' 1256 1256 add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1' 1257 add_line_to_config_mk 'USE_ARM_GFX_ASM = 1' 1258 add_line_to_config_mk 'USE_ARM_COSTUME_ASM = 1' 1259 add_line_to_config_mk 'USE_ARM_SCALER_ASM = 1' 1257 1260 _backend="linuxmoto" 1258 1261 ;; 1259 1262 motomagx) 1260 1263 echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" 1261 DEFINES="$DEFINES -DUNIX -DMOTOMAGX -DUSE_ARM_SMUSH_ASM "1264 DEFINES="$DEFINES -DUNIX -DMOTOMAGX -DUSE_ARM_SMUSH_ASM -DUSE_ARM_GFX_ASM -DUSE_ARM_SCALER_ASM -DUSE_ARM_COSTUME_ASM" 1262 1265 #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 1263 1266 ASFLAGS="$ASFLAGS -mfpu=vfp" 1264 1267 _endian=little … … 1268 1271 type_4_byte='int' 1269 1272 add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1' 1270 1273 add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1' 1274 add_line_to_config_mk 'USE_ARM_GFX_ASM = 1' 1275 add_line_to_config_mk 'USE_ARM_COSTUME_ASM = 1' 1276 add_line_to_config_mk 'USE_ARM_SCALER_ASM = 1' 1271 1277 _backend="linuxmoto" 1272 1278 ;; 1273 1279 bfin*) -
trunk/backends/platform/linuxmoto/linuxmoto-events.cpp
Cannot display: file marked as a binary type. svn:mime-type = image/png Cannot display: file marked as a binary type. svn:mime-type = image/png
60 60 else if (ev.key.keysym.sym == SDLK_SPACE) { 61 61 ev.key.keysym.sym = SDLK_F5; 62 62 } 63 // Camera to VirtualKeyboard63 // VirtualKeyboard - Camera key 64 64 else if (ev.key.keysym.sym == SDLK_PAUSE) { 65 65 ev.key.keysym.sym = SDLK_F7; 66 66 } 67 // mod+fire to enter67 // Enter - mod+fire key 68 68 else if (ev.key.keysym.sym == SDLK_b) { 69 69 ev.key.keysym.sym = SDLK_RETURN; 70 70 } 71 // '3' - mod+up key 72 else if (ev.key.keysym.sym == SDLK_j) { 73 ev.key.keysym.sym = SDLK_3; 74 } 75 // '6' - mod+up key 76 else if (ev.key.keysym.sym == SDLK_i) { 77 ev.key.keysym.sym = SDLK_6; 78 } 79 // 'y' - mod+right key 80 else if (ev.key.keysym.sym == SDLK_g) { 81 ev.key.keysym.sym = SDLK_y; 82 } 83 // 'n' - mod+right key 84 else if (ev.key.keysym.sym == SDLK_h) { 85 ev.key.keysym.sym = SDLK_n; 86 } 87 // mod+vol'+' -> volume'+' 88 else if (ev.key.keysym.sym == SDLK_c) { 89 ev.key.keysym.sym = SDLK_RIGHTBRACKET; 90 } 91 // mod+vol'-' -> volume'-' 92 else if (ev.key.keysym.sym == SDLK_d) { 93 ev.key.keysym.sym = SDLK_LEFTBRACKET; 94 } 71 95 #endif 72 96 // Motorola Z6/V8 remapkey by Ant-On 73 97 #ifdef MOTOMAGX … … 75 99 if (ev.key.keysym.sym == SDLK_ESCAPE) { 76 100 event.type = Common::EVENT_QUIT; 77 101 return true; 78 } else79 // F5 Game Menu - Call key102 } 103 // F5 Game Menu - Slide Select 80 104 if (ev.key.keysym.sym == SDLK_SPACE) { 81 105 ev.key.keysym.sym = SDLK_F5; 82 106 } 83 // 'y' - Mod+Right key 107 // Escape - Dial key 108 else if (ev.key.keysym.sym == SDLK_TAB) { 109 ev.key.keysym.sym = SDLK_ESCAPE; 110 } 111 // Space - Virtual keyboard 112 else if (ev.key.keysym.sym == SDLK_PAUSE) { 113 ev.key.keysym.sym = SDLK_F7; 114 } 84 115 // 'y' - Left soft 85 116 else if (ev.key.keysym.sym == SDLK_F9) { 86 117 ev.key.keysym.sym = SDLK_y; 87 118 } 88 // 'n' - Mod+Left key 89 // 'n' - rigth soft 119 // 'n' - Rigth soft 90 120 else if (ev.key.keysym.sym == SDLK_F11) { 91 121 ev.key.keysym.sym = SDLK_n; 92 122 } 123 // # -> volume'+' 124 else if (ev.key.keysym.sym == SDLK_HASH) { 125 ev.key.keysym.sym = SDLK_RIGHTBRACKET; 126 } 127 // * -> volume'-' 128 else if (ev.key.keysym.sym == SDLK_WORLD_55) { 129 ev.key.keysym.sym = SDLK_LEFTBRACKET; 130 } 93 131 #endif 94 132 95 133 // Joystick to Mouse … … 144 182 fillMouseEvent(event, _km.x, _km.y); 145 183 146 184 return true; 147 } else if (ev.key.keysym.sym == SDLK_RETURN) { // Joystick center to pressing Left Mouse 148 // _km.y_vel = 0; 149 // _km.y_down_count = 0; 185 } else if (ev.key.keysym.sym == SDLK_RETURN) { 186 // Joystick center to pressing Left Mouse 150 187 if (ev.key.type == SDL_KEYDOWN) { 151 188 event.type = Common::EVENT_LBUTTONDOWN; 152 189 } else { … … 156 193 fillMouseEvent(event, _km.x, _km.y); 157 194 158 195 return true; 159 } else if (ev.key.keysym.sym == SDLK_PLUS) { // Volume Up to pressing Right Mouse 160 // _km.y_vel = 0; 161 // _km.y_down_count = 0; 196 } else if (ev.key.keysym.sym == SDLK_PLUS) { 197 // Volume Up to pressing Right Mouse 162 198 if (ev.key.type == SDL_KEYDOWN ) { 163 199 event.type = Common::EVENT_RBUTTONDOWN; 164 200 } else { … … 167 203 fillMouseEvent(event, _km.x, _km.y); 168 204 169 205 return true; 170 } else if (ev.key.keysym.sym == SDLK_MINUS) { // Volume Down to pressing Left Mouse 171 //_km.y_vel = 0; 172 //_km.y_down_count = 0; 206 } else if (ev.key.keysym.sym == SDLK_MINUS) { 207 // Volume Down to pressing Left Mouse 173 208 if (ev.key.type == SDL_KEYDOWN) { 174 209 event.type = Common::EVENT_LBUTTONDOWN; 175 210 } else { -
trunk/backends/platform/linuxmoto/hardwarekeys.cpp
48 48 { "CALL", KEYCODE_SPACE, ASCII_SPACE, "Call", kActionKeyType, false }, 49 49 { "PLUS", KEYCODE_PLUS, '+', "+", kActionKeyType, false }, 50 50 { "MINUS", KEYCODE_MINUS, '-', "-", kActionKeyType, false }, 51 51 #ifdef MOTOMAGX 52 {"BACKSPACE", KEYCODE_BACKSPACE, ASCII_BACKSPACE, "Backspace", kActionKeyType, false}, 53 {"TAB", KEYCODE_TAB, ASCII_TAB, "Tab", kActionKeyType, false}, 54 {"HASH", KEYCODE_HASH, '#', "#", kActionKeyType, false}, 55 {"ASTERISK", KEYCODE_ASTERISK, '*', "*", kActionKeyType, false}, 56 {"LEFTSOFT", KEYCODE_F9, ASCII_F9, "LeftSoft", kActionKeyType, false}, 57 {"RIGHTSOFT", KEYCODE_F11, ASCII_F11, "RightSoft", kActionKeyType, false}, 58 {"0", KEYCODE_0, '0', "0", kActionKeyType, false}, 59 {"1", KEYCODE_1, '1', "1", kActionKeyType, false}, 60 {"2", KEYCODE_2, '2', "2", kActionKeyType, false}, 61 {"3", KEYCODE_3, '3', "3", kActionKeyType, false}, 62 {"4", KEYCODE_4, '4', "4", kActionKeyType, false}, 63 {"5", KEYCODE_5, '5', "5", kActionKeyType, false}, 64 {"6", KEYCODE_6, '6', "6", kActionKeyType, false}, 65 {"7", KEYCODE_7, '7', "7", kActionKeyType, false}, 66 {"8", KEYCODE_8, '8', "8", kActionKeyType, false}, 67 {"9", KEYCODE_9, '9', "9", kActionKeyType, false}, 68 #endif 69 #ifdef MOTOEZX 52 70 { "a", KEYCODE_a, 'a', "a", kActionKeyType, true }, 53 71 { "b", KEYCODE_b, 'b', "b", kActionKeyType, true }, 54 72 { "c", KEYCODE_c, 'c', "c", kActionKeyType, true }, … … 59 77 { "h", KEYCODE_h, 'h', "h", kActionKeyType, true }, 60 78 { "i", KEYCODE_i, 'i', "i", kActionKeyType, true }, 61 79 { "j", KEYCODE_j, 'j', "j", kActionKeyType, true }, 62 80 #endif 63 81 // Numeric keypad 64 82 65 83 // Arrows + Home/End pad -
trunk/ports.mk
205 205 $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip wiidist/scummvm/ 206 206 207 207 # 208 # Linuxmoto /motoezxspecific208 # Linuxmoto specific 209 209 # 210 210 211 211 # Special target to create a motoezx snapshot … … 218 218 $(CP) $(srcdir)/dists/motoezx/* motoezx/scummvm/ 219 219 tar -C motoezx -cvzf motoezx/ScummVM.pkg scummvm 220 220 221 .PHONY: deb bundle osxsnap win32dist wiidist motoezx install uninstall 221 # Special target to create a motomagx snapshot 222 motomagx-mpkg: $(EXECUTABLE) 223 $(MKDIR) motomagx/scummvm 224 $(CP) $(EXECUTABLE) motomagx/scummvm/ 225 $(STRIP) motomagx/scummvm/$(EXECUTABLE) 226 $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) motomagx/scummvm/ 227 $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip motomagx/scummvm/ 228 $(CP) $(srcdir)/dists/motomagx/mpkg/* motomagx/scummvm/ 229 tar -C motomagx -cvzf motomagx/ScummVM.mpkg scummvm 222 230 231 motomagx-pep: $(EXECUTABLE) 232 $(MKDIR) motomagx/pep 233 $(CP) -r $(srcdir)/dists/motomagx/pep/* motomagx/pep 234 $(CP) $(EXECUTABLE) motomagx/pep/app 235 $(STRIP) motomagx/pep/app/$(EXECUTABLE) 236 $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) motomagx/pep/app 237 $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip motomagx/pep/app 238 tar -C motomagx/pep -czvf motomagx/ScummVM.pep app description.ini scummvm_big_usr.png scummvm_small_usr.png 239 240 .PHONY: deb bundle osxsnap win32dist wiidist motoezx motomagx-mpkg motomagx-pep install uninstall 241 223 242 # 224 243 # ARM specific 225 244 #