Skip to content

Commit

Permalink
Use new gesture args
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Mar 12, 2024
1 parent 112fc2b commit 7b3f602
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Widgets/DrawingArea.vala
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ public class Wacom.Widgets.DrawingArea : Gtk.DrawingArea {
cr.paint ();
}

private void on_motion (double object, double p0) {
double x, y, pressure;

// Gtk.get_current_event ().get_coords (out x, out y);
private void on_motion (double x, double y) {
double pressure;
stylus_gesture.get_axis (PRESSURE, out pressure);

var tool_type = stylus_gesture.get_device_tool ().get_tool_type ();
Expand All @@ -80,7 +78,7 @@ public class Wacom.Widgets.DrawingArea : Gtk.DrawingArea {
queue_draw ();
}

private void on_up (double object, double p0) {
private void on_up (double x, double y) {
cr.new_path ();
}
}

0 comments on commit 7b3f602

Please sign in to comment.