[GSoC 2024] Implementing Mouse Support | Haiku Project

Success! Now MiniBrowser displays things once again. Here is MiniBrowser showing https://review.haiku-os.org/


This is a companion discussion topic for the original entry at https://www.haiku-os.org/blog/zardshard/2024-07-31_gsoc_2024_implementing_mouse_support
9 Likes

Success! Now MiniBrowser displays things once again. Here is MiniBrowser showing https://review.haiku-os.org/ …

Haha! It struck. : D
With our waiting for miracle, we deserved this sarcastic blog post beginning …
All right - we’ll be patient because we have to be patient!

Anyway,
I would be more curious what MiniBrowser would render in case

:stuck_out_tongue_winking_eye:

1 Like

Too bad, it crashes. Something about making an accelerated surface caused it to crash. Yeah, I definitely never implemented OpenGL, EGL, or anything like that so accelerated surfaces are definitely not supported yet. BTW, it also crashes when making an accelerated surface while loading discuss.haiku-os.org.

3 Likes

And there we have it! The mouse now works (except for the scroll wheel, because, of course :stuck_out_tongue: ).

MiniBrowser scrolled down with text selected

19 Likes

A small step for the HaikuNaut, giant leap for Haiku :smiley: Nice progress :100:

2 Likes

Just for the fun, did you try with KeyCursor instead of a real mouse?

1 Like

KeyCursor doesn’t seem to click when I press space in any app, but since it simulates the mouse, I would expect it to work with MiniBrowser.

It does for me, but maybe you’re experiencing this issue?

Other issue with it is… double-clicking in Tracker does work as expected. Same code worked just fine in BeOS. I haven’t been able to figure out where the problem is.

Yes, a restart fixed it.

So, yes, @Starcrasher, KeyCursor works with MiniBrowser.

Well, making text render properly was unexpectedly easy. It took just a few lines of code. I thought it would take a lot more work.

https://review.haiku-os.org/ rendered properly (including text)

Now, I wonder what it will take to fix MiniBrowser crashing when visiting discuss.haiku-os.org

20 Likes

Oh yes, that is the most important site on the entire Internet!

4 Likes