Czech Elves : Эльфы : Форум |
Страница 32 из 40: « 1 ... 28 29 30 31 [32] 33 34 35 36 ... 40 » |
nvoid: |
24.04.08, 04:41 |
Иешуа http://slil.ru/25724162 |
IronMaster: |
24.04.08, 11:28 |
rasmak can you say to author. 1. There is a func in library GetDir, in returns a path. This func is model dependent. You need to use it for multi-platform support. 2. Instead of constant values of key-codes you need to use KEY_DIGITAL_0 (and for example offset to get digital key (KEY_DIGITAL_0+4 = key 4, KEY_DIGITAL_0+10 = key star)), KEY_LEFT_SOFT, KEY_RIGHT_SOFT and other. The full list you can find in /include/DYN_ext.h |
BloodyMessage: |
24.04.08, 11:48 |
Блин, а у меня рубутиться :( все в телефоне, в ZBin, в либе все функции есть! А все равно ребитит :( В чем проблема кто нить знает? |
hippydave: |
24.04.08, 12:09 |
IronMaster пишет: 2. Instead of constant values of key-codes you need to use KEY_DIGITAL_0 (and for example offset to get digital key (KEY_DIGITAL_0+4 = key 4, KEY_DIGITAL_0+10 = key star)), KEY_LEFT_SOFT, KEY_RIGHT_SOFT and other. The full list you can find in /include/DYN_ext.h i looked at the elf in IDA - it does not use KEY_DIGITAL_0, so numbers are wrong on db2020 (i found i could fix that with a hex editor), but it does use KEY_RIGHT_SOFT and KEY_ENTER, yet those two keys still don't work |
jamesbond22: |
24.04.08, 13:02 |
Where must be put files *.sna and spectrum.rom in phone W850? [ Редактировано jamesbond22 в 24.4.08 11:04 ] |
hippydave: |
24.04.08, 22:10 |
the author of the spectrum elf has made the source available, so i've tweaked it slightly. i still can't figure out why KEY_ENTER and KEY_RIGHT_SOFT aren't responding on k800 (and other db2020?), but i've made it so that as well as those keys, you can also use KEY_GAME_A (the top left button above the screen on k800) or KEY_VOL_UP (volume up) to enter the menu, and KEY_GAME_B (top right button) or KEY_VOL_DOWN (volume down, obviously) to select menu items and as "fire" in the game. i've tweaked it so that the game display is better centred vertically on the screen, rather than being pushed toward the bottom and losing part under the menu bar thing. i based this on the 240x320 screen, i don't know if this adjustment will work properly on phones with smaller displays. try it and see i guess. now you can get in the menus, you can configure the display (size and rotation) and the joystick (type and rotation). on k800 i like the look of it with the screen rotated 90 degrees, so you can use the joystick with your right hand and the "game a & b" buttons with your left. sadly it seems that rotating the screen slows it down a bit more. if you rotate the screen, you'll probably want to rotate the joystick to match. you'll find different games need different joystick type settings (eg, pacman uses "cursor", dizzy uses "kempston"). i got too lazy to properly fix the elf to use the right path on different phones, so i've made two versions, one that uses /usb/other/... and one that uses /tpa/user/other/... - i haven't tested the latter. edit: added my source. the original source is here oh, i'd also like to suggest that the author looks into using the Drz80 core (z80 emulation in arm assembly) for more speed :) (i can't speak czech so if someone could pass the suggestion on that would be cool) [ Редактировано hippydave в 24.4.08 22:26 ] Прикрепленный к сообщению файл: Z80_4ever_hippy_usb.zip (23.05 kb; 41 hits) Скачать файл Z80_4ever_hippy_tpa.zip (23.05 kb; 32 hits) Скачать файл Z80_4ever_hippy_src.zip (37.77 kb; 31 hits) Скачать файл |
sustmi: |
25.04.08, 01:28 |
New version (1.01) is available here. changes: * better file loading (more compatibility) * more compatible keyboard handling * configuration by ini file * instructions on startup to hippydave: 1.) Can you send me (contact on page linked above) some screens how does it look on bigger screen (than my k750's 176x220), so I can uncover the alignment problem. 2.) Where I can get the sourcecode of Drz80 you've mentioned. [ Редактировано sustmi в 24.4.08 23:29 ] |
hippydave: |
25.04.08, 03:09 |
sustmi hi - sorry, i didn't manage to register on se-tuning.cz 240x320 screens: in my modified version i changed the following line in render.c: Код: renderSettings.dest_y = Display_GetHeight(0) - 70; and it looks like this: version 1.01 is good - the file path detection works, and the number keys are mapped correctly. but the KEY_ENTER and KEY_RIGHT_SOFT still aren't working, i can't figure out why this is. until you manage to fix that, maybe you could put settings in the .ini to define which keys to use for menu and enter/fire? the DrZ80 source is available here - it's in a folder in the .zip file for the DrMD source. [ Редактировано hippydave в 25.4.08 03:13 ] |
lisaus: |
25.04.08, 09:56 |
подскажите пожалуйста какое именно имя тут надо прописявать (это путь к какому файлу)? Код: ; Set name of default rom file ; The whole path to this file will be: MAIN_FOLDER_PATH/MAIN_FOLDER_NAME/ROM_NAME ; If not set, application will use spectrum.rom as default ;[ROM_NAME]: spectrum.rom |
Joker XT: |
25.04.08, 10:12 |
lisaus Если у тебя файл называется spectrum.rom, то ничего не трогай |
Страница 32 из 40: « 1 ... 28 29 30 31 [32] 33 34 35 36 ... 40 » |
URL этой темы: https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=2600&start=310 © 2005-2018 supertrubka.org |