Commit 863dfe16 authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

stream-deck: Fix Original (gen1) button pressed state

We were swapping too much!
parent 8d55a0ea
......@@ -610,7 +610,7 @@ read_button_states_original (BsStreamDeck *self)
{
uint8_t position = swap_button_index_original (self, i);
BsStreamDeckButton *button = g_ptr_array_index (self->buttons, position);
gboolean pressed = (gboolean) states[position + 1];
gboolean pressed = (gboolean) states[i + 1];
if (bs_stream_deck_button_get_pressed (button) == pressed)
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment