implemented keypad
This commit is contained in:
12
KeypadSDL.hpp
Normal file
12
KeypadSDL.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "Peripherals.hpp"
|
||||
|
||||
#include <SDL2/SDL_events.h>
|
||||
#include <array>
|
||||
|
||||
class KeypadSDL : public chocochip8::Keypad {
|
||||
public:
|
||||
bool isKeyPressed(int key) const override;
|
||||
void processEvent(SDL_Event &e);
|
||||
private:
|
||||
std::array<bool, chocochip8::KEY_COUNT> mvKeyDown;
|
||||
};
|
||||
Reference in New Issue
Block a user