bsnes/hiro/cocoa/timer.hpp
byuu 903d1e4012 v107.8
* GB: integrated SameBoy v0.12.1 by Lior Halphon
* SFC: added HG51B169 (Cx4) math tables into bsnes binary
2019-07-17 21:11:46 +09:00

27 lines
432 B
C++
Executable file

#if defined(Hiro_Timer)
@interface CocoaTimer : NSObject {
@public
hiro::mTimer* timer;
NSTimer* instance;
}
-(id) initWith:(hiro::mTimer&)timer;
-(NSTimer*) instance;
-(void) update;
-(void) run:(NSTimer*)instance;
@end
namespace hiro {
struct pTimer : pObject {
Declare(Timer, Object)
auto setEnabled(bool enabled) -> void;
auto setInterval(uint interval) -> void;
CocoaTimer* cocoaTimer = nullptr;
};
}
#endif