XWorld: cleanup
- Comment keymaps.h - Tie XWORLD_DEBUG into ROCKBOX_HAS_LOGF to ease debugging - Fix up the manual a little bit Change-Id: I12cfb58001199036cd67dbaa27f164e6790a199d Reviewed-on: http://gerrit.rockbox.org/1084 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
This commit is contained in:
parent
e7c282fed7
commit
193c5df75d
5 changed files with 38 additions and 22 deletions
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
#ifndef _XWORLD_KEYMAPS_H
|
#ifndef _XWORLD_KEYMAPS_H
|
||||||
#define _XWORLD_KEYMAPS_H
|
#define _XWORLD_KEYMAPS_H
|
||||||
#endif
|
|
||||||
|
|
||||||
|
/* Handle the "nice" targets that have directional buttons with normal names */
|
||||||
#if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \
|
#if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \
|
||||||
(CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \
|
(CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \
|
||||||
(CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \
|
(CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \
|
||||||
|
@ -124,8 +124,11 @@
|
||||||
(CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
(CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||||
#define BTN_FIRE BUTTON_VOL_UP
|
#define BTN_FIRE BUTTON_VOL_UP
|
||||||
#define BTN_PAUSE BUTTON_MENU
|
#define BTN_PAUSE BUTTON_MENU
|
||||||
|
/* #if CONFIG_KEYPAD == PHILIPS_HDD1630_PAD */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* ... and now for the bad ones that don't have
|
||||||
|
* standard names for the directional buttons */
|
||||||
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
|
#elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD)
|
||||||
#define BTN_UP BUTTON_OK
|
#define BTN_UP BUTTON_OK
|
||||||
#define BTN_DOWN BUTTON_CANCEL
|
#define BTN_DOWN BUTTON_CANCEL
|
||||||
|
@ -185,12 +188,19 @@
|
||||||
#define BTN_LEFT BUTTON_LEFT
|
#define BTN_LEFT BUTTON_LEFT
|
||||||
#define BTN_RIGHT BUTTON_RIGHT
|
#define BTN_RIGHT BUTTON_RIGHT
|
||||||
|
|
||||||
#if (CONFIG_KEYPAD == MROBE500_PAD) || (CONFIG_KEYPAD == ONDAVX777_PAD)
|
#if (CONFIG_KEYPAD == MROBE500_PAD) || \
|
||||||
|
(CONFIG_KEYPAD == ONDAVX777_PAD)
|
||||||
#define BTN_PAUSE BUTTON_BOTTOMLEFT
|
#define BTN_PAUSE BUTTON_BOTTOMLEFT
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == !COWON_D2_PAD || !DX50_PAD || !ONDAVX777_PAD
|
#elif (CONFIG_KEYPAD == !COWON_D2_PAD) || \
|
||||||
|
(CONFIG_KEYPAD != !DX50_PAD) || \
|
||||||
|
(CONFIG_KEYMAP != ONDAVX777_PAD)
|
||||||
#define BTN_FIRE BUTTON_BOTTOMLEFT
|
#define BTN_FIRE BUTTON_BOTTOMLEFT
|
||||||
#define BTN_PAUSE BUTTON_TOPLEFT
|
#define BTN_PAUSE BUTTON_TOPLEFT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* HAVE_TOUCHSCREEN */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* _XWORLD_KEYMAPS_H */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -787,13 +787,13 @@ void sys_sleep(struct System* sys, uint32_t duration)
|
||||||
{
|
{
|
||||||
(void) sys;
|
(void) sys;
|
||||||
/* duration is in ms */
|
/* duration is in ms */
|
||||||
rb->sleep(duration / 10);
|
rb->sleep(duration / (1000/HZ));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t sys_getTimeStamp(struct System* sys)
|
uint32_t sys_getTimeStamp(struct System* sys)
|
||||||
{
|
{
|
||||||
(void) sys;
|
(void) sys;
|
||||||
return (uint32_t) (*rb->current_tick) * 10;
|
return (uint32_t) (*rb->current_tick * (1000/HZ));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int16_t rb_soundbuf [MAX_SOUNDBUF_SIZE] IBSS_ATTR;
|
static int16_t rb_soundbuf [MAX_SOUNDBUF_SIZE] IBSS_ATTR;
|
||||||
|
|
|
@ -25,12 +25,16 @@
|
||||||
|
|
||||||
#include "intern.h"
|
#include "intern.h"
|
||||||
|
|
||||||
/* #define XWORLD_DEBUG */
|
#ifdef ROCKBOX_HAS_LOGF
|
||||||
|
#define XWORLD_DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XWORLD_DEBUG
|
#ifdef XWORLD_DEBUG
|
||||||
#define debug(m,f,...) debug_real(m, f, ##__VA_ARGS__)
|
#define debug(m,f,...) debug_real(m, f, ##__VA_ARGS__)
|
||||||
|
#define XWORLD_DEBUGMASK ~0
|
||||||
#else
|
#else
|
||||||
#define debug(m,f,...)
|
#define debug(m,f,...)
|
||||||
|
#define XWORLD_DEBUGMASK 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -36,7 +36,7 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
/* no trailing slashes */
|
/* no trailing slashes */
|
||||||
const char *dataPath = "/.rockbox/xworld";
|
const char *dataPath = "/.rockbox/xworld";
|
||||||
const char *savePath = "/.rockbox/xworld";
|
const char *savePath = "/.rockbox/xworld";
|
||||||
g_debugMask = 0;
|
g_debugMask = XWORLD_DEBUGMASK;
|
||||||
|
|
||||||
engine_create(&e, &sys, dataPath, savePath);
|
engine_create(&e, &sys, dataPath, savePath);
|
||||||
engine_init(&e);
|
engine_init(&e);
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
In this cinematic, award winning platform game by Éric Chahi, you must evade capture
|
In this cinematic, award winning platform game by Éric Chahi, you must evade capture
|
||||||
and do your best to escape an alien planet. After an experiment goes awry the hero
|
and do your best to escape an alien planet. After an experiment goes awry the hero
|
||||||
must team up with an unlikely ally, when they both become fugitives on another world.
|
must team up with an unlikely ally, when they both become fugitives on another world.
|
||||||
XWorld requires the data files, bank* and memlist.bin, from the original "Another World"
|
XWorld requires the data files, \fname{BANK*} and \fname{MEMLIST.BIN}, from the original ``Another World''
|
||||||
PC game to be copied into the .rockbox/xworld/ directory before the game can be played.
|
PC game to be copied into the \fname{.rockbox/xworld/} directory before the game can be played.
|
||||||
|
|
||||||
|
Additionally, ``extra'' data files that modify the in-game strings and font can be placed in the \fname{.rockbox/xworld/} directory with the names \fname{xworld.strings} and \fname{xworld.font}, respectively.
|
||||||
|
|
||||||
\begin{btnmap}
|
\begin{btnmap}
|
||||||
%
|
%
|
||||||
|
@ -37,9 +39,9 @@ PC game to be copied into the .rockbox/xworld/ directory before the game can be
|
||||||
,GIGABEAT_S_PAD,MROBE100_PAD,PBELL_VIBE500_PAD,SANSA_FUZEPLUS_PAD%
|
,GIGABEAT_S_PAD,MROBE100_PAD,PBELL_VIBE500_PAD,SANSA_FUZEPLUS_PAD%
|
||||||
,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD,IPOD_4G_PAD,IPOD_3G_PAD,IPOD_1G2G_PAD%
|
,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD,IPOD_4G_PAD,IPOD_3G_PAD,IPOD_1G2G_PAD%
|
||||||
,IRIVER_H10_PAD}
|
,IRIVER_H10_PAD}
|
||||||
{\ButtonLeft / \ButtonRight}
|
{\ButtonLeft{} / \ButtonRight}
|
||||||
\opt{HAVE_TOUCHSCREEN}{\TouchMidLeft / \TouchMidRight}
|
\opt{HAVE_TOUCHSCREEN}{\TouchMidLeft{} / \TouchMidRight}
|
||||||
\opt{PBELL_VIBE500_PAD}{\ButtonMenu / \ButtonPlay}
|
\opt{PBELL_VIBE500_PAD}{\ButtonMenu{} / \ButtonPlay}
|
||||||
\opt{HAVEREMOTEKEYMAP}{& }
|
\opt{HAVEREMOTEKEYMAP}{& }
|
||||||
& Move Left and Right\\
|
& Move Left and Right\\
|
||||||
%
|
%
|
||||||
|
@ -75,7 +77,7 @@ PC game to be copied into the .rockbox/xworld/ directory before the game can be
|
||||||
\opt{HM801_PAD}{\ButtonNext}
|
\opt{HM801_PAD}{\ButtonNext}
|
||||||
\opt{PBELL_VIBE500_PAD}{\ButtonRec}
|
\opt{PBELL_VIBE500_PAD}{\ButtonRec}
|
||||||
\opt{IRIVER_H10_PAD}{\ButtonPlay}
|
\opt{IRIVER_H10_PAD}{\ButtonPlay}
|
||||||
\opt{IPOD_4G_PAD,IPOD_3G_PAD,IPOD_1G2G_PAD}{\ButtonMenu / \ButtonSelect}
|
\opt{IPOD_4G_PAD,IPOD_3G_PAD,IPOD_1G2G_PAD}{\ButtonMenu{} / \ButtonSelect}
|
||||||
\opt{HAVEREMOTEKEYMAP}{& }
|
\opt{HAVEREMOTEKEYMAP}{& }
|
||||||
& Menu\\
|
& Menu\\
|
||||||
\end{btnmap}
|
\end{btnmap}
|
||||||
|
|
Loading…
Reference in a new issue