adding key stroke detection to scripting

42 views
Skip to first unread message

Steven Sagerian

unread,
Feb 8, 2021, 2:15:13 PM2/8/21
to Stellarium
Ive been looking thur the scripts to determine how to detect key strokes with out any luck.  Is there a way to add a keyboard listener event handler (in scripting)?

Is there a way to over ride or map keyboard input while running a script and have it return to defaults when the script ends?

Also is there a way to remap the currently defined keys which run these scripts ..
Capture.PNG
To run scripts of my own choosing? I looked thur the config.ini..

Georg Zotti

unread,
Feb 8, 2021, 2:25:20 PM2/8/21
to Stellarium
There is no supported way for keyboard interaction.

Keyboard shortcuts for scripts are defined in the script header. See User Guide, section 16.5.1.
Reply all
Reply to author
Forward
0 new messages