[comp.sys.amiga.tech] LOCK or simular example code I can use

cwpjr@cbnewse.att.com (clyde.w.jr.phillips) (10/15/90)

Can anyone help with examples or PD code to do a lockout type
function for Ami? I can appreciate several scenarios.

Cover up all other console / intuition processes
with a custom screen and then defeat reboot key vector temporarirly.

Somehow intercept all KBD events while defeating reboot vectors temporarily,

or disabling keyborad events, or whatever!

Any suggestion, bkg info, etc is welcome. I'll be glad to summarize if requested

Thanks, IN ADVANCE!, Clyde

ken@cbmvax.commodore.com (Ken Farinsky - CATS) (10/16/90)

In article <1990Oct15.163204.14494@cbnewse.att.com> cwpjr@cbnewse.att.com writes:
>Can anyone help with examples or PD code to do a lockout type
>function for Ami? I can appreciate several scenarios.
>
>Cover up all other console / intuition processes
>with a custom screen and then defeat reboot key vector temporarirly.
>
>Somehow intercept all KBD events while defeating reboot vectors temporarily,
>or disabling keyborad events, or whatever!

You cannot lock out the reset from the keyboard without disconnecting
the keyboard.  You can delay the reset for up to 10 seconds on some
machines, but not all (the A500 has a hard-wired reset line...)  See
the RKM Libs&Devs chapter on the keyboard device.

You can intercept all input events by making an event handler that is
hooked into the input food chain.  See the RKM Libs&Devs chapter on
the input device.
-- 
--
Ken Farinsky - CATS - (215) 431-9421 - Commodore Business Machines
uucp: ken@cbmvax.commodore.com   or  ...{uunet,rutgers}!cbmvax!ken
bix:  kfarinsky