MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getClickRepeatStepSize

Function getClickRepeatStepSize

src/OpenLoco/src/Input/MouseInput.cpp:1683–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681 }
1682
1683 uint32_t getClickRepeatStepSize()
1684 {
1685 // Each 100 ticks increases step size by a factor of 10
1686 return static_cast<uint32_t>(std::pow(10, getClickRepeatTicks() / 100));
1687 }
1688
1689 void setClickRepeatTicks(uint16_t ticks)
1690 {

Callers 3

onMouseDownFunction · 0.85
onMouseDownFunction · 0.85
onMouseDownFunction · 0.85

Calls 1

getClickRepeatTicksFunction · 0.85

Tested by

no test coverage detected