code: func GamepadButtonPressDuration(id int, button ebiten.GamepadButton) int {
  	theInputState.m.RLock()
  	s := 0
  	if _, ok := theInputState.gamepadButtonDurations[id]; ok {
  		s = theInputState.gamepadButtonDurations[id][button]
  	}
  	theInputState.m.RUnlock()
  	return s
  }
docs: // GamepadButtonPressDuration returns how long the gamepad button of the gamepad id is pressed in frames.
  //
  // GamepadButtonPressDuration is concurrent safe.