set level, not down param

This commit is contained in:
Glenn Maynard
2006-12-26 22:54:18 +00:00
parent 9f5101783d
commit 9bfd0833b4
8 changed files with 21 additions and 23 deletions
@@ -89,12 +89,9 @@ static void CALLBACK midiCallback( HMIDIIN device, UINT status, DWORD instancePt
if( iType == 144 )
{
DeviceInput di = DeviceInput( DEVICE_MIDI, enum_add2(MIDI_FIRST, iChannel) );
DeviceInput di = DeviceInput( DEVICE_MIDI, enum_add2(MIDI_FIRST, iChannel), iValue > 0 );
di.ts.Touch();
if( iValue > 0 )
((InputHandler_Win32_MIDI *)instancePtr)->SetDev( di, true );
else
((InputHandler_Win32_MIDI *)instancePtr)->SetDev( di, false );
((InputHandler_Win32_MIDI *)instancePtr)->SetDev( di );
}
}
}