diff options
-rw-r--r-- | NOTES | 1 | ||||
-rw-r--r-- | sensei-raw-ctl-gui.c | 3 | ||||
-rw-r--r-- | sensei-raw-ctl-gui.ui | 1 | ||||
-rw-r--r-- | sensei-raw-ctl.c | 8 |
4 files changed, 10 insertions, 3 deletions
@@ -38,6 +38,7 @@ Report ID and wIndex set to zero. 0x02 for slow 0x03 for medium speed 0x04 for fast + 0x05 for trigger, led pulses when clicked 0x04 0x00 <POLLING> Sets the polling frequency. The value can be one of these values: diff --git a/sensei-raw-ctl-gui.c b/sensei-raw-ctl-gui.c index aa22b13..4295f0d 100644 --- a/sensei-raw-ctl-gui.c +++ b/sensei-raw-ctl-gui.c @@ -38,7 +38,8 @@ extern const char ui[]; /* To translate combo box entries into sensei-raw-ctl arguments. */ -static gchar *pulsation_list[] = { "steady", "slow", "medium", "fast", NULL }; +static gchar *pulsation_list[] = { "steady", "slow", "medium", "fast", + "trigger", NULL }; static gchar *intensity_list[] = { "off", "low", "medium", "high", NULL }; /* GtkNotebook pages within the UI. */ diff --git a/sensei-raw-ctl-gui.ui b/sensei-raw-ctl-gui.ui index f283ee0..9988cca 100644 --- a/sensei-raw-ctl-gui.ui +++ b/sensei-raw-ctl-gui.ui @@ -146,6 +146,7 @@ <item translatable='TRUE'>Slow</item> <item translatable='TRUE'>Medium</item> <item translatable='TRUE'>Fast</item> + <item translatable='TRUE'>Trigger</item> </items> </object><packing> <property name='expand'>TRUE</property> diff --git a/sensei-raw-ctl.c b/sensei-raw-ctl.c index 8ca9fb6..f6c3caf 100644 --- a/sensei-raw-ctl.c +++ b/sensei-raw-ctl.c @@ -125,7 +125,8 @@ enum sensei_pulsation PULSATION_STEADY = 1, PULSATION_SLOW, PULSATION_MEDIUM, - PULSATION_FAST + PULSATION_FAST, + PULSATION_TRIGGER }; /** Device mode. */ @@ -281,6 +282,7 @@ sensei_display_config (const struct sensei_config *config) case PULSATION_SLOW: printf ("slow\n"); break; case PULSATION_MEDIUM: printf ("medium\n"); break; case PULSATION_FAST: printf ("fast\n"); break; + case PULSATION_TRIGGER: printf ("trigger\n"); break; default: printf ("unknown\n"); } @@ -324,7 +326,7 @@ show_usage (const char *program_name) printf (" --cpi-on X Set CPI with the LED on to X\n"); printf (" --cpi-off X Set CPI with the LED off to X\n"); printf (" --pulsation X Set the pulsation mode" - " (steady, slow, medium, fast)\n"); + " (steady, slow, medium, fast, trigger)\n"); printf (" --intensity X Set the backlight intensity" " (off, low, medium, high)\n"); printf (" --save Save the current configuration to ROM\n"); @@ -445,6 +447,8 @@ parse_options (int argc, char *argv[], new_config->pulsation = PULSATION_MEDIUM; else if (!strcasecmp (optarg, "fast")) new_config->pulsation = PULSATION_FAST; + else if (!strcasecmp (optarg, "trigger")) + new_config->pulsation = PULSATION_TRIGGER; else { fprintf (stderr, "Error: invalid backlight pulsation: %s\n", optarg); |