Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, dr_panther, VoroneTZ), 1,255 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Esc #189710
03/20/08 22:01
03/20/08 22:01
Joined: Jan 2007
Posts: 59
C
Creepinbox Offline OP
Junior Member
Creepinbox  Offline OP
Junior Member
C

Joined: Jan 2007
Posts: 59
How do i Disable the esc button in lite c ? on_esc dosen't work

Re: Esc [Re: Creepinbox] #189711
03/20/08 22:07
03/20/08 22:07
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
dont include the default.c


3333333333
Re: Esc [Re: Quad] #200884
04/06/08 00:01
04/06/08 00:01
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
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);
}
}


Re: Esc [Re: DJBMASTER] #200886
04/06/08 00:05
04/06/08 00:05
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
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.


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1