|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>#include <stdint.h>#include <unistd.h>#include <kos/init.h>#include <dc/maple.h>#include <dc/maple/controller.h>#include <dc/maple/purupuru.h>#include <plx/font.h>Functions | |
| KOS_INIT_FLAGS (INIT_DEFAULT) | |
| void | print_rumble_fields (purupuru_effect_t fields) |
| void | wait_for_dev_attach (maple_device_t **dev_ptr, unsigned int func) |
| static void | word2hexbytes (uint32_t word, uint8_t *bytes) |
| int | main (int argc, char *argv[]) |
Variables | |
| plx_fcxt_t * | cxt |
| static const purupuru_effect_t | rumble_stop = {.motor = 1} |
| static size_t | catalog_index = 0 |
| static const baked_pattern_t | catalog [] |
| KOS_INIT_FLAGS | ( | INIT_DEFAULT | ) |
| int main | ( | int | argc, |
| char * | argv[] ) |
References cont_state_t::buttons, catalog, catalog_index, CONT_A, CONT_B, CONT_DPAD_DOWN, CONT_DPAD_LEFT, CONT_DPAD_RIGHT, CONT_DPAD_UP, CONT_START, CONT_X, cxt, maple_dev_status(), MAPLE_FUNC_CONTROLLER, MAPLE_FUNC_PURUPURU, NULL, print_rumble_fields(), printf, purupuru_rumble(), pvr_init_defaults(), pvr_list_begin(), PVR_LIST_OP_POLY, PVR_LIST_TR_POLY, pvr_scene_begin(), pvr_scene_finish(), pvr_set_bg_color(), pvr_wait_ready(), purupuru_effect_t::raw, rumble_stop, s, wait_for_dev_attach(), word2hexbytes(), vector_t::x, vector_t::y, and vector_t::z.
| void print_rumble_fields | ( | purupuru_effect_t | fields | ) |
| void wait_for_dev_attach | ( | maple_device_t ** | dev_ptr, |
| unsigned int | func ) |
References cxt, func(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, MAPLE_FUNC_PURUPURU, NULL, pvr_list_begin(), PVR_LIST_OP_POLY, PVR_LIST_TR_POLY, pvr_scene_begin(), pvr_scene_finish(), pvr_wait_ready(), and maple_device_t::valid.
Referenced by main().
|
static |
Referenced by main().
|
static |
Referenced by main().
| plx_fcxt_t* cxt |
Referenced by main(), and wait_for_dev_attach().
|
static |
Referenced by main().