diff options
| author | emersion <contact@emersion.fr> | 2018-05-12 13:04:47 +0100 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-05-12 13:34:58 +0100 | 
| commit | 0b585795645f608093ae59199a71bf5be6790e3b (patch) | |
| tree | 49a5c786435f30cdeb6aa8900bb9118079a60395 /backend/libinput/pointer.c | |
| parent | 84609d347a6c943096335ac5c96af133c782e179 (diff) | |
| download | wlroots-0b585795645f608093ae59199a71bf5be6790e3b.tar.xz | |
Add support for discrete axis values
Diffstat (limited to 'backend/libinput/pointer.c')
| -rw-r--r-- | backend/libinput/pointer.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 9a39b66b..f628cf22 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -126,8 +126,10 @@ void handle_pointer_axis(struct libinput_event *event,  				wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL;  				break;  			} -			wlr_event.delta = libinput_event_pointer_get_axis_value( -					pevent, axies[i]); +			wlr_event.delta = +				libinput_event_pointer_get_axis_value(pevent, axies[i]); +			wlr_event.delta_discrete = +				libinput_event_pointer_get_axis_value_discrete(pevent, axies[i]);  			wlr_signal_emit_safe(&wlr_dev->pointer->events.axis, &wlr_event);  		}  	}  | 
