iRDS - Intelligent Race Driver System  V 2.1.0.5
 All Classes Namespaces Functions Variables Properties Events
IRDSPlayerControls Class Reference
Inheritance diagram for IRDSPlayerControls:

Classes

class  IRDSAditionalButtons
 
class  IRDSAnalogueRawInputs
 
class  IRDSMobileControlers
 

Public Types

enum  ControlType {
  Old_Previus_Version, Analogue, Keyboard, Mobile,
  External
}
 
enum  MobileType { AccelerometerX, AccelerometerY, TouchSteering, ButtonsSteering }
 
enum  ParameterType {
  Float, Int, String, GameObject,
  Vector3, Vector2, Vector4
}
 

Public Member Functions

float GetThrottleTime ()
 Gets the throttle time. More...
 
float GetThrottleTimeTraction ()
 Gets the throttle time traction. More...
 
float GetThrottleReleaseTime ()
 Gets the throttle release time. More...
 
float GetThrottleReleaseTimeTraction ()
 Gets the throttle release time traction. More...
 
float GetSteerTime ()
 Gets the steer time. More...
 
float GetVeloSteerTime ()
 Gets the velo steer time. More...
 
float GetSteerReleaseTime ()
 Gets the steer release time. More...
 
float GetVeloSteerReleaseTime ()
 Gets the velo steer release time. More...
 
float GetSteerCorrectionFactor ()
 Gets the steer correction factor. More...
 
void SetThrottleTime (float Value)
 Sets the throttle time. More...
 
void SetThrottleTimeTraction (float Value)
 Sets the throttle time traction. More...
 
void SetThrottleReleaseTime (float Value)
 Sets the throttle release time. More...
 
void SetThrottleReleaseTimeTraction (float Value)
 Sets the throttle release time traction. More...
 
void SetSteerTime (float Value)
 Sets the steer time. More...
 
void SetVeloSteerTime (float Value)
 Sets the velo steer time. More...
 
void SetSteerReleaseTime (float Value)
 Sets the steer release time. More...
 
void SetVeloSteerReleaseTime (float Value)
 Sets the velo steer release time. More...
 
void SetSteerCorrectionFactor (float Value)
 Sets the steer correction factor. More...
 
void ClearCurrentMobileInput ()
 Clears the current mobile input. More...
 
void InitializeInputs ()
 Initializes the inputs. More...
 
void OnGUI ()
 

Public Attributes

string steeringAxis = "Horizontal"
 The steering axis. More...
 
string steeringButtonLeft = "Horizontal"
 The steering button left. More...
 
string steeringButtonRight = "Horizontal"
 The steering button right. More...
 
string throttleAxis = "Vertical1"
 The throttle axis. More...
 
bool overrideThrottleAxis = false
 The override throttle axis. More...
 
string throttleButton = "Vertical1"
 The throttle button. More...
 
string brakeAxis = "Vertical2"
 The brake axis. More...
 
bool overrideBrakeAxis = false
 The override throttle axis. More...
 
string brakeButton = "Vertical2"
 The brake button. More...
 
string shiftUpButton = "ShiftUp"
 The shift up button. More...
 
string shiftDownButton = "ShiftDown"
 The shift down button. More...
 
string handbrakeButton = "Jump"
 The handbrake button. More...
 
string clutchAxis = "Clutch"
 The clutch axis. More...
 
string clutchButton = "Clutch"
 The clutch button. More...
 
KeyCode throttleKey = KeyCode.UpArrow
 The throttle key. More...
 
KeyCode altThrottleKey = KeyCode.LeftShift
 The alternate throttle key. More...
 
KeyCode brakesKey = KeyCode.DownArrow
 The brakes key. More...
 
KeyCode leftKey = KeyCode.LeftArrow
 The left key. More...
 
KeyCode rightKey = KeyCode.RightArrow
 The right key. More...
 
KeyCode handbrakeKey = KeyCode.Space
 The handbrake key. More...
 
KeyCode shiftUpKey = KeyCode.A
 The shift up key. More...
 
KeyCode shiftDownKey = KeyCode.Z
 The shift down key. More...
 
KeyCode clutchKey = KeyCode.S
 The clutch key. More...
 
float clutchInput
 The clutch input. More...
 
float clutchTime = 1.0f
 The clutch time. More...
 
float clutchReleaseTime = 0.5f
 The clutch release time. More...
 
KeyCode startEngineKey = KeyCode.Q
 The start engine key. More...
 
string startEngineButton = "StartEngine"
 The start engine button. More...
 
KeyCode nitroKey = KeyCode.LeftControl
 The nitro key. More...
 
string nitroButton = "Nitro"
 The nitro button. More...
 
ControlType controlType = ControlType.Old_Previus_Version
 The type of the control. More...
 
List< IRDSMobileControlersmobileControls = new List<IRDSMobileControlers>()
 The mobile controls. More...
 
int mobileControlSelected = 0
 The mobile control selected. This is the layout that is currently selected, 0 mean the first layout is selected and so on. More...
 
IRDSAnalogueRawInputs steerRawInput = new IRDSAnalogueRawInputs()
 
IRDSAnalogueRawInputs throttleRawInput = new IRDSAnalogueRawInputs()
 
IRDSAnalogueRawInputs brakeRawInput = new IRDSAnalogueRawInputs()
 
IRDSAnalogueRawInputs clutchRawInput = new IRDSAnalogueRawInputs()
 
KeyCode activateSirenKey = KeyCode.E
 
string activateSirenButton = "Siren"
 
List< string > gearShifterButtons = new List<string>()
 
bool useGearShifter = false
 
bool overrideNitroInput = false
 The override nitro input. More...
 
bool isAISystemActive = false
 Is the AI system active?. More...
 
float handbrakeTime = 1f
 The handbrake time. More...
 
float handbrakeReleaseTime = 1f
 The handbrake release time. More...
 
bool combinedAxisPedals = false
 The combined Axis Pedals. If this is enabled, the Throttle and Brake would be got as they are, raw, so the input signal would start from -1 and would end at 1, this allows the use of certain types of analogue input like analogue sticks from controllers like the PS Vita and such. More...
 

Member Function Documentation

void IRDSPlayerControls.ClearCurrentMobileInput ( )

Clears the current mobile input.

float IRDSPlayerControls.GetSteerCorrectionFactor ( )

Gets the steer correction factor.

Returns
The steer correction factor.
float IRDSPlayerControls.GetSteerReleaseTime ( )

Gets the steer release time.

Returns
The steer release time.
float IRDSPlayerControls.GetSteerTime ( )

Gets the steer time.

Returns
The steer time.
float IRDSPlayerControls.GetThrottleReleaseTime ( )

Gets the throttle release time.

Returns
The throttle release time.
float IRDSPlayerControls.GetThrottleReleaseTimeTraction ( )

Gets the throttle release time traction.

Returns
The throttle release time traction.
float IRDSPlayerControls.GetThrottleTime ( )

Gets the throttle time.

Returns
The throttle time.
float IRDSPlayerControls.GetThrottleTimeTraction ( )

Gets the throttle time traction.

Returns
The throttle time traction.
float IRDSPlayerControls.GetVeloSteerReleaseTime ( )

Gets the velo steer release time.

Returns
The velo steer release time.
float IRDSPlayerControls.GetVeloSteerTime ( )

Gets the velo steer time.

Returns
The velo steer time.
void IRDSPlayerControls.InitializeInputs ( )

Initializes the inputs.

void IRDSPlayerControls.SetSteerCorrectionFactor ( float  Value)

Sets the steer correction factor.

Parameters
ValueValue.
void IRDSPlayerControls.SetSteerReleaseTime ( float  Value)

Sets the steer release time.

Parameters
ValueValue.
void IRDSPlayerControls.SetSteerTime ( float  Value)

Sets the steer time.

Parameters
ValueValue.
void IRDSPlayerControls.SetThrottleReleaseTime ( float  Value)

Sets the throttle release time.

Parameters
ValueValue.
void IRDSPlayerControls.SetThrottleReleaseTimeTraction ( float  Value)

Sets the throttle release time traction.

Parameters
ValueValue.
void IRDSPlayerControls.SetThrottleTime ( float  Value)

Sets the throttle time.

Parameters
ValueValue.
void IRDSPlayerControls.SetThrottleTimeTraction ( float  Value)

Sets the throttle time traction.

Parameters
ValueValue.
void IRDSPlayerControls.SetVeloSteerReleaseTime ( float  Value)

Sets the velo steer release time.

Parameters
ValueValue.
void IRDSPlayerControls.SetVeloSteerTime ( float  Value)

Sets the velo steer time.

Parameters
ValueValue.

Member Data Documentation

KeyCode IRDSPlayerControls.altThrottleKey = KeyCode.LeftShift

The alternate throttle key.

string IRDSPlayerControls.brakeAxis = "Vertical2"

The brake axis.

string IRDSPlayerControls.brakeButton = "Vertical2"

The brake button.

KeyCode IRDSPlayerControls.brakesKey = KeyCode.DownArrow

The brakes key.

string IRDSPlayerControls.clutchAxis = "Clutch"

The clutch axis.

string IRDSPlayerControls.clutchButton = "Clutch"

The clutch button.

float IRDSPlayerControls.clutchInput

The clutch input.

KeyCode IRDSPlayerControls.clutchKey = KeyCode.S

The clutch key.

float IRDSPlayerControls.clutchReleaseTime = 0.5f

The clutch release time.

float IRDSPlayerControls.clutchTime = 1.0f

The clutch time.

bool IRDSPlayerControls.combinedAxisPedals = false

The combined Axis Pedals. If this is enabled, the Throttle and Brake would be got as they are, raw, so the input signal would start from -1 and would end at 1, this allows the use of certain types of analogue input like analogue sticks from controllers like the PS Vita and such.

ControlType IRDSPlayerControls.controlType = ControlType.Old_Previus_Version

The type of the control.

string IRDSPlayerControls.handbrakeButton = "Jump"

The handbrake button.

KeyCode IRDSPlayerControls.handbrakeKey = KeyCode.Space

The handbrake key.

float IRDSPlayerControls.handbrakeReleaseTime = 1f

The handbrake release time.

float IRDSPlayerControls.handbrakeTime = 1f

The handbrake time.

bool IRDSPlayerControls.isAISystemActive = false

Is the AI system active?.

KeyCode IRDSPlayerControls.leftKey = KeyCode.LeftArrow

The left key.

List<IRDSMobileControlers> IRDSPlayerControls.mobileControls = new List<IRDSMobileControlers>()

The mobile controls.

int IRDSPlayerControls.mobileControlSelected = 0

The mobile control selected. This is the layout that is currently selected, 0 mean the first layout is selected and so on.

string IRDSPlayerControls.nitroButton = "Nitro"

The nitro button.

KeyCode IRDSPlayerControls.nitroKey = KeyCode.LeftControl

The nitro key.

bool IRDSPlayerControls.overrideBrakeAxis = false

The override throttle axis.

bool IRDSPlayerControls.overrideNitroInput = false

The override nitro input.

bool IRDSPlayerControls.overrideThrottleAxis = false

The override throttle axis.

KeyCode IRDSPlayerControls.rightKey = KeyCode.RightArrow

The right key.

string IRDSPlayerControls.shiftDownButton = "ShiftDown"

The shift down button.

KeyCode IRDSPlayerControls.shiftDownKey = KeyCode.Z

The shift down key.

string IRDSPlayerControls.shiftUpButton = "ShiftUp"

The shift up button.

KeyCode IRDSPlayerControls.shiftUpKey = KeyCode.A

The shift up key.

string IRDSPlayerControls.startEngineButton = "StartEngine"

The start engine button.

KeyCode IRDSPlayerControls.startEngineKey = KeyCode.Q

The start engine key.

string IRDSPlayerControls.steeringAxis = "Horizontal"

The steering axis.

string IRDSPlayerControls.steeringButtonLeft = "Horizontal"

The steering button left.

string IRDSPlayerControls.steeringButtonRight = "Horizontal"

The steering button right.

string IRDSPlayerControls.throttleAxis = "Vertical1"

The throttle axis.

string IRDSPlayerControls.throttleButton = "Vertical1"

The throttle button.

KeyCode IRDSPlayerControls.throttleKey = KeyCode.UpArrow

The throttle key.