Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!umich!samsung!zaphod.mps.ohio-state.edu!mips!apple!sun-barr!newstop!sun!stpeter!cmcmanis From: cmcmanis@stpeter.Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: Reading the keyboard without a window. Keywords: keyboard,read,easy? Message-ID: <131573@sun.Eng.Sun.COM> Date: 9 Feb 90 21:56:56 GMT References: <6675@ucdavis.ucdavis.edu> <131451@sun.Eng.Sun.COM> <6677@ucdavis.ucdavis.edu> Sender: news@sun.Eng.Sun.COM Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 32 In article <6677@ucdavis.ucdavis.edu> (Brewski Rogers) writes: > Ah, but the problem is that I have a custom-copper list that's not connected > to a screen.(It intercepts [m|n] to seem like a screen.) since there's > no screen, where would I put a window? The beauty of it is, that you don't need a real screen. You can open your borderless backdrop window in the workbench screen and make it the active window (use the ACTIVATE flag in the window struct). Then build your custom copper list, and display your game. Your A-M/A-N handler need only pass the rawkey events through to intuition and your program will get them on it's message port. Windows do not have to be in _front_ to be active. So the sequence goes something like : install_handler(); win = OpenWindow(borderless backdrop); ... MrgCop(); LoadView(); /* At this point Intuition still thinks your window is "in front and active. */ play_game(); LoadView(oldview); CloseWindow(win); remove_handler(); See? --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@Eng.Sun.COM These opinions are my own and no one elses, but you knew that didn't you. "If it didn't have bones in it, it wouldn't be crunchy now would it?!"