MCPcopy Create free account
hub / github.com/360Controller/360Controller / init

Method init

Wireless360Controller/Wireless360Controller.cpp:48–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool Wireless360Controller::init(OSDictionary *propTable)
49{
50 bool res = super::init(propTable);
51
52 // Default settings
53 invertLeftX = invertLeftY = false;
54 invertRightX = invertRightY = false;
55 deadzoneLeft = deadzoneRight = 0;
56 relativeLeft = relativeRight = false;
57 readSettings();
58 // Bindings
59 noMapping = true;
60 for (int i = 0; i < 11; i++)
61 {
62 mapping[i] = i;
63 }
64 for (int i = 12; i < 16; i++)
65 {
66 mapping[i-1] = i;
67 }
68
69 // Done
70 return res;
71}
72
73// Read the settings from the registry
74void Wireless360Controller::readSettings(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected