Aplicando callbacks para las acciones del ui
This commit is contained in:
@@ -21,9 +21,17 @@ class Machine
|
||||
double accumulator;
|
||||
double target_cycle_time;
|
||||
|
||||
std::string rom;
|
||||
bool running;
|
||||
|
||||
void execute_interpreter();
|
||||
void on_rom_load(const std::string& path) const;
|
||||
void on_rom_load(const std::string& path);
|
||||
void on_reset() const;
|
||||
void on_stop();
|
||||
void on_resume();
|
||||
void on_step(int steps);
|
||||
void on_speed_change(int ips);
|
||||
void on_reload();
|
||||
|
||||
public:
|
||||
void register_callbacks();
|
||||
@@ -32,4 +40,4 @@ public:
|
||||
bool on_event(const SDL_Event* event) const;
|
||||
};
|
||||
|
||||
#endif //MACHINE_H
|
||||
#endif //MACHINE_H
|
||||
|
||||
Reference in New Issue
Block a user