Esc

Posted By: Creepinbox

Esc - 03/20/08 22:01

How do i Disable the esc button in lite c ? on_esc dosen't work
Posted By: Quad

Re: Esc - 03/20/08 22:07

dont include the default.c
Posted By: DJBMASTER

Re: Esc - 04/06/08 00:01

huh? on_esc works fine... just make sure you set it to NULL and within a while loop...eg...

 Code:
function main()
{
while(1)
{
on_esc=NULL;
wait(1);
}
}

Posted By: Uhrwerk

Re: Esc - 04/06/08 00:05

Don't assign it in a loop. That's nonsense and a total waste of performance. Just place a
 Code:
wait(1); on_esc = NULL;
in your main function. The wait(1); is required as on_esc is assigned in default.c in a starter function and starter functions are started after the main function. Not including the default.c will do as good.
© 2024 lite-C Forums