A89: Re: OSInitBetweenKeyDelay


[Prev][Next][Index][Thread]

A89: Re: OSInitBetweenKeyDelay




What is the key you're using to rotate? These two functions only work for
autorepeat keys (arrows, backspace, etc.) That might be it (probably is). To
fix your problem, i don't know...could go ghetto and use a dummy loop =P

hope it helps,
Michael Cowart

I am writing a tetris clone for the TI-89 in C using TI-GCC.  When I press
rotate the pieces spin about 100 times per second.  I would like to lower
that
to about 1 rotation per second, so I tried using OSInitKeyInitDelay(number)
and OSInitBetweenKeyDelay(number).

However, no matter what number large or small I use in these functions, the
rotation speed doesn't change.  Could it be becuase I am using grayscale or
because I am disabling interrupts like the TI-GCC faq?

save_int_1 = peek_l (0x64);
poke_l (0x40064, dummy_int);
// enable grayscale
// do your code
// disable grayscale
poke_l (0x40064, save_int_1);

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.





References: