added controller input
This commit is contained in:
parent
640df2feb2
commit
674ee5059b
6 changed files with 83 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue