MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / charge_cap

Function charge_cap

src/inputdevice.cpp:3850–3859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3848}
3849
3850static void charge_cap (int joy, int idx, int charge)
3851{
3852 if (charge < -1 || charge > 1)
3853 charge = charge * 80;
3854 pot_cap[joy][idx] += charge;
3855 if (pot_cap[joy][idx] < 0)
3856 pot_cap[joy][idx] = 0;
3857 if (pot_cap[joy][idx] > 511)
3858 pot_cap[joy][idx] = 511;
3859}
3860
3861static void cap_check(bool hsync)
3862{

Callers 1

cap_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected