| 46 | } |
| 47 | |
| 48 | bool 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 |
| 74 | void Wireless360Controller::readSettings(void) |
nothing calls this directly
no outgoing calls
no test coverage detected