Vincent Pelletier : dinput: Fix gain-related bugs.