draws video upside down accepts keys (O crashes, and others have overloaded meaning) Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
27 lines
423 B
C++
27 lines
423 B
C++
#pragma once
|
|
|
|
#include "frontends/common2/speed.h"
|
|
|
|
#include <unordered_map>
|
|
|
|
class Game
|
|
{
|
|
public:
|
|
Game();
|
|
~Game();
|
|
|
|
bool loadGame(const char * path);
|
|
|
|
void executeOneFrame();
|
|
void processInputEvents();
|
|
|
|
void drawVideoBuffer();
|
|
|
|
private:
|
|
const std::unordered_map<unsigned, BYTE> myKeymap;
|
|
|
|
Speed mySpeed; // fixed speed
|
|
std::unordered_map<unsigned, bool> myKeystate;
|
|
|
|
void processKeyboardEvents();
|
|
};
|