[linux-audio-user] Re: Knobs
Juhana Sadeharju
kouhia at nic.funet.fi
Mon Jul 26 10:23:48 EDT 2004
>From: Sampo Savolainen <v2 at iki.fi>
>
>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
More information about the Linux-audio-user
mailing list