Is it possible to define your own controls?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
drtortoise
Posts: 5
Joined: 10.10.2009
With us: 14 years 11 months

Is it possible to define your own controls?

Post #1by drtortoise » 10.10.2009, 09:30

Hi,

I was wondering if it is possible to define your own controls, you know like "a" is accelerate and "z" is slow down, what if I want "s" to be accelerate and "d" to be slow down?

The reason I ask is becuase I would like to use a small "num pad" istead of the whole keyboard.

A little bit of background of what I'm doing - I'm a student at Hyper Island in Stockhom, Sweden, and we have to make an exhibition about experience technology. We are making a little spaceship, with Celestia projected onto the space ship "window". Then, we're making an arduino laser harp as a controller ("break laser one to roll left for instance). Now we have it hooked up to a keyboard, so that when the first laser is broken it presses the left arrow key. But the keyboard is really big and we have to "hide it" to make hte space ship look cooler. So something smaller like a num pad would be awesome.

All help much appreciated!!

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 22 years
Location: NY, USA

Re: Is it possible to define your own controls?

Post #2by selden » 10.10.2009, 11:34

Keyboard commands for Celestia can be defined in a CelX script. They'll only be active while the script is running, though, which makes them somewhat fragile.

One way to do it is described in the Celestia WikiBook at
http://en.wikibooks.org/wiki/Celestia/C ... _with_CELX
Selden

Avatar
John Van Vliet
Posts: 2941
Joined: 28.08.2002
With us: 22 years 1 month

Re: Is it possible to define your own controls?

Post #3by John Van Vliet » 10.10.2009, 21:12

--- edit ---
Last edited by John Van Vliet on 21.10.2013, 01:12, edited 1 time in total.

Topic author
drtortoise
Posts: 5
Joined: 10.10.2009
With us: 14 years 11 months

Re: Is it possible to define your own controls?

Post #4by drtortoise » 19.10.2009, 08:27

Thanks for the help everyone =)
I'll let you know how the laser har controller turns out

Avatar
piellepi M
Posts: 124
Joined: 25.09.2003
Age: 69
With us: 21 years
Location: Rome, Italy

Re: Is it possible to define your own controls?

Post #5by piellepi » 20.10.2009, 07:00

Hi celestians!
John, do you think it's possible to have also in Windows these features of KDE? 8O
I use an italian keyboard, so I can't execute some commands. :(
Thanks a lot! :wink:
Ciao
Pierluigi


Return to “Help Central”