Closed rogermc2 closed 6 years ago
Also, how to implement?
void cursor_position_callback(GLFWwindow* window, double x, double y)
{
if (glfwGetInputMode(window, GLFW_CURSOR) == GLFW_CURSOR_DISABLED)
Just so you know I am aware of your issues… I am very sorry that I do not find the time to react to them. I hope this will get better soon.
No problem. Whenever its convenient for you is fine.
This is implemented in the GLFW 3 API. You basically do:
type My_Window_Type is new Glfw.Windows.Window with null record;
overriding procedure Mouse_Scrolled (Object : not null access Window;
X, Y : Input.Mouse.Scroll_Offset);
And then somewhere in your code:
My_Window.Enable_Callback (Glfw.Windows.Callbacks.Mouse_Scroll);
After that, the implementation of your Mouse_Scrolled
procedure will be called on mouse scrolling.
Closing this since functionality is already there.
I have been unable to figure out how to get scroll x, y data as a replacement for the C callback routine
How to implement?