Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!uflorida!kluge!serss0.fiu.edu From: acmfiu@serss0.fiu.edu (ACMFIU) Newsgroups: comp.sys.apple2 Subject: GetCaretTime Message-ID: <3621@kluge.fiu.edu> Date: 22 May 91 21:06:12 GMT Sender: news@kluge.fiu.edu Organization: Florida International University, Miami Lines: 44 GetCaretTime returns the number of ticks that is to occur between cursor blinks. because i'm handling my own blinking cursor, i need to use this. so, am i correct in thinking that i have some counter that i increment through my main loop and when it gets to the value returned by GetCaretTime i blink the cursor. if so, then i must be doing something wrong because the cursor is blinking awefully fast. the value that GetCaretTime returns to me is $1e. my code looks like the following: inc num_ticks pha pha _GetCaretTime pla ply cmp num_ticks beq :1 rts :1 jsr draw_cursor stz num_ticks :2 pha pha _GetCaretTime pla ply cmp num_ticks bne :2 stz num_ticks jsr erase_cursor NOTE: the above code is only for blinking the cursor. i know i'm suppose to handle keypresses between blinking and erasing the cursor but that's not the issue here. also, i update on the main event loop because i never get null events for some reason. albert