Clipboard introduced, but not incorporated yet. Some defines for convenience and better readability.
This commit is contained in:
+6
-6
@@ -87,7 +87,7 @@ namespace VISEQ::GRAPH::NODES {
|
||||
void interact(){
|
||||
float wheel = GetMouseWheelMove();
|
||||
|
||||
if(state->keys_down.ctrl && !state->keys_down.alt){
|
||||
if(KEYS_DOWN.ctrl && !KEYS_DOWN.alt){
|
||||
switch(GraphItem::state->node_mode){
|
||||
case 0:{
|
||||
midi_note += wheel;
|
||||
@@ -108,14 +108,14 @@ namespace VISEQ::GRAPH::NODES {
|
||||
if(midi_pitch_bend < 0 ) midi_pitch_bend = 0;
|
||||
if(midi_pitch_bend > 16383 ) midi_pitch_bend = 16383;
|
||||
|
||||
} else if(state->keys_down.shift && !state->keys_down.alt) {
|
||||
} else if(KEYS_DOWN.shift && !KEYS_DOWN.alt) {
|
||||
midi_velocity += wheel;
|
||||
if(midi_velocity < 0 ) midi_velocity = 127;
|
||||
if(midi_velocity > 127 ) midi_velocity = 0;
|
||||
} else if(state->keys_down.alt) {
|
||||
} else if(KEYS_DOWN.alt) {
|
||||
switch(GraphItem::state->node_mode){
|
||||
case 0:{
|
||||
float incr = (float)wheel * (state->keys_down.shift ? 100.0f : state->keys_down.ctrl ? 1000.0f : 10.0f);
|
||||
float incr = (float)wheel * (KEYS_DOWN.shift ? 100.0f : KEYS_DOWN.ctrl ? 1000.0f : 10.0f);
|
||||
midi_gate += incr;
|
||||
if(midi_gate < 0 ) midi_gate = 0;
|
||||
break;}
|
||||
@@ -125,7 +125,7 @@ namespace VISEQ::GRAPH::NODES {
|
||||
if(midi_cc_value > 127 ) midi_cc_value = 127;
|
||||
break;}
|
||||
case 2:{
|
||||
float incr = (float)wheel * (state->keys_down.shift ? 100.0f : state->keys_down.ctrl ? 1000.0f : 10.0f);
|
||||
float incr = (float)wheel * (KEYS_DOWN.shift ? 100.0f : KEYS_DOWN.ctrl ? 1000.0f : 10.0f);
|
||||
midi_pitch_bend += incr;
|
||||
if(midi_pitch_bend < 0 ) midi_pitch_bend = 0;
|
||||
if(midi_pitch_bend > 16383 ) midi_pitch_bend = 16383;
|
||||
@@ -175,7 +175,7 @@ namespace VISEQ::GRAPH::NODES {
|
||||
|
||||
if(selected) DrawCircleLinesV(position, radius+8, (Color){158, 255, 210, 255});
|
||||
|
||||
if(state->keys_down.alt){
|
||||
if(KEYS_DOWN.alt){
|
||||
float value = 0;
|
||||
int offset_gate = 0;
|
||||
switch(mode){
|
||||
|
||||
Reference in New Issue
Block a user