MCPcopy
hub / github.com/EngoEngine/engo / checkAxisConfigValue

Function checkAxisConfigValue

axis_test.go:461–465  ·  view source on GitHub ↗

Fast check for all configured axes, stores the value externaly.

(b *testing.B)

Source from the content-addressed store, hash-verified

459
460// Fast check for all configured axes, stores the value externaly.
461func checkAxisConfigValue(b *testing.B) {
462 for i, cfg := range axSimpleCfg {
463 axResult[i].value = Input.Axis(cfg.Name).Value()
464 }
465}
466
467// Benchmark values checks with a clean key manager.
468func BenchmarkInputMgr_AxisCleanState(b *testing.B) {

Calls 2

AxisMethod · 0.80
ValueMethod · 0.65

Tested by

no test coverage detected