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
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,949
Reaction score
379
Points
98
Location
Sparta
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;
}
 
Top