(b *testing.B)
| 239 | var btnResult [6]btnState |
| 240 | |
| 241 | func checkBtnConfigOptimal(b *testing.B) { |
| 242 | for i, cfg := range btnSimpleCfg { |
| 243 | btn := Input.Button(cfg.Name) |
| 244 | btnResult[i].down = btn.Down() |
| 245 | btnResult[i].justUp = btn.JustReleased() |
| 246 | btnResult[i].justDown = btn.JustPressed() |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | // Benchmark sub-optimal state checks |
| 251 | func BenchmarkInputMgr_ButtonCleanState(b *testing.B) { |
no test coverage detected