feat: Add support for SpaceMouse mod (6D input knob) (#1853)
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets. Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
This commit is contained in:
co-authored by
Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
parent
3765e678b9
commit
9dc4065525
@@ -330,6 +330,12 @@ getvalue_t getValue(mixsrc_t i)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(SPACEMOUSE)
|
||||
else if (i >= MIXSRC_FIRST_SPACEMOUSE && i <= MIXSRC_LAST_SPACEMOUSE) {
|
||||
return get_spacemouse_value(i - MIXSRC_FIRST_SPACEMOUSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
else if (i == MIXSRC_MAX) {
|
||||
return 1024;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user