added controller input

This commit is contained in:
Lauchmelder 2021-10-30 21:01:27 +02:00
parent 640df2feb2
commit 674ee5059b
6 changed files with 83 additions and 5 deletions

View file

@ -2,12 +2,15 @@
#define _BUS_H_
#include "types.h"
#include "controller.h"
#include <SDL.h>
struct CPU;
struct PPU;
struct Cartridge;
// Main communication path for devices and memory in the NES
struct Bus
{
@ -17,6 +20,7 @@ struct Bus
struct CPU* cpu;
struct PPU* ppu;
struct Cartridge* cartridge;
struct Controller controller;
Byte masterClockTimer;