Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
World
Boatswain
Commits
863dfe16
Commit
863dfe16
authored
Apr 05, 2022
by
Georges Basile Stavracas Neto
Browse files
stream-deck: Fix Original (gen1) button pressed state
We were swapping too much!
parent
8d55a0ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bs-stream-deck.c
View file @
863dfe16
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment