| 101 | } |
| 102 | |
| 103 | int SingleInput::inputTypeToControllerNumber() const |
| 104 | { |
| 105 | switch (type) { |
| 106 | case IT_CONTROLLER1_BUTTON: |
| 107 | case IT_CONTROLLER1_AXIS: |
| 108 | return 0; |
| 109 | case IT_CONTROLLER2_BUTTON: |
| 110 | case IT_CONTROLLER2_AXIS: |
| 111 | return 1; |
| 112 | case IT_CONTROLLER3_BUTTON: |
| 113 | case IT_CONTROLLER3_AXIS: |
| 114 | return 2; |
| 115 | case IT_CONTROLLER4_BUTTON: |
| 116 | case IT_CONTROLLER4_AXIS: |
| 117 | return 3; |
| 118 | } |
| 119 | return 0; |
| 120 | } |
| 121 | |
| 122 | bool SingleInput::inputTypeToAxisFlag() const |
| 123 | { |
no outgoing calls
no test coverage detected