예제 #1
0
void stompbox_amp::updateSignal()
{
    updateKnob1("07", "00", "02");
    updateKnob2("07", "00", "03");
    updateComboBox("07", "00", "01");
    updateSwitch("07", "00", "00");
}
예제 #2
0
파일: coRotButton.cpp 프로젝트: nixz/covise
/** Hit is called whenever the button with this action is intersected
  by the input device.
  @param hitPoint,hit  Performer intersection information
  @return ACTION_CALL_ON_MISS if you want miss to be called,
          otherwise ACTION_DONE is returned
*/
int coRotButton::hit(vruiHit *hit)
{

    //VRUILOG("coRotButton::hit info: called")

    vruiRendererInterface *renderer = vruiRendererInterface::the();

    Result preReturn = renderer->hit(this, hit);
    if (preReturn != ACTION_UNDEF)
        return preReturn;

    vruiButtons *buttons = hit->isMouseHit() ? renderer->getMouseButtons() : renderer->getButtons();

    selectionState = true;
    if (buttons->wasPressed() & vruiButtons::ACTION_BUTTON)
    {
        // left Button was pressed
        onPress();
    }
    else if (buttons->wasReleased() & vruiButtons::ACTION_BUTTON)
    {
        // left Button was released
        onRelease();
    }

    updateSwitch();
    return ACTION_CALL_ON_MISS;
}
예제 #3
0
void stompbox_dd::updateSignal()
{
    updateKnob1("06", "00", "0B");
    updateKnob2("06", "00", "0A");
    updateComboBox("06", "00", "06");
    updateSwitch("06", "00", "05");
}
예제 #4
0
파일: coRotButton.cpp 프로젝트: nixz/covise
/** Set button press state.
  @param state button press state
  @param generateEvent if true, onPress and onRelease events are generated
*/
void coRotButton::setState(bool state, bool generateEvent)
{
    if (generateEvent)
        onPress();
    pressState = state;
    updateSwitch();
    if (generateEvent)
        onRelease();
}
예제 #5
0
void stompbox_eq::updateSignal()
{
    updateSlider1("06", "00", "13");
    updateSlider2("06", "00", "16");
    updateSlider3("06", "00", "19");
    updateSlider4("06", "00", "1B");
    updateSlider5("06", "00", "1C");
    updateComboBox("06", "00", "1D");
    updateSwitch("06", "00", "11");
}
예제 #6
0
void stompbox_mod::updateSignal()
{
    updateComboBox("07", "00", "16");
    updateKnob1("07", "00", "17");
    updateSwitch("07", "00", "15");
}
예제 #7
0
파일: coRotButton.cpp 프로젝트: nixz/covise
/// Miss is called once after a hit, if the button is not intersected anymore.
void coRotButton::miss()
{
    vruiRendererInterface::the()->miss(this);
    selectionState = false;
    updateSwitch();
}
예제 #8
0
void stompbox_mfx::updateSignal()
{
    updateComboBox("03", "00", "05");
    updateSwitch("03", "00", "04");
    updateKnob1("03", "00", "06");
}
예제 #9
0
void menuPage_assign3::updateSignal()
{
    updateSwitch("01", "00", "32");
}