• ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

General Question Keyboard controls for Aux engines for Shuttle-A

Delta_Glider

New member
Joined
Jun 6, 2010
Messages
10
Reaction score
3
Points
3
Hi Orbinauts,
I would like to have the auxiliary engines of the Shuttle-A have keyboard controls similar to the main engines (e.g. Ctrl+ +, Ctrl + -); is this possible? I can probably figure it, but would just like to know if this is possibe before I start digging.
Kind regards
 
It doesn't seem to be documented in the Doc\ShuttleA.pdf but the pod engine thrust control is CTRL-NUMPAD_0 (increase thrust) CTRL-DECIMAL (decrease thrust). So it's the same as the hover engines but with the CTRL pressed. Source: Orbitersdk\samples\ShuttleA\ShuttleA.cpp

C++:
// --------------------------------------------------------------
// Respond to immediate keyboard events
// --------------------------------------------------------------
int ShuttleA::clbkConsumeDirectKey(char *kstate)
{
    if (KEYMOD_CONTROL (kstate)) {
        if (KEYDOWN (kstate, OAPI_KEY_DECIMAL))
                {
                 IncThrusterGroupLevel(thg_pod,-0.01);
                 oapiTriggerPanelRedrawArea (0, AID_ENGINEPODLEVEL);
                 return 1;
                }
        
        if (KEYDOWN (kstate, OAPI_KEY_NUMPAD0))
                {
                 IncThrusterGroupLevel(thg_pod,0.01);
                 oapiTriggerPanelRedrawArea (0, AID_ENGINEPODLEVEL);
                 return 1;
                }
            
        }

    return 0;
}
 
Back
Top