RetroBASIC

Retrogamecoding(.org) => EGSL => Topic started by: GEEK on October 24, 2013, 02:58:14 AM

Title: egsl programming question...
Post by: GEEK on October 24, 2013, 02:58:14 AM
i don't know were anymore but a wile ago i saw some script that used
keywords that I've never seen before in egsl.

e.g. :  SDLK_BACKSPACE or SOUND_LOOP

is there a list with these keywords on the internet or something?
can't find it in the documentation....
Title: Re: egsl programming question...
Post by: Cybermonkey on October 24, 2013, 08:11:17 AM
You've never seen them because they don't exist. They have to be declared int the scirpt itself. For example what I often do is
Code: [Select]
CRSLEFT=276
CRSRIGHT=275
CRSUP=273
CRSDOWN=274
SPACE=32
LCTRL=306
So you can check the keys like
Code: [Select]
if keystate (CRSRIGHT) then
Title: Re: egsl programming question...
Post by: GEEK on October 24, 2013, 09:54:22 PM
aaah, thanks.that's actually a relief , less to study then ;)