#ifndef BEMANITOOLS_DDRIO_H #define BEMANITOOLS_DDRIO_H #include #include #include "bemanitools/glue.h" enum ddr_pad_bit { DDR_TEST = 0x04, DDR_COIN = 0x05, DDR_SERVICE = 0x06, DDR_P2_START = 0x08, DDR_P2_UP = 0x09, DDR_P2_DOWN = 0x0A, DDR_P2_LEFT = 0x0B, DDR_P2_RIGHT = 0x0C, DDR_P2_MENU_LEFT = 0x0E, DDR_P2_MENU_RIGHT = 0x0F, DDR_P2_MENU_UP = 0x02, DDR_P2_MENU_DOWN = 0x03, DDR_P1_START = 0x10, DDR_P1_UP = 0x11, DDR_P1_DOWN = 0x12, DDR_P1_LEFT = 0x13, DDR_P1_RIGHT = 0x14, DDR_P1_MENU_LEFT = 0x16, DDR_P1_MENU_RIGHT = 0x17, DDR_P1_MENU_UP = 0x00, DDR_P1_MENU_DOWN = 0x01, }; /* p3io controls menu btn and marquee lights extio controls neons and stage lights. */ enum p3io_light_bit { LIGHT_P1_MENU = 0x00, LIGHT_P2_MENU = 0x01, LIGHT_P2_LOWER_LAMP = 0x04, LIGHT_P2_UPPER_LAMP = 0x05, LIGHT_P1_LOWER_LAMP = 0x06, LIGHT_P1_UPPER_LAMP = 0x07 }; enum extio_light_bit { LIGHT_NEONS = 0x0E, LIGHT_P2_RIGHT = 0x13, LIGHT_P2_LEFT = 0x14, LIGHT_P2_DOWN = 0x15, LIGHT_P2_UP = 0x16, LIGHT_P1_RIGHT = 0x1B, LIGHT_P1_LEFT = 0x1C, LIGHT_P1_DOWN = 0x1D, LIGHT_P1_UP = 0x1E }; /* The first function that will be called on your DLL. You will be supplied with four function pointers that may be used to log messages to the game's log file. See comments in glue.h for further information. */ void ddr_io_set_loggers( log_formatter_t misc, log_formatter_t info, log_formatter_t warning, log_formatter_t fatal); /* Initialize your DDR IO emulation DLL. Thread management functions are provided to you; you must use these functions to create your own threads if you want to make use of the logging functions that are provided to eam_io_set_loggers(). You will also need to pass these thread management functions on to geninput if you intend to make use of that library. See glue.h and geninput.h for further details. */ bool ddr_io_init( thread_create_t thread_create, thread_join_t thread_join, thread_destroy_t thread_destroy); uint32_t ddr_io_read_pad(void); void ddr_io_set_lights_extio(uint32_t extio_lights); void ddr_io_set_lights_p3io(uint32_t p3io_lights); void ddr_io_fini(void); #endif