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: add encoder jog wheel draw support

Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
  • Loading branch information...
harryhaaren committed Sep 7, 2017
commit ee6ee8e26a8082654ba9a1d09afa8d274916982b
View
@@ -247,7 +247,8 @@ ctlra_avtka_connect(ctlra_event_func event_func, void *userdata, void *future)
.h = item->h,
};
ctlra_item_scale(&ai);
ai.draw = AVTKA_DRAW_DIAL;
ai.draw = (item->flags & CTLRA_ITEM_CENTER_NOTCH) ?
AVTKA_DRAW_DIAL : AVTKA_DRAW_JOG_WHEEL;
ai.interact = item->h > (item->w - 2) ?
AVTKA_INTERACT_DRAG_V : AVTKA_INTERACT_DRAG_H ;
ProTip! Use n and p to navigate between commits in a pull request.