| 1183 | } |
| 1184 | |
| 1185 | float 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 | |
| 1190 | void ModularSynth::SetMousePosition(ModuleContainer* context, float x, float y) |
| 1191 | { |