MIDI2LR 6.1.0.0
MIDI2LR is an application that interfaces MIDI controllers with Lightroom 6+/CC Classic. It processes MIDI input into develop parameter updates and photo actions, and sends MIDI output when parameters are changed for motorized feedback (on controllers that have motorized faders). A listing of available LightRoom commands is in the Wiki. Assistance on the code and design is welcome.
Loading...
Searching...
No Matches
rsj::ActiveModifiers Struct Reference

#include <SendKeys.h>

Static Public Member Functions

static ActiveModifiers FromMidi2LR (int from) noexcept
 
static ActiveModifiers FromWindows (int from) noexcept
 

Public Attributes

bool alt_opt {false}
 
bool command {false}
 
bool control {false}
 
bool hankaku {false}
 
bool shift {false}
 

Member Function Documentation

◆ FromMidi2LR()

ActiveModifiers rsj::ActiveModifiers::FromMidi2LR ( int  from)
staticnoexcept
31 {
32 ActiveModifiers am {};
33 am.alt_opt = from & 1;
34 am.command = from & 8;
35 am.control = from & 2;
36 am.shift = from & 4;
37 return am;
38 }

◆ FromWindows()

ActiveModifiers rsj::ActiveModifiers::FromWindows ( int  from)
staticnoexcept
20 {
21 /* shift coded as follows: 1: shift, 2: ctrl, 4: alt, 8: hankaku */
22 ActiveModifiers am {};
23 am.alt_opt = from & 4;
24 am.control = from & 2;
25 am.hankaku = from & 8;
26 am.shift = from & 1;
27 return am;
28 }

Member Data Documentation

◆ alt_opt

bool rsj::ActiveModifiers::alt_opt {false}
22{false};

◆ command

bool rsj::ActiveModifiers::command {false}
23{false};

◆ control

bool rsj::ActiveModifiers::control {false}
24{false};

◆ hankaku

bool rsj::ActiveModifiers::hankaku {false}
26{false};

◆ shift

bool rsj::ActiveModifiers::shift {false}
25{false};

The documentation for this struct was generated from the following files: