C# Class CrewChiefV3.ControllerConfiguration

Inheritance: IDisposable
Show file Open project: mrbelowski/r3e_crewchief_v3 Class Usage Examples

Public Properties

Property Type Description
CHANNEL_OPEN_FUNCTION String
REPEAT_LAST_MESSAGE_BUTTON String
TOGGLE_RACE_UPDATES_FUNCTION String
TOGGLE_READ_OPPONENT_DELTAS String
TOGGLE_SPOTTER_FUNCTION String
buttonAssignmentIndexes int>.Dictionary
buttonAssignments List
controllers List
listenForAssignment System.Boolean

Public Methods

Method Description
ControllerConfiguration ( ) : System
Dispose ( ) : void
addCustomController ( System.Guid guid ) : void
addNetworkControllerToList ( ) : void
assignButton ( System parent, int controllerIndex, int actionIndex ) : System.Boolean
hasOutstandingClick ( String action ) : System.Boolean
isChannelOpen ( ) : System.Boolean
listenForButtons ( System.Boolean channelOpenIsToggle ) : System.Boolean
listenForChannelOpen ( ) : System.Boolean
loadSettings ( System parent ) : void
pollForButtonClicks ( System.Boolean channelOpenIsToggle ) : void
removeNetworkControllerFromList ( ) : void
saveSettings ( ) : void

Private Methods

Method Description
addButtonAssignment ( String action ) : void
getControllers ( ) : List
getFirstPressedButton ( System parent, ControllerData controllerData, ButtonAssignment buttonAssignment ) : System.Boolean
loadAssignment ( System parent, String functionName, int buttonIndex, String deviceGuid ) : void
pollForButtonClicks ( ButtonAssignment ba ) : void
removeAssignmentsForControllerAndButton ( System.Guid controllerGuid, int buttonIndex ) : void

Method Details

ControllerConfiguration() public method

public ControllerConfiguration ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

addCustomController() public method

public addCustomController ( System.Guid guid ) : void
guid System.Guid
return void

addNetworkControllerToList() public method

public addNetworkControllerToList ( ) : void
return void

assignButton() public method

public assignButton ( System parent, int controllerIndex, int actionIndex ) : System.Boolean
parent System
controllerIndex int
actionIndex int
return System.Boolean

hasOutstandingClick() public method

public hasOutstandingClick ( String action ) : System.Boolean
action String
return System.Boolean

isChannelOpen() public method

public isChannelOpen ( ) : System.Boolean
return System.Boolean

listenForButtons() public method

public listenForButtons ( System.Boolean channelOpenIsToggle ) : System.Boolean
channelOpenIsToggle System.Boolean
return System.Boolean

listenForChannelOpen() public method

public listenForChannelOpen ( ) : System.Boolean
return System.Boolean

loadSettings() public method

public loadSettings ( System parent ) : void
parent System
return void

pollForButtonClicks() public method

public pollForButtonClicks ( System.Boolean channelOpenIsToggle ) : void
channelOpenIsToggle System.Boolean
return void

removeNetworkControllerFromList() public method

public removeNetworkControllerFromList ( ) : void
return void

saveSettings() public method

public saveSettings ( ) : void
return void

Property Details

CHANNEL_OPEN_FUNCTION public static property

public static String CHANNEL_OPEN_FUNCTION
return String

REPEAT_LAST_MESSAGE_BUTTON public static property

public static String REPEAT_LAST_MESSAGE_BUTTON
return String

TOGGLE_RACE_UPDATES_FUNCTION public static property

public static String TOGGLE_RACE_UPDATES_FUNCTION
return String

TOGGLE_READ_OPPONENT_DELTAS public static property

public static String TOGGLE_READ_OPPONENT_DELTAS
return String

TOGGLE_SPOTTER_FUNCTION public static property

public static String TOGGLE_SPOTTER_FUNCTION
return String

buttonAssignmentIndexes public property

public Dictionary buttonAssignmentIndexes
return int>.Dictionary

buttonAssignments public property

public List buttonAssignments
return List

controllers public property

public List controllers
return List

listenForAssignment public property

public Boolean,System listenForAssignment
return System.Boolean