void stompbox_amp::updateSignal() { updateKnob1("07", "00", "02"); updateKnob2("07", "00", "03"); updateComboBox("07", "00", "01"); updateSwitch("07", "00", "00"); }
/** 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; }
void stompbox_dd::updateSignal() { updateKnob1("06", "00", "0B"); updateKnob2("06", "00", "0A"); updateComboBox("06", "00", "06"); updateSwitch("06", "00", "05"); }
/** 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(); }
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"); }
void stompbox_mod::updateSignal() { updateComboBox("07", "00", "16"); updateKnob1("07", "00", "17"); updateSwitch("07", "00", "15"); }
/// Miss is called once after a hit, if the button is not intersected anymore. void coRotButton::miss() { vruiRendererInterface::the()->miss(this); selectionState = false; updateSwitch(); }
void stompbox_mfx::updateSignal() { updateComboBox("03", "00", "05"); updateSwitch("03", "00", "04"); updateKnob1("03", "00", "06"); }
void menuPage_assign3::updateSignal() { updateSwitch("01", "00", "32"); }