MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetMouseY

Method GetMouseY

Source/ModularSynth.cpp:1185–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185float ModularSynth::GetMouseY(ModuleContainer* context, float rawY /*= FLT_MAX*/)
1186{
1187 return ((rawY == FLT_MAX ? mMousePos.y : rawY) + UserPrefs.mouse_offset_y.Get()) / context->GetDrawScale() - context->GetDrawOffset().y;
1188}
1189
1190void ModularSynth::SetMousePosition(ModuleContainer* context, float x, float y)
1191{

Callers 14

KeyPressedMethod · 0.45
IsMouseHoveredMethod · 0.45
SpawnMethod · 0.45
ResetAppearPosMethod · 0.45
DrawModuleMethod · 0.45
OnSelectItemMethod · 0.45
UpdatePositionMethod · 0.45
MouseMovedMethod · 0.45
KeyPressedMethod · 0.45
GoMethod · 0.45
DrawDropdownMethod · 0.45
MouseMovedMethod · 0.45

Calls 3

GetMethod · 0.80
GetDrawScaleMethod · 0.80
GetDrawOffsetMethod · 0.80

Tested by 1

KeyPressedMethod · 0.36