3 #include "core/misc.hpp"
4 #include "core/movie.hpp"
5 #include "core/rom.hpp"
6 #include "interface/romtype.hpp"
14 movie_logic::movie_logic() throw()
18 movie
& movie_logic::get_movie() throw()
23 void movie_logic::new_frame_starting(bool dont_poll
) throw(std::bad_alloc
, std::runtime_error
)
26 controller_frame c
= update_controls(false);
27 if(!mov
.readonly_mode()) {
35 short movie_logic::input_poll(unsigned port
, unsigned dev
, unsigned id
) throw(std::bad_alloc
, std::runtime_error
)
37 if(!mov
.get_DRDY(port
, dev
, id
)) {
38 mov
.set_controls(update_controls(true));
41 int16_t in
= mov
.next_input(port
, dev
, id
);
42 //std::cerr << "BSNES asking for (" << port << "," << dev << "," << id << ") (frame "
43 // << mov.get_current_frame() << ") giving " << in << std::endl;