Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
FlightInputHandler Class Reference
Inheritance diagram for FlightInputHandler:

Public Member Functions

void OnDestroy ()
 
void ProcessAxis (AxisBinding axisBinding, KeyBinding plusKeyBinding, KeyBinding minusKeyBinding, ref float axisValue, ref float precisionAxis)
 Check for activity on the specified axis and eky bindings and adjust the axis appropriately More...
 

Static Public Member Functions

static void ResumeVesselCtrlState (Vessel v)
 
static void SetLaunchCtrlState ()
 
static void SetNeutralControls ()
 

Public Attributes

bool hasFocus = true
 
bool precisionMode = false
 
float rcsDeadZone = 0.001f
 
bool rcslock = true
 
bool stageLock = false
 
float throttleResponsiveness = 2.0f
 

Static Public Attributes

static int currentTarget = 0
 
static FlightInputHandler fetch
 
static FlightInputCallback OnFlyByWire = (FlightCtrlState st) => { }
 
static FlightInputCallback OnRawAxisInput = (FlightCtrlState st) => { }
 Handle input state before trim is added to the axis inputs. More...
 
static bool SPACENAV_USE_AS_FLIGHT_CONTROL = false
 
static FlightCtrlState state
 A handle to the input state. WARNING: Don't use this to read input state for part modules and such. Use vessel.ctrlState instead. More...
 

Properties

static bool RCSLock [get]
 

Member Function Documentation

void FlightInputHandler.OnDestroy ( )
inline
void FlightInputHandler.ProcessAxis ( AxisBinding  axisBinding,
KeyBinding  plusKeyBinding,
KeyBinding  minusKeyBinding,
ref float  axisValue,
ref float  precisionAxis 
)
inline

Check for activity on the specified axis and eky bindings and adjust the axis appropriately

static void FlightInputHandler.ResumeVesselCtrlState ( Vessel  v)
inlinestatic
static void FlightInputHandler.SetLaunchCtrlState ( )
inlinestatic
static void FlightInputHandler.SetNeutralControls ( )
inlinestatic

Member Data Documentation

int FlightInputHandler.currentTarget = 0
static
FlightInputHandler FlightInputHandler.fetch
static
bool FlightInputHandler.hasFocus = true
FlightInputCallback FlightInputHandler.OnFlyByWire = (FlightCtrlState st) => { }
static
FlightInputCallback FlightInputHandler.OnRawAxisInput = (FlightCtrlState st) => { }
static

Handle input state before trim is added to the axis inputs.

This is called after gathering axis inputs but before applying trim.

bool FlightInputHandler.precisionMode = false
float FlightInputHandler.rcsDeadZone = 0.001f
bool FlightInputHandler.rcslock = true
bool FlightInputHandler.SPACENAV_USE_AS_FLIGHT_CONTROL = false
static
bool FlightInputHandler.stageLock = false
FlightCtrlState FlightInputHandler.state
static

A handle to the input state. WARNING: Don't use this to read input state for part modules and such. Use vessel.ctrlState instead.

this script handles all keyboard input for the flight mode it dispatches a flight control update message for all parts that can respond this message contains a flightcontrolstate object, that holds the state of the input much like a snapshot of the cockpit controls

float FlightInputHandler.throttleResponsiveness = 2.0f

Property Documentation

bool FlightInputHandler.RCSLock
staticget

The documentation for this class was generated from the following file: