Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!munnari.oz.au!brolga!bunyip.cc.uq.oz.au!marlin.jcu.edu.au!glmwc From: glmwc@marlin.jcu.edu.au (Matt Crowd) Newsgroups: comp.sys.amiga.tech Subject: Interupts? Help Message-ID: <1990Dec19.101704.4071@marlin.jcu.edu.au> Date: 19 Dec 90 10:17:04 GMT Organization: James Cook University Lines: 25 I have yet another minor problem with my program... I have 2 screens swapping between each other for the title sequence of a program. I want these screens to swap about every 5 seconds. I am using Delay() to do the timing for the screen swapping. However, I want the user to be able to click on the mouse button to end this intro sequence and load the main program. The problem is Delay() will not return for, at worse, just under 5 seconds, which is too long. I would like to be able to detect the mouse press straight away, and still have the program swap screens correctly no matter how fast the machine it is running on is. I am an old Z80 assembler programmer and my mind is screaming interupts as the solution to this problem, but I have no idea how to set one up on the Amiga to do this. Examples/references/other solutions would be appreciated. Wait! I have another idea! How about using WaitTOF! After each of these I could check the mouse event and increment the timer... Sound ok? Thanks, -- Matt Crowd Amiga Man Email Address glmwc@marlin.jcu.edu.au