mirror of
https://github.com/tdinucci/6502-emulator.git
synced 2024-06-09 01:29:29 +00:00
27 lines
524 B
C
27 lines
524 B
C
|
#ifndef INC_6502_EMULATOR_KEYBOARD_H
|
||
|
#define INC_6502_EMULATOR_KEYBOARD_H
|
||
|
|
||
|
#include "memory.h"
|
||
|
#include <SDL2/SDL.h>
|
||
|
|
||
|
namespace emu_6502 {
|
||
|
class Keyboard {
|
||
|
private:
|
||
|
static const uint16_t LAST_KEY_PRESS_ADDR = 0xF001;
|
||
|
|
||
|
uint16_t count;
|
||
|
|
||
|
SDL_Event event;
|
||
|
Memory& memory;
|
||
|
|
||
|
public:
|
||
|
Keyboard(Memory& memory);
|
||
|
Keyboard(const Keyboard&) = delete;
|
||
|
Keyboard& operator=(const Keyboard&) = delete;
|
||
|
|
||
|
void read();
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //INC_6502_EMULATOR_KEYBOARD_H
|