Jump to content

[SOLVED] ObjectGUI focus problem with MOUSE_SOFT defined


photo

Recommended Posts

Hi,

I don't know if it's a bug or it's something must be configured in system script, anyway I would appreciate any help to solve this.

If you execute gui_07 sample with MOUSE_SOFT defined, the user interface can't gain the focus by left mouse button event. I think is more intuitive, whe left mouse button is pressed over an object gui, pass the focus to user interface instead of priorize the mouse control as it does when MOUSE_SOFT is not defined.

 

Thanks.

 

Edit: I've modified the system.h script to ignore left mouse button in the first frame to give the GUI system a chance to receive the event, in the next frames, if the button is still pressed, the mouse controls events are processed.

This is the modified file:

system.h

Link to comment
×
×
  • Create New...