New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual device #41

Merged
merged 122 commits into from Oct 2, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Diff settings

Always

Just for now

Viewing a subset of changes. View all

avtka: fix slider interact directions

Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
  • Loading branch information...
harryhaaren committed Aug 30, 2017
commit 2aa9f3425e7ead15613061ccb66577a2cc09e0c7
View
@@ -194,10 +194,11 @@ ctlra_avtka_connect(ctlra_event_func event_func, void *userdata, void *future)
.y = item->y,
.w = item->w,
.h = item->h,
.interact = AVTKA_INTERACT_CLICK,
};
ai.draw = (item->flags & CTLRA_ITEM_FADER) ?
AVTKA_DRAW_SLIDER : AVTKA_DRAW_DIAL;
ai.interact = item->h > (item->w - 2) ?
AVTKA_INTERACT_DRAG_V : AVTKA_INTERACT_DRAG_H ;
snprintf(ai.name, sizeof(ai.name), "%s", name);
uint32_t idx = avtka_item_create(a, &ai);
ProTip! Use n and p to navigate between commits in a pull request.