ocaml / graphics

The Graphics library from OCaml, in a standalone repository
Other
56 stars 29 forks source link

Mouse buttons #43

Open cdeleuze opened 1 year ago

cdeleuze commented 1 year ago

I wanted to be able to distinguish mouse buttons, here's how I managed to do that. From the user perspective, it just adds a few fields to the status type and a button_down_n function to test a specific button. Not sure you can be interested but I'll be glad to get any comment on this.

Please note the windows version is untested. Also, I don't know how to access buttons 4 and 5 on windows.