![]() |
CHGame 0.4.1
Libraries for the CHGame handheld
|
Buttons and frame pacing: the Arduboy-flavoured front of the CHGame board. More...
#include <stdint.h>Go to the source code of this file.
Classes | |
| class | CHGame |
| The board's buttons and frame clock. There is one, chgame. More... | |
Macros | |
| #define | A_BUTTON (1u << 0) |
| The A button (PB1; PB11 on Rev1). | |
| #define | B_BUTTON (1u << 1) |
| The B button (PB6 on both boards). | |
| #define | UP_BUTTON (1u << 2) |
| D-pad up (PB4; PB0 on Rev1). | |
| #define | DOWN_BUTTON (1u << 3) |
| D-pad down (PC14; PB1 on Rev1). | |
| #define | LEFT_BUTTON (1u << 4) |
| D-pad left (PB3; PC3 on Rev1). | |
| #define | RIGHT_BUTTON (1u << 5) |
| D-pad right (PC15; PC0 on Rev1). | |
| #define | START_BUTTON (1u << 6) |
| START (PB8 on both boards). Held 3 s, it leaves for the menu (CHGame::startExits). | |
| #define | SELECT_BUTTON (1u << 7) |
| SELECT (PB7 on both boards). | |
Functions | |
| uint8_t | chgame_readButtons () |
| Read the buttons straight from the hardware. | |
| void | chgame_exitToMenu () |
| Leave the game for the bootloader's game menu. | |
Variables | |
| CHGame | chgame |
| The one instance: chgame.boot(), chgame.pressed() ... | |
Buttons and frame pacing: the Arduboy-flavoured front of the CHGame board.
Started from the helper shared by CHSpriteView/CHMultiSprite/CHStlView and reworked for the casino games, which all used this copy: