Re: CoreGraphics questions
Re: CoreGraphics questions
- Subject: Re: CoreGraphics questions
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 10 Jun 2001 23:19:45 +0200
On Sunday, June 10, 2001, at 10:50 , <email@hidden> wrote:
Cool, I was hoping for a Cocoa way. Another question:
I was piloting a spaceship in my game by moving it on kEventRawKeyDown
and also
kEventRawKeyRepeat, but there was a noticable delay between moves which I
assumed was my slow blitter, but then I tried moving a few times in a for
loop
and there was no delay between moves, so I decided the blit is very fast,
but
the key repeat rate is what is slowing it down. So, is there some way to
receive
RawKeyRepeats more frequently? Or, can i begin a while loop when I
receive a
RawKeyDown and quit the loop on a key up:
if(event==RawKeyDown)
{
while(keyStillDown)
{
move;
blit;
}
}
I wouldn't normally be so concerned, but since this is a game it needs to
be
pretty fast.
Maybe you should consider using HID Manager:
http://gemma.apple.com/techpubs/macosx/Kernel/HID/
http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/HID_Manager/
HID_Manager_Basics.htm
(note that I don't have any experience with HID Manager)
andy
--
Description forthcoming.