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

Add GdkEvent.Scroll.delta_{x,y} #173

Merged
merged 1 commit into from
Jan 30, 2024
Merged
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: 2 additions & 0 deletions src/gdkEvent.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ module Scroll = struct
external device : t -> device = "ml_GdkEventScroll_device"
external x_root : t -> float = "ml_GdkEventScroll_x_root"
external y_root : t -> float = "ml_GdkEventScroll_y_root"
external delta_x : t -> float = "ml_GdkEventScroll_delta_x"
external delta_y : t -> float = "ml_GdkEventScroll_delta_y"
end

module Key = struct
Expand Down
2 changes: 2 additions & 0 deletions src/ml_gdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ Make_Extractor (GdkEventScroll, GdkEvent_arg(Scroll),
Make_Extractor (GdkEventScroll, GdkEvent_arg(Scroll), device, Val_GdkDevice)
Make_Extractor (GdkEventScroll, GdkEvent_arg(Scroll), x_root, copy_double)
Make_Extractor (GdkEventScroll, GdkEvent_arg(Scroll), y_root, copy_double)
Make_Extractor (GdkEventScroll, GdkEvent_arg(Scroll), delta_x, copy_double)
Make_Extractor (GdkEventScroll, GdkEvent_arg(Scroll), delta_y, copy_double)

Make_Extractor (GdkEventKey, GdkEvent_arg(Key), state, Val_int)
Make_Extractor (GdkEventKey, GdkEvent_arg(Key), keyval, Val_int)
Expand Down
Loading