void SurfaceComponent::joystickValueChanged (Joystick* joystickThatWasMoved)
{
    SurfaceJoystick* joystick = dynamic_cast<SurfaceJoystick*> (joystickThatWasMoved);
    if (joystick)
    {
        BasePlugin* plugin = host->getPluginByUniqueHash (joystick->getPlugin ());
        if (plugin)
        {
            plugin->setParameter (joystick->getParameter (0), joystick->getHorizontalValue ());
            plugin->setParameter (joystick->getParameter (1), joystick->getVerticalValue ());
        }
    }
}
//==============================================================================
void SurfaceComponent::sliderValueChanged (Slider* sliderThatWasMoved)
{
    SurfaceSlider* slider = dynamic_cast<SurfaceSlider*> (sliderThatWasMoved);
    if (slider)
    {
        BasePlugin* plugin = host->getPluginByUniqueHash (slider->getPlugin ());
        if (plugin)
        {
            plugin->setParameter (slider->getParameter (0), slider->getValue ());
        }
    }
}