Checks the state of the two mouse axes against provided values.
(msg string, t *testing.T, x float32, y float32)
| 414 | |
| 415 | // Checks the state of the two mouse axes against provided values. |
| 416 | func runAxisMouse(msg string, t *testing.T, x float32, y float32) { |
| 417 | |
| 418 | if x != Input.Axis("mouse x").Value() { |
| 419 | t.Error(msg, "Invalid x value: ", x, "!=", Input.Axis("mouse x").Value()) |
| 420 | } |
| 421 | if y != Input.Axis("mouse y").Value() { |
| 422 | t.Error(msg, "Invalid y value: ", y, "!=", Input.Axis("mouse y").Value()) |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | // Test some state changes on the two mouse axes. |
| 427 | func TestAxisMouse(t *testing.T) { |
no test coverage detected