-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fader-Events of Hercules (via libdjconsole) are ignored when sending 0-position #4932
Comments
Commented by: thomas-b2ag |
Commented by: deftdawg Yup, that looks like a bug. |
Commented by: thomas-b2ag Okay, then please don't use my first bugfix so that buttons don't get handled twice. Use the attched one :) |
Commented by: deftdawg
I'm actually going to write it to use a QSet or QList or something with all of the non-button controls so it will be something like this psuedo code (note: since some of these vars aren't defined yet):
|
Commented by: thomas-b2ag please don't do that! restructuring the whole method is more sane for me.
what do you say? |
Commented by: thomas-b2ag what whould you say if i say: "i've done the job for you!"? |
Commented by: deftdawg
The plan to do it as a 'set' would be to eventually roll this code up to libDJConsole in the form of an isButton(int first) function. Perhaps I'll just do an isButton function in the code under the MONITOR const block to make that easier. Eventually we are planning to remove all the Hercules specific support code (both libDJConsole & herculeslinuxlegacy) and use MIDI mappings for the Hercules series as we do on Windows/OSX. We're optimistic Hercules will provide us MIDI drivers for Linux in the not too distant future to make this happen.
|
Commented by: deftdawg fixed in r1874 - thanks to b2ag finding and offering suggested fixes for this one. |
Commented by: thomas-b2ag
|
Commented by: deftdawg
Shortly there will be ~43 buttons to support - http://www.westenddj.co.uk/images/products/_Hercules/djc_rmx_top.jpg |
Commented by: thomas-b2ag nice |
Commented by: deftdawg I'm looking forward to closing down the libDJConsole project for Christmas... |
Issue closed with status Fix Released. |
Reported by: thomas-b2ag
Date: 2008-03-04T16:13:24Z
Status: Fix Released
Importance: Low
Launchpad Issue: lp198400
Attachments: [return statement removed for second==0 in consoleEvent](https://bugs.launchpad.net/bugs/198400/+attachment/221234/+files/return statement removed for second==0 in consoleEvent), [exclude fader of libdjconsole](https://bugs.launchpad.net/bugs/198400/+attachment/221428/+files/exclude fader of libdjconsole), restructure_herculeslinuxcpp.diff
This Bad causes Mixxx to don't register 0-position for line-faders under linux using Hercules Mk2 (or other via libdjconsole).
I've found an if-statement in herculeslinux.cpp line 216 saying to return (and don't handle this) when second parameter equals zero.
I've also attached bugfix.diff solving this problem.
Alternativ you could restrict the whole if-statement to "first equals 45,40 or 39" to only cancel return for faders.
The text was updated successfully, but these errors were encountered: