6 /* Macros for the joypad buttons */
18 uint16_t dpad0_presses;
19 uint16_t frame_buffer[2048];
21 int current_piece = 0x270;
27 int tetromino_shapes[8];
30 int last_spawned_piece_index;
34 int auto_repeat_countdown;
37 static inline dpad0_pressed(uint16_t key)
39 return !(dpad0 & (1 << key));
42 int32_t rng_next(int32_t s);
44 static inline int rand(void)
46 int32_t *s = (int32_t*)rng_state;
48 return ((*s) >> 24) & 0xff;
52 #endif /* MEGADRIVE_H_ */