more NO-OP, comment and whitespace

This commit is contained in:
Robin Gareus 2017-12-12 00:19:36 +01:00
parent ba2b136af2
commit 16a9878f22
2 changed files with 37 additions and 32 deletions

View file

@ -602,16 +602,21 @@ Surface::handle_midi_controller_message (MIDI::Parser &, MIDI::EventTwoBytes* ev
turn_it_on ();
//the joystick is not touch sensitive.
//ignore the joystick until the user clicks the "null" button. the joystick sends spurious controller messages.
//and since they are absolute values (joy position) this can send undesired changes.
/* The joystick is not touch sensitive.
* ignore the joystick until the user clicks the "null" button.
* The joystick sends spurious controller messages,
* and since they are absolute values (joy position) this can send undesired changes.
*/
if (_stype == st_joy && ev->controller_number == 0x01) {
_joystick_active = true;
//unfortunately the device does not appear to respond to the NULL button's LED, to indicate that the joystick is active.
// MidiByteArray joy_active (3, 0xB0, 0x01, 0x01);
// _port->write (joy_active);
/* Unfortunately the device does not appear to respond to the NULL button's LED,
* to indicate that the joystick is active.
*/
#if 0 // this approach doesn't seem to work
MidiByteArray joy_active (3, 0xB0, 0x01, 0x01);
_port->write (joy_active);
#endif
}
#ifdef MIXBUS32C //in 32C, we can use the joystick for the last 2 mixbus send level & pans