//
// SetupCameraOffsetTrigger::sliderValueFromPos from 0x501994 to 0x5019f0 (92 bytes)
//
// 4 xrefs:
// > SetupCameraOffsetTrigger::init @ 0x502832
// > SetupCameraOffsetTrigger::textChanged @ 0x502fb0
// > SetupCameraOffsetTrigger::textChanged @ 0x50300a
// > SetupCameraOffsetTrigger::textChanged @ 0x503026
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float SetupCameraOffsetTrigger::sliderValueFromPos(SetupCameraOffsetTrigger *a1, int a2)
{
float v2; // s15
v2 = (float)(floorf((float)a2 / 3.0) / 200.0) + 0.5;
if ( v2 >= 1.0 )
return 1.0;
if ( v2 <= 0.0 )
return 0.0;
return v2;
}