The enums are swapped currently, because for edge scroll is enabled two finger scroll and similary for two finger scroll is enabled edge scroll, what is apparently wrong. https://bugzilla.gnome.org/show_bug.cgi?id=746870
https://bugzilla.gnome.org/show_bug.cgi?id=746290
The libinput_device is fetched from the ClutterInputDevice, and configured through the libinput_device_*config* API. https://bugzilla.gnome.org/show_bug.cgi?id=739397