[Solved] Getting the cursor focused widget in ColibriGui? Topic is solved

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


knn217
Halfling
Posts: 78
Joined: Wed Jan 25, 2023 9:04 am
x 5

[Solved] Getting the cursor focused widget in ColibriGui?

Post by knn217 »

Hello Im trying to identify the cursor focused widget from ColibriManager, is there a way to do this? I looked at the code and ColibriManager doesn't seem to give away any info about the current FocusPair for cursor.

I've also considered iterating through the widgets myself and check their states, but this doesn't seem like the correct method since ColibriManager seems to do that already whenever setMouseCursorMoved() is called.

Last edited by knn217 on Sat Oct 07, 2023 1:23 am, edited 1 time in total.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5476
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1358

Re: Getting the cursor focused widget in ColibriGui?

Post by dark_sylinc »

Fixed.

Thanks for the report!

knn217
Halfling
Posts: 78
Joined: Wed Jan 25, 2023 9:04 am
x 5

Re: Getting the cursor focused widget in ColibriGui?

Post by knn217 »

Thanks for the fix!