Assigning Custom Key Functions with CELX

All about writing scripts for Celestia in Lua and the .cel system
Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 7 months
Location: Seattle, WA USA

Assigning Custom Key Functions with CELX

Post #1by hank » 26.10.2005, 02:46

Read about it here.

- Hank

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 1 month

Post #2by Malenfant » 26.10.2005, 07:57

Cool. That could be fairly handy :)

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 1 month

Post #3by Malenfant » 28.10.2005, 17:28

Though something that might also be useful is the ability to 'pull back' in terms of distance so that something that's bigger than the current FOV can fit inside it - rather than keep the current distance and change the size of the FOV. Would that be scriptable?

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 1 month

Post #4by Malenfant » 01.11.2005, 04:20

I moved Hank's wiki entry to a new location as part of the new Q&A section in the Celx part of the Celestia wikibook - it's now at:

http://en.wikibooks.org/wiki/Celestia:C ... _with_CELX

aizul
Posts: 3
Joined: 14.11.2005
With us: 18 years 10 months

Post #5by aizul » 20.01.2006, 08:18

hello, i got some question,
i want to have more than one custom keys, can i follow the example. Another question, can i use combination of 2 keys for example Ctrl+z or Alt+z?
thank you

MibTaz
Posts: 7
Joined: 29.01.2006
With us: 18 years 8 months

Post #6by MibTaz » 29.01.2006, 23:03

From my expierience with this, some modified keys work (such as control a-z). Other meta keys, at least on windows, are not useable at all (alt modifiers, most extended key sequences). Some control sequences are problematic, especially if they are already in use by Celestia. My advice is to download and understand the console script written by Harald Schmidt. It's straighforward and clean, with multiple key processing. I believe it's on Celestia Mother Lode. BTW, control sequences are \001 through \026, except ^h (in Windoze, maps to H). I would avoid using ^c and ^z since those map to break and suspend on unix systems :)

Cheers


Return to “Scripting”