get button state by code

nevarim

20-01-2017 00:45:34

hi all

how can i get state of a button? if is it pressed or not or highlighted or enabled

thanks
Neva

nevarim

21-01-2017 21:49:23

nobody? :roll:

Altren

22-01-2017 19:31:56

It is getStateSelected for pressed/not pressed. And for highlighted you should use InputManager::getInstance().getMouseFocusWidget() and compare it with your button.

nevarim

22-01-2017 20:35:59

thanks for help :D