mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
use ::main_modifier_state() in some more places
This commit is contained in:
parent
ef6b0bdb07
commit
9476657cd1
1 changed files with 3 additions and 3 deletions
|
|
@ -451,7 +451,7 @@ Strip::select_event (Button&, ButtonState bs)
|
||||||
|
|
||||||
if (bs == press) {
|
if (bs == press) {
|
||||||
|
|
||||||
int ms = _surface->mcp().modifier_state();
|
int ms = _surface->mcp().main_modifier_state();
|
||||||
|
|
||||||
if (ms & MackieControlProtocol::MODIFIER_CMDALT) {
|
if (ms & MackieControlProtocol::MODIFIER_CMDALT) {
|
||||||
_controls_locked = !_controls_locked;
|
_controls_locked = !_controls_locked;
|
||||||
|
|
@ -484,7 +484,7 @@ Strip::vselect_event (Button&, ButtonState bs)
|
||||||
{
|
{
|
||||||
if (bs == press) {
|
if (bs == press) {
|
||||||
|
|
||||||
int ms = _surface->mcp().modifier_state();
|
int ms = _surface->mcp().main_modifier_state();
|
||||||
|
|
||||||
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
||||||
|
|
||||||
|
|
@ -571,7 +571,7 @@ Strip::handle_button (Button& button, ButtonState bs)
|
||||||
_surface->mcp().add_down_button ((AutomationType) control->parameter().type(), _surface->number(), _index);
|
_surface->mcp().add_down_button ((AutomationType) control->parameter().type(), _surface->number(), _index);
|
||||||
|
|
||||||
float new_value;
|
float new_value;
|
||||||
int ms = _surface->mcp().modifier_state();
|
int ms = _surface->mcp().main_modifier_state();
|
||||||
|
|
||||||
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
||||||
/* reset to default/normal value */
|
/* reset to default/normal value */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue