decoupled timers from interpreter tick rate
This commit is contained in:
@@ -35,4 +35,11 @@ namespace chocochip8 {
|
||||
virtual bool isKeyPressed(Key key) = 0;
|
||||
};
|
||||
|
||||
class CountdownTimer {
|
||||
public:
|
||||
virtual ~CountdownTimer() = default;
|
||||
virtual void set(unsigned value) = 0;
|
||||
virtual unsigned get() const = 0;
|
||||
};
|
||||
|
||||
}; // namespace chocochip8
|
||||
|
||||
Reference in New Issue
Block a user