https://bitbucket.org/coutts/5dplus
Tip revision: 0d7cbec6dea8a278a468d89a5bf23bf5670a3172 authored by Coutts on 21 June 2012, 12:32:49 UTC
Fix font sizes (thanks Alex!) and fixed problem of bmp_buffer moving around, using a pointer to the bmp_vram now instead of the raw address. Also testing ML menu with skeleton shoot menu, not working yet though.
Fix font sizes (thanks Alex!) and fixed problem of bmp_buffer moving around, using a pointer to the bmp_vram now instead of the raw address. Also testing ML menu with skeleton shoot menu, not working yet though.
Tip revision: 0d7cbec
gui.h
/*##################################################################################
# #
# _____ _ _ #
# | ___| | | | | #
# |___ \ __| |_ __ | |_ _ ___ #
# \ \/ _` | '_ \| | | | / __| #
# /\__/ / (_| | |_) | | |_| \__ \ #
# \____/ \__,_| .__/|_|\__,_|___/ #
# | | #
# |_| #
# #
#################################################################################*/
/** Internal structure used by the gui code */
struct event
{
int type;
int param;
void * obj;
int arg; // unknown meaning
};
extern void hijack_gui_main_task( void );
extern void gui_stop_menu( void );
#define EVENT event->param
/******************************************************************************
* event->param values as received by gui_main_task
******************************************************************************/
//~ big wheel generates same events as small wheel, so no need to re-declare them.
#define BGMT_WHEEL_LEFT 0x0
#define BGMT_WHEEL_RIGHT 0x1
#define BGMT_SET 0x2
#define BGMT_MENU 0x3
#define BGMT_INFO 0x4
#define BGMT_JUMP 0x5
#define BGMT_PLAY 0x6
#define BGMT_TRASH 0x7
#define BGMT_PRESS_ZOOM_IN 0x8
#define BGMT_UNPRESS_ZOOM_IN 0x9
#define BGMT_PRESS_ZOOM_OUT 0xa
#define BGMT_UNPRESS_ZOOM_OUT 0xb
#define BGMT_PRESS_DIRECT_PRINT 0xc
#define BGMT_UNPRESS_DIRECT_PRINT 0xd
//~ happens anytime joy stick is unpressed from any position
#define BGMT_JOY_ALL_UNPRESS 0xe
#define BGMT_JOY_UP 0xf
#define BGMT_JOY_UP_RIGHT 0x10
#define BGMT_JOY_UP_LEFT 0x11
#define BGMT_JOY_RIGHT 0x12
#define BGMT_JOY_LEFT 0x13
#define BGMT_JOY_DOWN_RIGHT 0x14
#define BGMT_JOY_DOWN_LEFT 0x15
#define BGMT_JOY_DOWN 0x16
/* find:
BGMT_PRESS_HALFSHUTTER
BGMT_UNPRESS_HALFSHUTTER
*/