| 1873 | } |
| 1874 | |
| 1875 | IDrawableModule* ModularSynth::GetModuleAtCursor(int offsetX /*=0*/, int offsetY /*=0*/) |
| 1876 | { |
| 1877 | float x = GetMouseX(&mUILayerModuleContainer) + offsetX; |
| 1878 | float y = GetMouseY(&mUILayerModuleContainer) + offsetY; |
| 1879 | IDrawableModule* uiLayerModule = mUILayerModuleContainer.GetModuleAt(x, y); |
| 1880 | if (uiLayerModule) |
| 1881 | return uiLayerModule; |
| 1882 | |
| 1883 | x = GetMouseX(&mModuleContainer) + offsetX; |
| 1884 | y = GetMouseY(&mModuleContainer) + offsetY; |
| 1885 | return mModuleContainer.GetModuleAt(x, y); |
| 1886 | } |
| 1887 | |
| 1888 | void ModularSynth::CheckClick(IDrawableModule* clickedModule, float x, float y, bool rightButton) |
| 1889 | { |