Cocoa, C++, Keyboard input and Timers

2008-06-16 Thread Josh de Lioncourt
Hello, An explanation of what I'm working on in brief, to avoid questions as to why things are being done the way they are. My company www.DraconisEntertainment.com develops audio-only computer games for the blind and visually impaired. Most of the games on our roster at present are

Re: Cocoa, C++, Keyboard input and Timers

2008-06-16 Thread Brian Christensen
On Jun 16, 2008, at 5:47 , Josh de Lioncourt wrote: Next, I need to be able to keep track of real-time during the game. In Windows, we'd use something like GetTickCount to accomplish this. Is there an equivalent on the Mac side? Again, pointing me in the right direction would be

Re: Cocoa, C++, Keyboard input and Timers

2008-06-16 Thread Andreas Monitzer
On Jun 16, 2008, at 23:47, Josh de Lioncourt wrote: To that end, we're redeveloping many old titles, primarily in C++ for the bulk of the coding to make porting between Mac and Windows simpler. The games have no graphical interface to speak of, only an audio one. First off, Cocoa

Re: Cocoa, C++, Keyboard input and Timers

2008-06-16 Thread Brian Christensen
On Jun 16, 2008, at 6:43 , Brian Christensen wrote: (I do not know what the difference is, if any, between using mach_absolute_time() and UpTime().) Apparently, the answer is that there isn't really a difference: http://lists.apple.com/archives/perfoptimization-dev/2007/Oct/msg3.html .