Checks the value of all configured axis against the expected values.
(msg string, t *testing.T, expect [6]axState)
| 149 | |
| 150 | // Checks the value of all configured axis against the expected values. |
| 151 | func runAxisChecks(msg string, t *testing.T, expect [6]axState) { |
| 152 | for i, cfg := range axSimpleCfg { |
| 153 | exp := expect[i] |
| 154 | axi := Input.Axis(cfg.Name) |
| 155 | if exp.value != axi.Value() { |
| 156 | t.Error(msg, " Invalid on: ", cfg.Name, " - Value") |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | // Test configured axes using a single pair on one axis. |
| 162 | func TestAxisSimple(t *testing.T) { |
no test coverage detected