Skip to content
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

set evdev key threshold to 0.5 #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static int evdev_set(instance* inst, size_t num, channel** c, channel_value* v)
case EV_KEY:
case EV_SW:
default:
value = (v[evt].normalised > 0.9) ? 1 : 0;
value = (v[evt].normalised > 0.5) ? 1 : 0;
break;
}

Expand Down
2 changes: 1 addition & 1 deletion backends/evdev.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Input devices may synchronize logically connected event types (for example, X an
events. The MIDIMonster also generates these events after processing channel events, but may not keep the original
event grouping.

`EV_KEY` key-down events are sent for normalized channel values over `0.9`.
`EV_KEY` key-down events are sent for normalized channel values over `0.5`.

Extended event type values such as `EV_LED`, `EV_SND`, etc are recognized in the MIDIMonster configuration file
but may or may not work with the internal channel mapping and normalization code.