[linux-audio-user] Re: Knobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From: Sampo Savolainen <v2@xxxxxx>
>
>I propose: 
>  - To move: press left button on knob, while the button is pressed,
>    vertical movement moves the dial (left -, right +)

I propose horizontal movement.

No, it should be configurable. Perhaps environment variable
or a rc file (of GTK?). Environment variable would be better as
a quick standard.

  setenv KNOBS_CONTROLLED_HORIZONTALLY
  setenv KNOBS_CONTROLLED_VERTICALLY
  unsetenv KNOBS_CONTROLLED_HORIZONTALLY
  unsetenv KNOBS_CONTROLLED_VERTICALLY

  #include <stdlib.h>
  if (getenv("KNOBS_CONTROLLED_HORIZONTALLY") != NULL) {
    // Horizontal movement.
  }
  if (getenv("KNOBS_CONTROLLED_VERTICALLY") != NULL) {
    // Vertical movement.
  }

Juhana

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux