diff options
author | notaz | 2011-09-04 20:02:19 +0300 |
---|---|---|
committer | notaz | 2011-09-06 00:18:01 +0300 |
commit | eb3668fc5dab138073cd4844208ac05b94086a4a (patch) | |
tree | 78f8f4b762c262221114b5da4f4b493245c6ced6 /gp2x | |
parent | 43c24b301dc8c0c5952e1d22bad865f4304d01f8 (diff) | |
download | picogpsp-eb3668fc5dab138073cd4844208ac05b94086a4a.tar.gz picogpsp-eb3668fc5dab138073cd4844208ac05b94086a4a.tar.bz2 picogpsp-eb3668fc5dab138073cd4844208ac05b94086a4a.zip |
initial pandora port, with hardware scaling and stuff
Diffstat (limited to 'gp2x')
-rw-r--r-- | gp2x/gp2x.c | 4 | ||||
-rw-r--r-- | gp2x/gp2x.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gp2x/gp2x.c b/gp2x/gp2x.c index 8bad610..ad3c215 100644 --- a/gp2x/gp2x.c +++ b/gp2x/gp2x.c @@ -39,7 +39,7 @@ static u32 gp2x_audio_volume = 74/2; static volatile u16 *gpsp_gp2x_memregs; static volatile u32 *gpsp_gp2x_memregl; -u32 button_plat_mask_to_config[] = +u32 button_plat_mask_to_config[PLAT_BUTTON_COUNT] = { GP2X_UP, GP2X_LEFT, @@ -59,7 +59,7 @@ u32 button_plat_mask_to_config[] = GP2X_VOL_MIDDLE }; -u32 gamepad_config_map[16] = +u32 gamepad_config_map[PLAT_BUTTON_COUNT] = { BUTTON_ID_UP, // Up BUTTON_ID_LEFT, // Left diff --git a/gp2x/gp2x.h b/gp2x/gp2x.h index 9218704..97b8d3c 100644 --- a/gp2x/gp2x.h +++ b/gp2x/gp2x.h @@ -33,7 +33,8 @@ void gpsp_plat_quit(void); u32 gpsp_plat_joystick_read(void); u32 gpsp_plat_buttons_to_cursor(u32 buttons); -extern u32 button_plat_mask_to_config[]; +#define PLAT_BUTTON_COUNT 16 +extern u32 button_plat_mask_to_config[PLAT_BUTTON_COUNT]; void gp2x_sound_volume(u32 volume_up); void gp2x_quit(); |