mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
* GB: integrated SameBoy v0.12.1 by Lior Halphon * SFC: added HG51B169 (Cx4) math tables into bsnes binary
27 lines
432 B
C++
Executable file
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
|